当前位置:编程学习 > C#/ASP.NET >>

CS0030: Cannot convert type这个问题怎么解决?

错误提示如下:
Compilation Error 
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 

Compiler Error Message: CS0030: Cannot convert type 'ASP.admin_login_aspx' to 'System.Web.UI.WebControls.Login'

Source Error:

 

Line 114:        public admin_login_aspx() {
Line 115:            string[] dependencies;
Line 116:            ((Login)(this)).AppRelativeVirtualPath = "~/Admin_Login.aspx";
Line 117:            if ((global::ASP.admin_login_aspx.@__initialized == false)) {
Line 118:                global::ASP.admin_login_aspx.@__stringResource = this.ReadStringResource();
 
这个问题怎么解决? --------------------编程问答-------------------- 网站型的项目?
可能是你有一个Login.aspx的页面,又有一个名为Login.ascx的用户自定义控件造成的。
可以尝试把Login.ascx加上命名空间或改名。 --------------------编程问答-------------------- 把Admin_Login.aspx页面删除,重新建一个与他名字相同的页面试试。
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,