I have an ASP.Net 4.0 web forms application that is ignoring any changes I make in the code in the code behind files and also in the global.asax.
I’ve tried using the built in web server in Visual Studio 2010, local IIS and on my web host. I’ve tried cleaning and rebuilding the project; that didn’t help. I’ve even tried excluding the global.asax file from my application just so I could see it error out, but the app still runs! It’s like it has it cached somewhere that I can’t update.
I’m hoping this is simple, but I’m perplexed none-the-less. Thanks in advance.
When I went to the bin folder I saw an old dll, which made me remember that I had previously named the project something else. I deleted the old dll files and then went to the obj folder and completely removed the entire Debug folder and it’s contents.
When I tried to run the web application it displayed an error. The error was “Could not load type old_namespace.global_asax”. I went through the application and replaced all the old_namespace references with the new_namespace. When I run the application it works perfectly and honors changes that I make to the code. Thanks for the help.