ASP.NET Website Pages Not Reflecting Recent Changes

I have been working on a new intranet site for several weeks and everything is working as expected. If I made any changes (added raw text, new controls, etc.) to my .aspx pages, and then tested them in VS (F5), all changes would be immediately displayed in the browser. Everything that is as simple as adding a <br> tag or as complex as adding a set of nested controls will appear when you restart debugging.

Everything used to work today. Then I decided that I want to play a little with some pluses of AjaxControlToolkit. I finished installing SP1 Update 2 for VS, which was released today ( http://www.microsoft.com/en-us/download/details.aspx?id=38188 ) while I was on it, and also updated NuGet and Install AjaxControlToolkit from there.

I added several tools, including ScriptManager and UpdatePanel, and everything worked as I expected. Then I went to make a few changes, and added a second ScriptManager by accident. When I went to debug / run, it certainly failed because you cannot have more than one on the page, so I deleted the extra one and started it again. This again gave the same failure. I went through and made sure that I didn’t add anyone by accident, I searched all the files in my project, and this was the only instance of this, so I commented on it and ran it again. Same. I tried several things and ended up restarting IIS and VS, and then the page behaved as expected.

Since then, any changes that I make to ANY of my files in the project are no longer updated without exiting IIS and restarting it. New, very simple aspx or html files in a project do the same. Then I went back to the restore point before upgrading VS and used a backup of my site from the day I added AjaxControlToolkit, and still the problem remains.

What's going on here? I feel this is due to the VS update, but it really doesn't make sense. I do not see such a missed error? Why is IIS not serving the updated page?

Ctrl + F5 in the browser does not reflect changes. Restructuring the whole solution does not reflect changes. Closing and reopening the browser does not reflect changes. Changing my web.config does not reflect the changes. Create a brand new blank website and the problem persists. In Visual Studio Development Server, instead of IIS, the problem remains.

The only way to find the correct updated page for it to work is to “Stop the site” in IIS and then restart, which is just too difficult to check for minor changes to anything on my page.

I am using Visual Studio 2012 Express, IIS Express, .NET 4.0, C # code-behind, the files are on the intranet file system (mapped to x :), separate from my actual server hosting.

Just in case (although I do not think this is important, since the problem now arises even with a fresh website) here is my web.config (which is very simple):

 <?xml version="1.0" encoding="utf-8"?> <configuration> <system.web> <compilation debug="true" targetFramework="4.0" /> <customErrors mode="Off" /> <httpRuntime /> <pages> <controls> <add tagPrefix="ttw" src="~/Controls/CustomerInformation.ascx" tagName="CustInfo" /> <add tagPrefix="ttw" src="~/Controls/CircuitInformation.ascx" tagName="CktInfo" /> </controls> </pages> </system.web> <system.webServer> <httpProtocol> <customHeaders> <add name="X-UA-Compatible" value="IE=EmulateIE9" /> </customHeaders> </httpProtocol> </system.webServer> </configuration> 

Any suggestions are welcome, and I hope that the solution will help others who may be experiencing the same problem after this last update.

+6
source share
1 answer

Sounds like a permission issue. Either the mapped network drive uses credentials that do not have sufficient permissions, or the IIS application pool identifier does not have permission to access the folder.

0
source

Source: https://habr.com/ru/post/943667/


All Articles