Using Message Queue in Web Ppart
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Using Message Queue in Web Ppart

 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development
Author Message
qcharlie
Guest





Posted: Tue Jan 11, 2005 2:57 am    Post subject: Using Message Queue in Web Ppart Reply with quote

I try to send a message queue by using the following code
if(!lblExecutiveMessage.Visible)
{
//Send Message to MSMQ
MessageQueue mq;
Message msg;

try
{
mq = new MessageQueue(@".\msmq_web");
msg = new Message(tbMessageContent.Text);
mq.Send(msg);

lblExecutiveMessage.Visible = true;
}
catch(Exception ex)
{
}
}
else
lblExecutiveMessage.Visible = false;

But it doesn't work. The code works very well in my web appplication. I also
modify the CAS from WSS_Minimal to WSS_Medium

The error information is
The "WebPart1" Web Part appears to be causing a problem.

Web Parts Maintenance Page: If you have permission, you can use this page to
temporarily disable Web Parts or remove personal settings. For more
information, contact your site administrator.


Troubleshoot issues with Windows SharePoint Services.
Back to top
Amar Galla
Guest





Posted: Tue Jan 11, 2005 4:23 pm    Post subject: Re: Using Message Queue in Web Ppart Reply with quote

Hi,

In your web.config file, set custom errors = Off and then check what
error you are getting. You can also set the stacktrace value to display a
full stack trace in case of an exception.

Hope this helps.
Regards,
Amar Galla
http://www.dotnetjunkies.com/weblog/amar

"qcharlie" <qcharlie@discussions.microsoft.com> wrote in message
news:9DB37D44-5438-404A-85A8-82588EDB5109@microsoft.com...
Quote:
I try to send a message queue by using the following code
if(!lblExecutiveMessage.Visible)
{
//Send Message to MSMQ
MessageQueue mq;
Message msg;

try
{
mq = new MessageQueue(@".\msmq_web");
msg = new Message(tbMessageContent.Text);
mq.Send(msg);

lblExecutiveMessage.Visible = true;
}
catch(Exception ex)
{
}
}
else
lblExecutiveMessage.Visible = false;

But it doesn't work. The code works very well in my web appplication. I
also
modify the CAS from WSS_Minimal to WSS_Medium

The error information is
The "WebPart1" Web Part appears to be causing a problem.

Web Parts Maintenance Page: If you have permission, you can use this page
to
temporarily disable Web Parts or remove personal settings. For more
information, contact your site administrator.


Troubleshoot issues with Windows SharePoint Services.

Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB