System.Web.HttpException:这是一个无效的脚本资源请求 [英] System.Web.HttpException: This is an invalid script resource request

查看:124
本文介绍了System.Web.HttpException:这是一个无效的脚本资源请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

推动我们的网站,我们的客户生产服务器时,我得到这个错误,不过页面的作品精绝的开发/测试服务器上。是什么原因导致这个错误(我没有使用任何网络资源,我自己,虽然我现在用的是asp.net Ajax工具包考虑)。

I get this error when pushing our website to our clients production server however the page works absolutely fine on their dev / test servers. What causes this error (considering I am not using any web resources myself, though I am using the asp.net ajax toolkit).

推荐答案

你能得到这个错误的完整堆栈跟踪?将有一个在服务器的事件日志(系统或应用程序,不记得是哪)?

Can you get a full stack trace on this error? There will be one in the server event log (system or application, can't remember which)?

有使用脚本资源,这种错误我能想到的失败ASP.NET的各个部分,并且其中至少两个稍微模糊的原因。

There are various parts of ASP.NET that use script resources, and at least two slightly obscure causes of them failing with this sort of error I can think of.


  1. 不管你信不信,如果你的DLL在其中嵌入了资源,他们在未来会出现这种情况日(如果你曾经编译在英国的DLL,然后立即将其部署到美国的网络服务器,你会得到很好意识到这个问题!)。我不记得在事件日志错误这说明,但也知道,如果我看到了它 - 它不是立即明显

  2. 如果你有一个负载平衡器路由多台服务器之间的请求没有被粘,和你的服务器有不同的机键,则请求将失败,因为查询字符串加密识别资源不会被另一台服务器上解密的。这将导致堆栈跟踪,其中包括在它的各种加密类型。

有很多其他原因(如不正确的URI,或者查询字符串越来越损坏如上所述),但有一个完整的堆栈跟踪将有助于在这里。

There are lots of other causes (such as incorrect uris, or querystrings getting corrupted as mentioned above), but having a full stack trace will help here.

这篇关于System.Web.HttpException:这是一个无效的脚本资源请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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