dotMobimobiThinkingmobiForgemobiReadyDeviceAtlasfind.mobigoMobi

Posted by lwang 1 year 17 weeks ago

pic
 lwang
mobiForge Newbie
Posts: 1
Joined: 1 year ago
[offline]

When using DA .net API 2.3 Beta under IIS6, I got this error:

Operation is not supported on this platform.
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.PlatformNotSupportedException: Operation is not supported on this platform.

Stack Trace:
[PlatformNotSupportedException: Operation is not supported on this platform.]
System.Web.HttpHeaderCollection.Add(String name, String value) +2684384
Mobi.Mtld.DA.Web.DeviceHttpModule.PreRequestHandlerExecute_Process(Object source, EventArgs e) +705
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +7

IIS7 works fine in integrated mode but my colleagues still works under XP, so we have to sort it out for IIS6. Also, IIS7 under classic mode would give me the same error.

I check the web.config and make sure the Mobi.Mtld.DA.Web.DeviceHttpModule is in the <httpModules> section for IIS6 and <modules> section in IIS7. But the problem is still there.

Does anyone know what is the problem?

Posted by adrian.hopebailie 1 year ago

pic
 adrian.hopebailie
Mobile Expert
Posts: 51
Joined: 2 years ago
[offline]

Thanks for the feedback.

This has been noted as a bug and will be fixed in the next release.

According to the security release notes for this security patch (http://support.microsoft.com/kb/928365/) the headers collection is now read-only so trying to add headers causes an error.

We add headers to this collection (one for each device property) so that they may be consumed by applications down the line, even if they are not ASP.NET apps.

The intention is to make this functionality configurable for the next release and IIS6 friendly.

Adrian Hope-Bailie
dotMobi