After a new version of the site is deployed, the first time every user opens the site, none of the site's stylesheets are downloaded or load. Refreshing the page downloads and loads the stylesheets and then the site looks fine until the next time we do a deployment.
The site is a .NET 4 MVC website deployed to Windows Server 2008 R2 running IIS 7. The site is deployed using a publish package created through VS10 and imported into IIS.
Most users access the site using IE10 or 11 and some earlier IE users. None of the pcs available to test on have Firefox or Chrome, so I haven't been able to test whether the site's styles show up on first load in other browsers. Locally, the site displays correctly regardless of the browser and version used. There are no server errors or browser errors reported.
The styles are Bootstrap, and a custom site stylesheet.
Is the CSS reference rendering into the page source correctly? We have had similar issues with our .Net 4.0 CMS where dynamically populated references failed to populate under load because the response was getting flushed before update. Unfortunately we had to revert to static reference in master pages due to time constraints.
Related
Ok odd one.
I have deployed an example angular application to Azure App Services.
This has worked.. but the styles are failing to load, and on checking
https://angularoptimized.azurewebsites.net/styles.7ade3819d0791222.css
This fails to load, it is redirecting to the main site.. not failing? I can confirm the file exists. And in case it matters, there are also compressed versions available on the server so wondering if this is being interpreted weirdly??
If checked in a browser, its not identifying the call as a style sheet either. Any ideas?
I am developing a .NET application for my clients. One of my pages I have included a RadDatePicker and several other input methods. When I run my project it occurs an error only in Internet Explorer web browser (IE version 11.0.9600.18282).
When I access to the web page from the local host it displays the page as the top part of the image below which is correct.But if I access my localhost from another computer that is connected to the same network, it displays the web page as in the second part of the image with some errors in the style.
I already checked the versions of both web browsers and rendering models and compatibility view settings and still I have no idea where it went wrong.
Can you please help me with that.
I have a website built using Visual Studio 2010 (may have been upgraded), running with .Net 3.5 SP1 in Dev and on the Web Server.
When I go to my Login page, in development or on my test server, I can login just fine. The login page depends on a few pieces of auto generated JavaScript code I can only assume are created at runtime by Asp.Net.
One being a JavaScript method called __doPostBack(eventTarget, eventArgument).
When I go to my Login page on my Production Server, the login page doesn't work any more. What I've found is that all of the JavaScript I have in the page Is suddenly gone.
I am also missing a lot of ASP generated hidden input elements. Like,
__LASTFOCUS
__EVENTTARGET
__EVENTARGUMENT
__VIEWSTATEGENERATOR
Now if I enable Compatibility Mode, it all comes right back and works just fine. View Source show's my JavaScript is back and the missing ASP generated input elements are back as well.
Anyone ever seen this?
I did read the article about this being a common issue due to ASP.Net not recognizing IE 10 as a valid browser. Bug and Fix: ASP.Net fails to detect IE10 causing _doPostBack.... is the article I'm referring to.
I find it strange that the KB's this article points to show much later time stamps on the ie.browser files than what I have on my development machine. My machine shows my ie.browser file was created and last modified in 2009. However the KB's show that if I have a good ie.browser file, the timestamp should be Aug 31 2011. So I don't really know why I'm not having this problem on my development machine.
I have a problem.
I have a mobile application (using HTML5 with localStorage). I have some web pages where theyare not cached but get the latest copy from what is on the webs server.
The problem that I am having is that one user regardless of deleting the cache still has an old copy of the program that resides on the server. Tried on a number of different browsers (Chrome, FireFox, IE) but still getting the same result. Just wondering if there is anything else I can do besides deleting the browser cache for it to realize that there is a more current version of the web page on the server
I've just opened a Web Site project found on my predecessor's machine and - I hate the things and don't ever work with them - I get a 404 on every link I click, while the page is definitely present. If I directly view the individual page in the browser, that page works fine, except for any links on it to other pages.
It's like the built-in dev web server isn't operating and interpreting URL requests, but I have no idea where to look to clear this up.
USING IIS: If I create and deploy this site under IIS, everything seems to work normally.
MY MAIN QUESTION IS: Why do pages get not get served on this site and do get served on similar sites, under debugging a Web Site project on VS2012. It is not how to solve the problem by deploying to IIS.