Specified argument was out of the range of valid values.
2010-04-08 10:39
579 查看
HttpCachePolicy.UtcSetLastModified errorSpecified argument was out of the range of valid values.
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:
Stack Trace:
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文件没有被加。
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. |
[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 |
这个主要是因为我们使用了
[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文件没有被加。
相关文章推荐
- Specified argument was out of the range of valid values. 解决方法
- .NET中使用GridView控件输入数据时出现“ Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index"的问题
- [Graphics] UIColor created with component values far outside the expected range, Set a breakpoint on UIColorBreakForOutOfRangeColorComponents to debug. This message will only be logged once.
- AsParallel \AsQueryable<T>().ToList() [System.ArgumentOutOfRangeException was unhandled" 索引超出范围。必须为非负值并小于集合大小]解决方法
- Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: startIndex
- SQLite: Cannot bind argument at index 1 because the index is out of range. The statement has 0 param
- Dynamics CRM2016 The value of field on record of type entity is outside the valid range问题的解决方法
- query specified join fetching, but the owner of the fetched association was not present in the select list
- Hibernate异常:query specified join fetching, but the owner of the fetched association was not present
- query specified join fetching, but the owner of the fetched association was not present in the selec
- System.ArgumentOutOfRangeException: 年、月和日参数描述无法表示的 DateTime。
- java.lang.IllegalArgumentException: timeout arguments out of range异常
- Sys.ArgumentOutOfRangeException: Value must be an integer 错误的原因 iframe
- Sys.ArgumentOutOfRangeException: Value must be an integer
- Windows Azure CloudBlobContainer.CreateIfNotExist : One of the request inputs is out of range.
- Sys.ArgumentOutOfRangeException: Value must be an integer
- System.ArgumentOutOfRangeException at System.Web.HttpCachePolicy.UtcSetLastModified (DateTime utcDate)
- android ICS 4.0.3 报 java.lang.IllegalArgumentException: pointerIndex out of range 解决方案
- The literal XXXXXXXXXX of type int is out of range 处理办法
- Hibernate异常:query specified join fetching, but the owner of the fetched association was not present in the select list