Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Specified argument was out of the range of valid values. Parameter name: utcDate

Tags:

asp.net

iis

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

Notes:

  • We are using msdeploy, IIS 6
  • I recently noticed that our web server's time is about 10 minutes behind the real time, I think that may have something to do with it.
  • If I log into our site, seems like any file that depends on a WebResource or ScriptResource type file doesn't look right.
  • Seems to fix itself after an IIS reset
like image 929
Rob Avatar asked Dec 13 '22 22:12

Rob


2 Answers

try running

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

in the Bin directory of the application.

it means that the assembly was built in future according to the webserver, the command above will 'touch' them so they appear to be of current date

like image 161
Axarydax Avatar answered Apr 27 '23 12:04

Axarydax


I got this error when i am using the Visual Studio inbuilt asp.net development server. The server was throwing this error and was not loading the stylesheets. This error occurred to me on Nov 7 at 1.10am US Central time. I figured it had something to do with the Day light savings time and so, moved my computer's clock 1 hour ahead. And Magic! -- it started working fine. Wonder why that is !!

like image 38
Ravi Avatar answered Apr 27 '23 12:04

Ravi