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

前端 未结 14 1615
萌比男神i
萌比男神i 2020-12-22 21:42

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:34

    If you actually want to keep the roslyn codegen, you just need to set the permissions on the application's bin folder to allow the ApplicationPool user Read & Execute.

    I did this using the explorer Security tab on the folder properties dialog, but you should also be able to do something like:

    icacls PATH_TO_SERVICE_BIN /grant "ApplicationPoolUser":(OI)(CI)RX
    

提交回复
热议问题