asp.net - Modifying ASPX.CS file has no effect -
one of colleagues maintains legacy asp.net site. today bumped strange problem:
- there aspx page, throws exception.
- if deletes line of aspx.cs file throws exception, exception remains (with same call stack). i'm sure modified same file calls stack refers to.
- if renames aspx.cs file, server says file missing.
- if restarts server after modifying aspx.cs, exception remains.
- if modifies other aspx.cs files, gets expected effect.
- she doesn't compile page dll.
afaik iis should recompile file when content changes (msdn), mechanism doesn't work in case. should do? in advance.
check see if website website or web application. web applications compile code behind dlls , place them 'bin' folder. in order make changes code available, have 'build' application in vs.
if not compiled web application, should check see if front end page pointing correct code behind page. if manually copy , rename files, piece left pointing original page, not new .cs file.
Comments
Post a Comment