locked
Getting Parser Error On IIS with Default VS ASP.NET Sample RRS feed

  • Question

  • User-732303917 posted

    Hello,

    i'm getting a parser error when publishing my webservice on an server with windows 10.

    On the developer-Computer everything is fine.

    The VS Sample throuths the same exception:

     <%@ Application Codebehind="Global.asax.cs" Inherits="MeinTV.WebApiApplication" Language="C#" %>
    Microsoft .NET Framework-Version:4.0.30319; ASP.NET-Version:4.6.1590.0 

    The version of the Service is .NET 4.5. When i'm using 4.6 i will get the same Error.

    When running the Debug Site with IIS Express everything is fine, too.

    Hope someone can help me.

    Best regards

    Sunday, January 22, 2017 8:53 PM

All replies

  • User-460007017 posted

    Hi Nexder,

    You could open your IIS site in application pool and target the .net version to .net 4.5. This link provide the step on how to achieve this.

    https://msdn.microsoft.com/en-us/library/bb398202.aspx

    Besides, please make sure you have have set the application pool .net CLR versionl to .Net CLR version v4.0.30319 and managed pipeline to integrated mode . All the application developed by net 4.0 and above are run in .net 4.0 CLR.

    Best Regards,

    Yuk Ding

    Monday, January 23, 2017 7:31 AM
  • User-732303917 posted

    Hi Yuk Ding,

    thanks for your answear.

    The DefaultAppPool already set to .Net CLR version v4.0.30319.
    Where is the different between DefaultPool and .NET4.5 Pool. Both points to .Net CLR version v4.0.30319

    A lokal IIS on my developer system runs fine. The config of both IIS systems looks identical.

    The IIS Express also works while Debugging. 

    The WebService Project Target is .NET 4.5 (.NET 4.6 has the same error)

    Best regards

    Monday, January 23, 2017 9:31 AM
  • User-732303917 posted

    fixed after activate the 32bit Application Support in the ApplicationPool.

    Tuesday, January 24, 2017 10:18 AM
  • User-460007017 posted

    Hi nexder,

    Thanks for sharing your experience.

    Best Regards,

    Yuk Ding

    Wednesday, January 25, 2017 7:46 AM