WS fails to work when deployed on IIS due to 'modal dialog box' error message
Posted on 2011-09-22
I have a .Net Web Service that has been deployed to IIS server. When I try to call the WS from the browser (IE), I’ll get the following error message.
"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"
This WS has a reference to a PowerBuilder dll (which was created in PowerBuilder then deployed to .net) that will get the database credentials for my WS.
Not sure if this is caused due to .Net framework compatibilities as this WS will work when I run it using ‘Visual Studio Development Server’ within VS 2010 (not on IIS), but fails to work when it is deployed to IIS.
I have tried placing the below code into the web.config file and it did not help.
<supportedRuntime version="v4.0" />
One thing I should note is that this error is coming from the dll which was built using .net v2.0 framework (web service works on IIS without the dll). The dll does not have any reference to a messagebox or any output window.
The program fails when it try to consume the dll with the error message shown below. As it’s being a dll I have no idea on how to debug this problem.
Is there any property that I can set on web.config or any other place that will tell the IIS to ignore any popup’s/alert windows while running on the server?
Any help would be greatly appreciated.