无法将“X"类型的对象转换为“X"类型 - ASP.NET [英] Unable to cast object of type 'X' to type 'X' - ASP.NET
问题描述
我目前正在 Visual Studio 2008 中处理一个 ASP.NET 网站项目,每次我更改用户控件的代码隐藏页面并浏览到使用用户控制的页面时,我都会收到以下错误:
I am currently working with a ASP.NET Web site project in Visual Studio 2008 and everytime I make a change to code behind page for a user control and browse to page that is using the user contorl I get the following error:
无法转换类型的对象'ASP.basepage_master' 输入'ASP.basepage_master'.
Unable to cast object of type 'ASP.basepage_master' to type 'ASP.basepage_master'.
我必须重建我的整个解决方案才能解决此错误.有没有其他人遇到过这个错误,他们知道如何解决吗?
I have to rebuild my entire solution to order to resolve this error. Has anyone else experienced this error and do they know how to resolve it?
推荐答案
如果我在本地工作站上停止并重新启动 IIS,我就能解决这个问题.
If I stop and restarted IIS on my local workstation, I am able to resolve this issue.
这篇关于无法将“X"类型的对象转换为“X"类型 - ASP.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!