global.asax works on local computer but not after i publish to server

前端 未结 7 808
滥情空心
滥情空心 2020-12-06 11:26

How can I get my global.asax file to publish to our ftp site?

I have added a global.asax file to my project (using asp.net with c# from vs2

7条回答
  •  执念已碎
    2020-12-06 11:37

    Try to publish the following files this works for me

    App_global.asax.dll
    App_global.asax.compiled
    PrecompiledApp.config
    yoursite.dll

    and as @GabrielG said you have to uncheck precompile during publishing

    I hope this help somebody else.

提交回复
热议问题