zoukankan      html  css  js  c++  java
  • Specified argument was out of the range of valid values.

    HttpCachePolicy.UtcSetLastModified error

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

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
    Parameter name: utcDate

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: utcDate]    System.Web.HttpCachePolicy.UtcSetLastModified(DateTime utcDate) +4309766    System.Web.HttpCachePolicy.SetLastModified(DateTime date) +41    System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context) +1593    System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +599    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171 



    Version Information: Microsoft .NET Framework Version:2.0.50727.4200; ASP.NET Version:2.0.50727.4016

    这个主要是因为我们使用了
    [assembly: WebResource("xxxx.Utility.Resources.xxxx.js", "text/javascript")]

    Page.ClientScript.RegisterClientScriptInclude("xxxx",

    Page.ClientScript.GetWebResourceUrl(this.GetType(), "xxxx.Utility.Resources.xxxx.js"));

    然后在页面里注册了这些的方法来调用这个资源,这个时候当我们编译生成DLL的时候 LastModifiedTime就是我们这边的时间。如果我们将它传到国外的服务器你就会发现问题了

    When i get the problem, I found becase the lastmodifiedtime is my computer time. and our server is Holland then time is not correct
    So Exmpale the time in china is 11:00:00 but in Hollad is 4:00:00


    页面上看到的症状是突然某个JS出错,原来某个js文件没有被加。

  • 相关阅读:
    springmvc控制器controller单例问题
    用java求一个整数各位数字之和
    Java实现对List去重
    Oracle 11g修改字符集AL32UTF8为ZHS16GBK
    数据库字符集(AL32UTF8)和客户端字符集(2%)是不同的
    第1个人10,第2个比第1个人大2岁,依次递推,请用递归方式计算出第8个人多大?
    用table显示n条记录,每3行换一次颜色,即1,2,3用红色字体,4,5,6用绿色字体,7,8,9用红颜色字体。
    tomcat和jboss的区别
    poj_2486 动态规划
    poj_1464 动态规划
  • 原文地址:https://www.cnblogs.com/lovebanyi/p/1707044.html
Copyright © 2011-2022 走看看