none
ASPX Deployment issue - PublicKey Token not Found RRS feed

  • Question

  • I have searched blogs, forums, and internet for a solution. Recommendations abound, including using NuGet to change my environment, change my project to "Application", copy the codedom to the GAC, bin directory missing.  After all these years of this error plaguing IIS, there should be a solution that doesn't run me around the world trying hundreds of things. Does anyone know what it is?

    Please help, I have been stuck two days on this.

    I am building my first web app using the community 2017 verision if VS. I am deploying to Windows 10 IIS Express. The app runs in the VS, fails in IIS localhost.

    I believe my environments should be compatible, please see below.

    Parser Error Message: The CodeDom provider type "Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" could not be located.

    Line 49:   <system.codedom>
    Line 50:     <compilers>
    Line 51:       <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:1659;1699;1701" />
    Line 52:       <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" />
    Line 53:     </compilers>

    in folder C:\inetpub\wwwroot\TicketManager\bin

    Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll

    File version:  1.0.40810.0

    product version: 1.0.7-40810

    • Moved by CoolDadTx Thursday, February 15, 2018 6:46 PM ASP.NET related
    Thursday, February 15, 2018 5:13 PM

Answers

  • Please post questions related to ASP.NET in the ASP.NET forums.

    Michael Taylor http://www.michaeltaylorp3.net

    • Marked as answer by RobC101 Thursday, February 15, 2018 7:36 PM
    Thursday, February 15, 2018 6:46 PM