Amar Galla
Guest
|
Posted:
Tue Jan 11, 2005 4:23 pm Post subject:
Re: Using Message Queue in Web Ppart |
|
|
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.
|
|
|