IIS/ASP.NET Ajax加载失败 [英] IIS / ASP.NET Ajax failed to load

查看:88
本文介绍了IIS/ASP.NET Ajax加载失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几周前我有一个项目运行良好,当我尝试将网站复制到最终位置时,它开始显示此错误.

I have one project made a few weeks ago that is running perfectly and when i tried to copy the website to the final place it started showing this error.

Uncaught SyntaxError: Unexpected token < ScriptResource.axd:3
Uncaught SyntaxError: Unexpected token < ScriptResource.axd:3
Uncaught Error: The structure of ASP.NET Ajax client failed to load. VM5538 home:47
Uncaught SyntaxError: Unexpected token < ScriptResource.axd:3
Uncaught ReferenceError: Sys is not defined

问题是,我只会在新文件夹中的网站上看到此错误,如果我尝试在旧位置使用Visual Studio打开它,则不会出错.

The thing is, i only get this error on the website in the new folder, if i try to open it using the Visual Studio at old place i get no error.

我已经尝试从头开始在最终文件夹中创建一个新项目,并将文件放进去,然后我继续得到它.

I have already tried to create a new project in the final folder from scratch and put my files and i continue to get it.

我认为可能与web.config/IIS有关,但我找不到问题所在.

I think it might be web.config/IIS related but i can't find what's wrong.

提前谢谢.

推荐答案

我设法通过以其他顺序重写规则来解决了该问题.这是因为我使用了不同的URL架构,而我的web.config在验证中有些混乱.

I managed to fix the problem by rewriting my rules in a different order. It was because i have this different URL schema and my web.config was messing something on the verification.

这篇关于IIS/ASP.NET Ajax加载失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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