Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
could anyone help me. I am building web application using vb .net 2008.

when I debug using the common complier it can show the Message box, but when I use IIS server the message box can't be shown and cause error page.

the error page say:"

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

is there any setting need to be done to solve this case?



Thanks,
Posted

1 solution

Hello Archit,

You should not be using MessageBox in a web application. It won't show up. The error message explains it prtty clearly. So remove the MessageBox.

Regards,
 
Share this answer
 
v2
Comments
[no name] 11-Apr-13 2:13am    
ok i got it

but if messagebox not work in web app. than why compiler support it ?
Prasad Khandekar 11-Apr-13 2:55am    
I guess it will be unwise to build such functionality in a language compiler. A .cs or .vb file does not carry information about it's usage.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900