ASP.NET应用程序没有加载javascript [英] ASP.NET application not loading javascript

查看:80
本文介绍了ASP.NET应用程序没有加载javascript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在我的win XP盒子上开发一个应用程序。我使用visual web dev以交互方式运行应用程序,但我也已将其设置在IIS上,以便从我网络上的另一台计算机进行测试。这一切都运行良好,直到...

I am developing an application on my win XP box. I use visual web dev to run the app interactively but I have also set it up on IIS for testing from another machine on my network. This all worked perfectly until...

Microsoft以IE8的形式进行了高优先级更新,并且在更新失败后重启。经过琐碎的修补和调整之后,最终的解决方案是XP的修复安装。

Microsoft had a high priority update in the form of IE8 and after the update failed to reboot. After a silly amount to tinkering and tweaking, the eventual solution was a repair install of XP.

所以回到今天,网站继续以交互方式运行(在VWD的内置Web服务器)但是在IIS(通过本机上的localhost,来自测试机器的IP或主机名)网站加载,ASP工作,CSS很好,但是javascript没有加载。当我使用Firebug进行检查时,脚本引用返回403.2禁止访问。

So back to the present day and the site continues to run fine interactively (in VWD's built-in web server) but in IIS (via localhost on this machine, IP or hostname from the test machine) the site loads, ASP works, CSS is fine, but javascript does not load. When I inspect with Firebug, the script references return a 403.2, forbidden access.

检查权限,一切看起来都很好,花花公子。无论如何,与根和每个其他文件夹相同。 IIS有脚本执行&在目录上阅读。

Checked the permissions, everything looks fine and dandy. The same as the root and every other folder, anyway. IIS has script execution & read on the directory.

我仍然可以在本地开发,一切都在服务器上工作正常,所以这不是绝对必须修复,但它肯定会导致错误我。

I can still develop locally and everything works fine on the server, so this is not an absolute must fix, but it sure bugs the heck out of me.

推荐答案

我问了我的问题,然后马上就去度假了。表格不好 - 抱歉。

I asked my question and then immediately jetted off on holiday. Poor form - sorry.

感谢您的回答/建议。检查我的程序集,脚本已打开,以及三重检查权限 - 这让我思考。在IIS中稍微探讨并发现,无论出于何种原因,/ scripts文件夹都已成为虚拟目录。 Undid那个和所有东西都在下雨时拼凑在一起。

Thanks for the answers/suggestions. Checked my assemblies, scripting is on, and triple checked permissions - which got me thinking. Poking around a bit in IIS and discovered that, for whatever reason, the /scripts folder had been made a virtual directory. Undid that and everything snapped together right as rain.

再次感谢您的帮助。它让我朝着正确的方向前进。

Thanks again for the assistance. It got me going in the right direction.

-jerry

这篇关于ASP.NET应用程序没有加载javascript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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