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

前端 未结 7 870
滥情空心
滥情空心 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:41

    I had the same problem and found that I also had to set Copy to Output Directory property to Copy always

提交回复
热议问题