Weird ASP.NET 2.0 Error


Harry Simpson

I am doing a simple response.redirect("AnotherPage.aspx") and in debug mode
it stops running and goes to the catch and the following messagebox pops up:

An exception of type 'System.InvalidOperationException' occurred in
System.Windows.Forms.dll but was not handled in user code.

Additional information: Showing a modal dialog box or form when the
application is not running in UserInteractive mode is not valid operation.
Specify the ServiceNotification or DefaultDesktopOnly style to display a
notification from a service application.

Break Continue
Ignore(grayed out)

If I click continue, the page comes up just fine. Any ideas why I'd get a
Forms error in an ASP.NET app??





bruce barker \(\)

a response.redirect kills the current thread (which thows an error than cn
be caught). you probably have a global error handler that tries to use
MessageBox, which is not allowed from

-- bruce (

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

MsgBox in ASP.NET? 1
Window Services XML Export Error 1
Enterprise Logging does nothing on server 5
MsgBox 2
MsgBox Error 1
messageboxes in asp .net 4
UserInteractive Mode 2