Loading ...

WebResource.axd or ScriptResource.axd not working: Specified argument was out of the range of valid values. Parameter name: utcDate | CodeAsp.Net

WebResource.axd ScriptResource.axd not working: Specified argument was out of the range of valid values. Parameter name: utcDate

4.82 
 /5
4.82 (1votes)

While working with our product Communifire one of our clients was facing an issue regarding axd files, the WebResource.axd and ScriptResource.axd files were not working i.e they were giving the following error:

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

 

Reason:

The reason this error was coming because the server date was far behind the assemblies date i.e according to webserver the assemblies were built in future.

Solution:

Solution 1: Correct the webserver's time. In our case it was 12/14/2012 and the dlls were of 05/29/2013. 

Solution 2: If in any case changing webserver's date-time is not possible you can run the following command for the assembly folder (bin in our case)

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

The above command will make the dlls appear to be of current date. It will modify the date of the dlls.

 

Comments (no comments yet)

Top Posts