问题描述
我建立一个ASP.NET MVC 2个网站,使用Visual Studio 2010 Beta 2版
I'm building an ASP.NET MVC 2 site with Visual Studio 2010 Beta 2.
从哪儿冒出来没有我的图片或CSS中开始出现。如果我在浏览器中直接导航到资源我看到这个异常消息:
Out of nowhere none of my images or css started showing up. If I navigate directly to the resources in the browser I see this exception message:
指定参数超出的
有效值范围。参数名:
utcDate
堆栈跟踪:
[ArgumentOutOfRangeException:
指定参数超出的
有效值范围。参数名:
utcDate]
System.Web.HttpCachePolicy.UtcSetLastModified(日期时间
utcDate)3038942
System.Web.StaticFileHandler.ProcessRequestInternal(HttpContext的
背景下,字符串overrideVirtualPath)
1130 System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext的
背景下,回调的AsyncCallback,
对象状态)347
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
8683736 System.Web.HttpApplication.ExecuteStep(IExecutionStep
一步,布尔和放大器; completedSynchronously)
184
一些注意事项:
已经尝试过重新启动VS 2010,关闭所有Web服务器的情况下,重新启动IIS。
Already tried restarting vs 2010, closing all the webserver instances, restarting IIS.
推荐答案
通过设置我的电脑的时钟数据的方式进入未来,建立在调试模式下项目,然后移动一次回到这个固定
Fixed this by setting my computer's clock data way into the future, build the project in debug mode, and then moved the time back.
从谷歌上搜索周围,我发现这是因为你试图加载上次修改在未来会议。时间旅行基本编码。
From googling around I found this is because your trying to load assemblies that were last modified in the future. Time travel coding basically.
其他的问题,我曾经是我设置的时间进去以后,我的VS2010的评估期过期。
The other problem I had was once I set the time into the future, my VS2010 evaluation period expired.
大声笑,这是因为日光节约时间,我完全忘了。
Lol, this was because of daylight savings time which I completely forgot about.
这篇关于在VS 2010 ASP.NET开发服务器静态文件例外的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!