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

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

    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
    

提交回复
热议问题