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). Right now any page that utilizes .Net AJAX is getting this 'Sys is undefined error' after migration. When I view source and try to view any *.axd file, I get a 404.
我有几个为.Net 2.0和IIS6 Server 2003 32位创建的项目,并且正在迁移到IIS7 Server 2008 64位(我是IIS7和Server '08的新手)。现在任何使用.Net AJAX的页面在迁移后都会收到“Sys is undefined error”。当我查看源并尝试查看任何* .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. The Virtual Directories are created as applications, and the App Pool is set to .Net 2.0 Integrated.
我已经检查过我的web.config有所有相应的部分。所有“Version”属性都设置为1.0.61025.0,因为我目前没有从.Net 2.0升级。虚拟目录创建为应用程序,应用程序池设置为.Net 2.0集成。
I've checked that the *.axd Handler Mappings are there and set to "Unspecified Path Type". Also there are the appropriate *_AppService.axd and ScriptResource.axd mappings.
我已检查* .axd处理程序映射是否存在并设置为“未指定的路径类型”。还有适当的* _AppService.axd和ScriptResource.axd映射。
I'm not making any custom javascript references to Sys.
我没有对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. While they eliminate the 'Sys is undefined' error, it also breaks functionality within any page looking for that file.
我还尝试创建“空白”WebResource.axd和ScriptResource.axd文件以将它们放入项目中。虽然它们消除了'Sys is undefined'错误,但它也会破坏查找该文件的任何页面中的功能。
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!
我还有其他选择吗?我是否错过了其他的东西,或者我在已经采取的步骤中犯了错误?你们可以提供的任何见解都非常感谢。谢谢!
1 个解决方案
#1
0
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 (^.^)
希望能帮到你(^。^)
#1
0
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 (^.^)
希望能帮到你(^。^)