在 2.0sp1/AJAX Extesnion 1.0 服务器上使用 VS2008/3.5 ASP AJAX 站点?
我目前正在 3.5 中进行开发(因为我使用 LINQ,所以构建到 3.5)并将我的代码部署到 2.0 服务器。 到目前为止,我在这方面已经取得了成功,但现在我尝试利用一些 ASP AJAX 工具,但遇到了一个似乎无法解决的错误。
首先,我收到
“未知的服务器标记‘asp:ScriptManager’”。
我将其添加到我的 web.config 控件部分:
"add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken= 31bf3856ad364e35”
这产生了以下错误,我不知道如何纠正:
“基类包含字段“ScriptManager1”,但其类型(System.Web.UI.ScriptManager)与控件类型(System .Web.UI.ScriptManager)。”
对此有什么想法或想法吗?
I am currently developing in 3.5 (building to 3.5 as I am using LINQ) and deploying my code to a 2.0 server. I have been successful in this so far, but now I am trying to utilize some of the ASP AJAX tools and I am running into an error I can't seem to get around.
First I received
"Unknown server tag 'asp:ScriptManager'."
To which I added this to my web.config controls section:
"add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
this produced the following error which I'm not sure how to correct:
"The base class includes the field 'ScriptManager1', but its type (System.Web.UI.ScriptManager) is not compatible with the type of control (System.Web.UI.ScriptManager)."
Any thoughts or ideas on this one?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的项目在构建时引用了 System.Web.Extensions for .NET 3.5 的版本,但现在当它尝试工作时却出现了问题。
您需要确保所有引用都指向 1.0.61025.0 版本,并且不包含对 .NET 3.5 版本的引用。
Your project, when it was built was referencing the version of System.Web.Extensions for .NET 3.5, which when it is trying to work now it has issues.
You will need to ensure that all references are pointing to the 1.0.61025.0 version, and that NO references to the .NET 3.5 ones are included.