简体   繁体   English

只能将ScriptManager的一个实例添加到页面

[英]Only one instance of a ScriptManager can be added to the page

I am getting a bizarre error: 我收到一个奇怪的错误:

Only one instance of a ScriptManager can be added to the page. 只能将ScriptManager的一个实例添加到页面中。

When I found this bug originally, I noticed that I had a "ScriptManager" tag in one of my pages and an ajax:ToolScriptManager in the masterpage of that same page. 当我最初发现此错误时,我注意到我在一个页面中有一个“ ScriptManager”标签,而在同一页面的主页中有一个ajax:ToolScriptManager。 So I commented out the "ScriptManager" tag with server comments (<% %>) and uploaded to the live site. 因此,我用服务器注释(<%%>)注释掉了“ ScriptManager”标记,并上传到了实时站点。 Still got the error. 仍然出现错误。 I tried deleting the line entirely and still the error occurs. 我尝试完全删除该行,但仍然发生错误。

Interestingly enough, the error is not happening on my local copy running without debug mode. 有趣的是,在没有调试模式下运行的本地副本上不会发生该错误。

Any clues to what's going on? 有什么线索吗? I'm pretty sure I'm using ASP.NET 3.5 and it's a web app not a web site. 我很确定我正在使用ASP.NET 3.5,它是一个Web应用程序而不是一个网站。 Do I need to compile or something before changes take effect? 在更改生效之前,我需要编译吗?

The problem was I was uploading to one code base and testing on a different code base(on a different server). 问题是我正在上载到一个代码库并在不同的代码库(在不同的服务器上)上进行测试。 So the changes I was making were having no effect. 因此,我所做的更改没有任何效果。 Whoops! 哎呀!

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

相关问题 只能将ScriptManager的一个实例添加到页面 - Only one instance of a ScriptManager can be added to the page 只能将一个ScriptManager实例添加到页面中 - Only one instance of a ScriptManager can be added to the page 页面中只能添加一个 ScriptManager 实例 - Only one instance of a ScriptManager can be added to the page 只能将ScriptManager的一个实例添加到页面 - Only one instance of a ScriptManager can be added to the page 母版页-只能将ScriptManager的一个实例添加到该页中 - Master page - Only one instance of a ScriptManager can be added to the page MultiHandleSliderExtender:错误-只能将ScriptManager的一个实例添加到页面 - MultiHandleSliderExtender: Error - Only one instance of a ScriptManager can be added to the page 只能将ScriptManager的一个实例添加到页面错误中 - Only one instance of a ScriptManager can be added to the page error System.InvalidOperationException:只能将ScriptManager的一个实例添加到页面 - System.InvalidOperationException: Only one instance of a ScriptManager can be added to the page 只能将ScriptManager的一个实例添加到页面中-动态数据和DateFilter - Only one instance of a ScriptManager can be added to the page - Dynamic data and DateFilter 只能将ScriptManager的一个实例添加到页面:Ajax Toolkit出现问题? - Only one instance of a ScriptManager can be added to the page: issue with Ajax Toolkit?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM