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?
LVL 2
Matt1705Asked:
Who is Participating?
 
meverestConnect With a Mentor Commented:
try running "aspnet_ regiis -i" at a cmd shell.

check the application settings on your web site:  right click web site->properties->home directory.  If you can click 'create', do so and apply.  Otherwise click 'configure' and make sure that there is a file extension mapping for your asp files.

(what file extension are you using?  asp?  aspx? something else?)

Cheers.
0
 
meverestCommented:
Hi,

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

Cheers.
0
 
Matt1705Author Commented:
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?
0
 
Matt1705Author Commented:
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.
0
 
meverestCommented:
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.
0
All Courses

From novice to tech pro — start learning today.