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

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

    Here's how I got it working:

    1. In your control panel, navigate to Security Manager > Allow .EXE Files
    2. Set the value to On (this will let you upload .exe files)
    3. In your Web.config, set full trust (this will let you run them)

       
         
           
         
       
      
    4. In your publish settings, enable "Precompile during publishing", but in the Advanced Precompile Settings (the Configure link next to this option), disable "Allow precompiled site to be updateable".

提交回复
热议问题