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

前端 未结 14 1265
轮回少年
轮回少年 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:27

    The above solutions did not work for me and are not correct, since roslyn is not optional these days.

    What worked was ensuring that the pool account had read & execute permissions on the root folder of the web application. You can find the account to grant this permission to by finding the Pool name your web app uses, then Application Pool -> pool name -> Advanced Settings -> Identity.

    My VPS host uses non-standard directories for hosting as follows:

    c:\home\web.app.name\wwwroot

    The web.app.name folder needed the permission.

提交回复
热议问题