Link to home
Start Free TrialLog in
Avatar of Matt1705
Matt1705

asked on

IIS not compiling code behind pages?

One of my clients asked for a change to their website so like I've done countless times in the past, I made the change, built it in my development environment and it worked and tested fine.  Move the code behind file to the production server and it continued to give me the old behavior.  

After a lot of testing and debugging, I discovered that the new file doesn't look like it's getting compiled.  I looked at the event log and no errors are being generated.  I restarted IIS and then rebooted the server just for grins.  Nothing has worked.

Any ideas?
Avatar of meverest
meverest
Flag of Australia image

Hi,

is asp installed on the server?  Try downloading the latest .net version from www.asp.net and reinstall.

Cheers.
Avatar of Matt1705
Matt1705

ASKER

Thanks for the sugesstion, meverest, but it didn't work.  I uninstalled both sp1 and the base install of 2.0 and then reinstalled with no change.  I'm beginning to think this is solely an IIS problem.  Any more suggestions?
ASKER CERTIFIED SOLUTION
Avatar of meverest
meverest
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The files that are having problems have aspx.cs extentions.  I can make changes to .aspx files and they display fine.  I renamed one of aspx.cs files this morning and the page still renders in the browser and the back end code runs even without the file.  I should have gotten an error.  This says to me that the code is cached by IIS and isn't getting updated for some reason.
OK, so the cs files are supposed to be executed at runtime I guess?  Try setting 'execute permissions' (web site properties->home directory) to 'scripts and executables'.

Cheers.