Pages

Wednesday, October 29, 2008

ScriptResource.axd throws ArgumentOutOfRangeException

After doing a deployment from the build server in the NZ timezone to the production server in the US PST timezone I started seeing the following exception:

----
Exception information:
Exception type: ArgumentOutOfRangeException
Exception message: Specified argument was out of the range of valid values.
Parameter name: utcDate
Request information:
Request URL: https://www.mydomain.com:443/Site/ScriptResource.axd?blahdeblah
----

Turns out there were problems locating AJAX assemblies that, from the production servers perspective, were dated in the future.

The solution is to either wait for the timezone difference to sort itself out or to update the last modified date on the DLLS.

See the following link for an example of the latter.

1 comment:

  1. Nice.... Just ran into this problem myself. I had installed a new Windows 2008 Server and for some reason the Date had not been set yet.

    So my CMS system (Sitecore) failed with this excact error..

    Guess you just can't turn back time :-)

    /Lasse Rasch, Denmark

    ReplyDelete