开发者

'Sys is undefined' error javascript error

I've tried every solution I've found through Google, and I'm currently at a loss.

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.

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.

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.

I'm not making any custom javascript references to Sys.

I've already tried repairing/reinstalling .Net on the server, and running aspnet_regiis via the command line.

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.

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开发者_如何学Python insight you guys could provide is much appreciated. Thanks!


Removing the ScriptResource.axd Handler mapping resolved my problem once.

Also we had done this at that time,

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

Hope that helps you out (^.^)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜