Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 vs2010) which works great on my local machine. Then when I publish to our ftp site. Then copy from the ftp folder into the site folder overwriting old files. It doesn't work. I am using Windows Server 2008 R2 Enterprise.

like image 924
Letseatlunch Avatar asked Sep 05 '10 19:09

Letseatlunch


2 Answers

We had to uncheck the Precompile during publishing feature in our publishing profile and that did the trick.

enter image description here

like image 197
Gabriel G Avatar answered Oct 12 '22 13:10

Gabriel G


Check that the "Build action" of the Global.asax file is set to "Content" in the file properties. All files set to content will be deployed.

like image 33
Sander Rijken Avatar answered Oct 12 '22 11:10

Sander Rijken