views:

367

answers:

1

i think this has been asked before but i just cannot figure this one out. I have added a global.asax file to my project (using asp.net with c# from vs2010) and works great on my local machine. then when i publish to our site (i publish to ftp site and then copy from the ftp folder into the site folder overwriting old files) and it doesn't work... at all. i am using 'windows server 2008 R2 Enterprise'. any help would be great

A: 

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.

Sander Rijken
its wierd i only get these options when i right click on the global.asax file:,Open,Open With...,Exclude from project,Cut,Copy,Delete,Rename. But there are No properties or anything else
Letseatlunch
Highlight the global.asax file in the solution explorer and press ALT+ENTER to bring up the properties window for the file. Check the build action is set to content
Russ Cam