Click here to Skip to main content
15,913,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai i am using MessageBox in asp.net appliction this works fine development envirnoment but once insalled in IIS its throwing error

Showing a model 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.

Can i have the solution for this?
Posted
Updated 31-Jan-11 2:31am
v3

http://social.msdn.microsoft.com/Forums/en/vbgeneral/thread/c409b6b6-acef-470a-b4b3-4b48e210dfc6[^]

It is good to use ajax:ConfirmButton or ajax:ModalPopup or javascript alert; as messagebox would be popping on the server machine.
 
Share this answer
 
v2
Comments
Pravin Patil, Mumbai 31-Jan-11 9:29am    
This is the correct solution..
Nice link prerak...
MessageBox is a windows application thingie.
You should rather look at AJAX modalpopup (or there are many more available on internet) to server your purpose.
 
Share this answer
 
Your error not depend on IIS,Using Ajax control, solve this solution...ajax:ConfirmButton or ajax:Modalpopup

You can download Ajax control toolkit using below link .

http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/ConfirmButton/ConfirmButton.aspx
 
Share this answer
 
v2

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