IIS Server error, something to do with licensing?

Hi,

We have a web application (ASP.Net VS2010) that runs against a Delphi Application Server. When running in VS2010 debug mode it works fine. Today we tried for the first time to move the web application to an IIS Server and now get the following message

If I look at the stack trace it ends somewhere in:
RemObjects.SDK.ROLicenseProvider.ShowDialog(Boolean aRo) +116

Has anybody seen this before and knows how to fix this???

regards
Paul


Server Error in ‘/apployed_nl’ Application.

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.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: 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.

Source Error:

Line 106:
Line 107: RemoteDataAdapter DAAdapter = new RemoteDataAdapter();
Line 108: DAAdapter.RemoteService = RORemoteService;
Line 109: DAAdapter.DataStreamer = Streamer;
Line 110:

Source File: f:\Projects\PeopleInc Cloud\Sources\Apployed_NL\ApployedNL\ApployedNL\Common\DataHelper.cs Line: 108

Stack Trace:

[InvalidOperationException: 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.]
System.Windows.Forms.MessageBox.ShowCore(IWin32Window owner, String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, Boolean showHelp) +681
RemObjects.SDK.ROLicenseProvider.ShowDialog(Boolean aRo) +116
RemObjects.DataAbstract.ROLicenseProvider.ValidateKey(String aKey, Type aType) +1198
RemObjects.DataAbstract.ROLicenseProvider.GetLicense(LicenseContext context, Type aType, Object anInstance, Boolean aAllowExceptions) +2039
System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey) +426
System.ComponentModel.LicenseManager.Validate(Type type, Object instance) +76
RemObjects.DataAbstract.BaseDataAdapter…ctor() +160
RemObjects.DataAbstract.DataAdapter…ctor() +40
RemObjects.DataAbstract.RemoteDataAdapter…ctor() +40
ApployedNL.Common.DataHelper.GetDataSet(String UsersessionId, Int32 TableSeq, String TableName, String SearchText, THDSSrvString[] KeyNames, THDSSrvVariant[] KeyValues, Int32 MaxRecords, Boolean PartialSearch) in f:\Projects\PeopleInc Cloud\Sources\Apployed_NL\ApployedNL\ApployedNL\Common\DataHelper.cs:108
ApployedNL.Main.LoadEmployeesList() in f:\Projects\PeopleInc Cloud\Sources\Apployed_NL\ApployedNL\ApployedNL\Main.Master.cs:98
ApployedNL.Main.Page_Load(Object sender, EventArgs e) in f:\Projects\PeopleInc Cloud\Sources\Apployed_NL\ApployedNL\ApployedNL\Main.Master.cs:38
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
System.Web.UI.Control.LoadRecursive() +71
System.Web.UI.Control.LoadRecursive() +190
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3064

Hello

You are right, this is related to the license used.
Seems you are using Trial license for RemObjects SDK for .NET or for Data Abstract for .NET. So when your application (or service) starts it shows a message box with Trial notification. This is not an issue for a simple desktop apps but results in some issues for apps running in service mode.

for example, this article describes how to allow Windows Service to show such dialog and don’t fail:

http://wiki.remobjects.com/wiki/How_to_create_a_Windows_Service_based_RO.NET_server_(.NET)#Install_a_RO_Windows_Service

In your case you need to do the similar thing:
“Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.”

Hope this helps