无法转换类型'X'的对象类型“X” - ASP.NET [英] Unable to cast object of type 'X' to type 'X' - ASP.NET

查看:139
本文介绍了无法转换类型'X'的对象类型“X” - ASP.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前工作在Visual Studio 2008中,每次一个ASP.NET网站项目中,我进行了更改code隐藏页的用户控制和浏览网页,使用的是用户contorl我得到以下错误:

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屋!

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