Microsoft JScript运行时错误:Sys.ArgumentTypeException:类型'Sys._Application'的对象不能转换为'Sys._Application'类型. [英] Microsoft JScript runtime error: Sys.ArgumentTypeException: Object of type 'Sys._Application' cannot be converted to type 'Sys._Application'.

查看:189
本文介绍了Microsoft JScript运行时错误:Sys.ArgumentTypeException:类型'Sys._Application'的对象不能转换为'Sys._Application'类型.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Microsoft JScript运行时错误:Sys.ArgumentTypeException:无法将类型为"Sys._Application"的对象转换为类型为"Sys._Application".
参数名称:instance

Microsoft JScript runtime error: Sys.ArgumentTypeException: Object of type ''Sys._Application'' cannot be converted to type ''Sys._Application''.
Parameter name: instance

推荐答案

由于一些原因而发生此错误.尝试几个我知道的地方:
1.将ScriptManager的ScriptMode属性设置为Release.
2.具有AJAX相关文件参考的多个副本.仅一个参考就足够了.
3. Web应用程序较旧(.NET 1.1),并且您尝试将其升级到新的(.NET 2.0),其中ASP.NET中包含AJAX. Web.Config需要AJAX相关的文件引用.如果缺少它们,可能会引发"Sys"问题.创建一个启用了AJAX的新Web应用程序,然后从此处复制粘贴Web.Config.
This error happens because of few reasons. Try few I am aware of:
1. Set the ScriptMode attribute of ScriptManager to Release.
2. Having multiple copy of AJAX related file reference. Only one reference is enough.
3. Web application is old(.NET 1.1) and you tried to upgrade it to new(atleast .NET 2.0) where AJAX was included in ASP.NET. Web.Config needs AJAX related file references. If they are missing can raise ''Sys'' issues. Create a new web application AJAX enabled and then copy-paste the Web.Config from there.


这篇关于Microsoft JScript运行时错误:Sys.ArgumentTypeException:类型'Sys._Application'的对象不能转换为'Sys._Application'类型.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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