简体   繁体   English

“系统未定义”错误 javascript 错误

[英]'Sys is undefined' error javascript error

I've tried every solution I've found through Google, and I'm currently at a loss.我已经尝试了通过 Google 找到的所有解决方案,但我目前不知所措。

I have several projects which were created for.Net 2.0 and IIS6 Server 2003 32 bit, and are being migrated to IIS7 Server 2008 64 bit (I'm new to both IIS7 and Server '08).我有几个项目是为 .Net 2.0 和 IIS6 Server 2003 32 位创建的,并且正在迁移到 IIS7 Server 2008 64 位(我是 IIS7 和 Server '08 的新手)。 Right now any page that utilizes.Net AJAX is getting this 'Sys is undefined error' after migration.现在,任何使用.Net AJAX 的页面在迁移后都会收到此“系统未定义错误”。 When I view source and try to view any *.axd file, I get a 404.当我查看源代码并尝试查看任何 *.axd 文件时,我得到一个 404。

I've checked that my web.config has all the appropriate sections., with all "Version" attributes set to 1.0.61025.0 since I'm not currently upgrading from.Net 2.0.我检查了我的 web.config 是否具有所有适当的部分。所有“版本”属性都设置为 1.0.61025.0,因为我目前没有从.Net 2.0 升级。 The Virtual Directories are created as applications, and the App Pool is set to.Net 2.0 Integrated.虚拟目录作为应用程序创建,应用程序池设置为 .Net 2.0 集成。

I've checked that the *.axd Handler Mappings are there and set to "Unspecified Path Type".我检查了 *.axd 处理程序映射是否存在并设置为“未指定的路径类型”。 Also there are the appropriate *_AppService.axd and ScriptResource.axd mappings.还有适当的 *_AppService.axd 和 ScriptResource.axd 映射。

I'm not making any custom javascript references to Sys.我没有对系统进行任何自定义 javascript 引用。

I've already tried repairing/reinstalling.Net on the server, and running aspnet_regiis via the command line.我已经尝试在服务器上修复/重新安装.Net,并通过命令行运行 aspnet_regiis。

I've also tried creating "blank" WebResource.axd and ScriptResource.axd files to put them in the project.我还尝试创建“空白”WebResource.axd 和 ScriptResource.axd 文件以将它们放入项目中。 While they eliminate the 'Sys is undefined' error, it also breaks functionality within any page looking for that file.虽然它们消除了“系统未定义”错误,但它也破坏了任何页面中查找该文件的功能。

Do I have any other options?我还有其他选择吗? Did I miss something else, or did I make a mistake in the steps I've already taken?我是否错过了其他事情,或者我在已经采取的步骤中犯了错误? Any insight you guys could provide is much appreciated.非常感谢你们提供的任何见解。 Thanks!谢谢!

Removing the ScriptResource.axd Handler mapping resolved my problem once.删除ScriptResource.axd处理程序映射一次解决了我的问题。

Also we had done this at that time,我们当时也这样做过,

<system.webServer>
    <modules runAllManagedModulesForAllRequests="true"></modules>
</system.webServer>

Hope that helps you out (^.^)希望对你有所帮助(^.^)

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

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