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

Our logs show hundreds of these errors after our deployment, if users are on the site. Does anyone know what this means and how to fix it?

Notes:

  • We are using msdeploy, IIS 6
  • Recently, I noticed that the time of our web server is about 10 minutes behind real time, I think this may have something to do with it.
  • If I sign up to our site, it looks like any file that depends on a file like WebResource or ScriptResource doesn't look like that.
  • It seems to fix itself after IIS reset
+4
source share
3 answers

try to run

for %i in (*.dll) do copy /b %i+,, 

in the Bin directory of the application.

this means that the assembly was built in the future according to the web server, the command above will “touch” them so that they look like the current date

+10
source

I got this error when I use the asp.net embedded development server for Visual Studio. The server threw this error and did not load the stylesheet. This error occurred to me on November 7 at 1 o’clock. 00 min US Central Time I figured this had something to do with daylight and thus moved my computer clock 1 hour ahead. And the magic! - he began to work normally. I wonder why this is!

+3
source

Look at this article, it seems that the problem is due to changes in the clock on the server, if asp.net detects that the dll is built "in the future", it gives this error.

Time travel

0
source

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


All Articles