Problems publishing a website on smarterasp.net with csc.exe file included?

前端 未结 14 1300
轮回少年
轮回少年 2020-12-22 21:51

I am using Microsoft Visual Studio 2015, I built a simple website with a C# contact form. When I compile and run on localhost it works perfectly fine. However, when I try to

14条回答
  •  误落风尘
    2020-12-22 22:18

    Just experienced the same issue as the OP when publishing an ASP.net 4.5.2 SPA via web deploy in VS2015.

    The solution I found to work was to remove the Nuget package "Microsoft.CodeDom.Providers.DotNetCompilerPlatform".

    You could, alternatively, simply remove the system.codedom compiler config section from your Web.config file, which would have the same affect.

提交回复
热议问题