简体   繁体   English

IE6中的权限被拒绝错误.aspx中的JavaScript标记启动

[英]Permission Denied error in IE6 Start of JavaScript tag in .aspx

for some reason, I get "Permission Denied" for line 20 in my .aspx when trying to view it from our dev server. 出于某种原因,当尝试从开发服务器查看它时,.aspx中的第20行出现“权限被拒绝”。 Line 20 is simply the start of the JavaScript tag: 第20行只是JavaScript标记的开始:

<script type="text/javascript">
  // variables
  var firstProductID;
  var lastProductID;
  var getProductIDs = new Array();

... ...

Are you trying to do an xhr (ajax) request to another domain? 您是否要向另一个域发出xhr(ajax)请求?

Turn on script debugging in ie, reload the page and when you hit this error it will ask if you want to debug. 打开脚本调试 ,即重新加载页面,当您遇到此错误时,它将询问您是否要调试。 You can debug in visual studio or ie debugger tools (if you have ie8) and youll see the exact script causing the issue. 您可以在Visual Studio或调试器工具(如果有ie8)中进行调试,您将看到导致问题的确切脚本。

The line numbering in the error is never what it seems due to included js libs etc. 错误中的行号永远不会是由于包含js库等而引起的。

Line numbers can be very misleasing if you are trying to match up the line number IE gives you with the line number in the ASPX file (because ASP.NET can produce HTML that you won't see in the ASPX source view). 如果尝试匹配行号,IE会为您提供ASPX文件中的行号,那么行号可能会非常令人不快(因为ASP.NET可以生成您在ASPX源代码视图中看不到的HTML)。

If you do a View Source in IE6 is line 20 still the start of your script tag? 如果您在IE6中执行“查看源代码”,则第20行仍是脚本标记的开始吗?

You have a SCRIPT tag with a SRC attribute that is pointed to a file that does not exist. 您有一个带有SRC属性的SCRIPT标记,该标记指向一个不存在的文件。

Check your path. 检查您的路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM