WebResource.axd的 - 工程一台计算机上;给404的另一 [英] WebResource.axd - works on one computer; gives 404 on another

查看:211
本文介绍了WebResource.axd的 - 工程一台计算机上;给404的另一的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

情况:


  1. 我们创建了一个装配与我们自己的ASP.NET控件。

  1. We created an assembly with our own ASP.NET control.

这是控制寄存器一些资源(图像,JavaScript文件等);

That control registers some resources (images, JavaScript files, etc);

有是使用我们的控件的Web应用程序。

There is a web-application which uses our control.

该控件加载好,可以访问内部资源。在结果HTML code到资源的所有调用看起来像/WebResource.axd?d = ...。
到目前为止,一切都很好。

The control is loaded well and get access to internal resources. In result HTML code all calls to resources look like "/WebResource.axd?d=...". So far, so good.

我们有两台电脑:第一 - Win7的32用于开发,第二Win7的64 - 用于测试。

We have two computers: first - Win7 32 used for development, second Win7 64 - for testing.

问题:


  • 开发计算机上生成的装配运作良好就可以了,但给的404错误的所有请求WebResource.axd的测试计算机上运行时。

  • 如果我们刚才复制的源测试计算机有建立我们的组件 - 它运作良好,在两台计算机上

我们使用.NET 4.0。所有最新的更新都安装在两台计算机上。它采用了我们的控制权运行从2010年VS(下ASP.NET开发服务器)的Web应用程序。

We use .NET 4.0. All latest updates are installed on both computers. Web application which uses our control runs right from VS 2010 (under ASP.NET Development Server).

任何建议?

推荐答案

我们已经找到了问题。
我们的测试计算机有错误的日期/时间设置(真正的日期前10天)。因此,我们的总成(建开发系统上)被认为是由它作为一个从未来DLL。
它似乎ASP.NET可以从未来的立场,但装配它不喜欢放在该程序集未来的资源。
一旦我们纠正了测试系统上的日期设置 - 一切开始工作。
希望这种情况下,将帮助其他人。

We've found the problem. Our testing computer had wrong date/time set (10 days before the real date). So our assembly (built on development system) was considered by it as a "DLL from the future". And it seems ASP.NET can stand the assembly "from future" but it does not like "future" resources placed into that assembly. Once we corrected date setting on the testing system - everything started to work well. Hope this case will help somebody else.

这篇关于WebResource.axd的 - 工程一台计算机上;给404的另一的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆