Exception when VS 2010 ASP.NET Development Server serves static files

I am building an ASP.NET MVC 2 site with a beta version of Visual Studio 2010.2.

Out of nowhere, none of my images or css appeared. If I go directly to the resources in the browser, I see this error message:

The specified argument was out of range. Parameter Name: utcDate

Stack trace:

[ArgumentOutOfRangeException: The specified argument was out of range. Parameter Name: utcDate]
System.Web.HttpCachePolicy.UtcSetLastModified (DateTime utcDate) +3038942
System.Web.StaticFileHandler.ProcessRequestInternal (HttpContext context, String overrideVirtualPath) +1130 System.Web.DefaultHttpHandler.BeginProcessRequest (HttpContext context, AsyncCallback callback, Object state) +347
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute () +8683736 System.Web.HttpApplication.ExecuteStep (IExecutionStep step, Boolean & completedSynchronously) +184

Some notes:

Already tried restarting vs 2010, closing all instances of the web server, restarting IIS.

0
source share
1 answer

This was fixed by setting a way to transfer computer data to the future, building a project in debug mode, and then moving the time back.

From googling around, I discovered that this is because you are trying to download assemblies that were last modified in the future. Temporary coding basically.

Another issue that I am facing is that I set the time to the future and my VS2010 evaluation period has expired.


Lol, it was because of the summer time that I completely forgot about.

0
source

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


All Articles