By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,292 Members | 1,642 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,292 IT Pros & Developers. It's quick & easy.

Please help with Compiler Error: CS0030

P: n/a
This application works without error in the development environment using
the VS web server. When I publish the site to my IIS 6.0 server, I get this
error at runtime when I open the Change Password page:
Compiler Error Message: CS0030: Cannot convert type
'ASP.admin_changepassword_aspx' to
'System.Web.UI.WebControls.ChangePassword'

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

Warning: CS0108: 'ASP.admin_changepassword_aspx.ApplicationInstance ' hides
inherited member 'ChangePassword.ApplicationInstance'. Use the new keyword
if hiding was intended.

I don't have clue as to the cause. Can someone suggest a way to resolve
this?

Thanks,

Keith
Source Error:

Line 118: public admin_changepassword_aspx() {
Line 119: string[] dependencies;
Line 120: ((ChangePassword)(this)).AppRelativeVirtualPath =
"~/admin/ChangePassword.aspx";
Line 121: if
((global::ASP.admin_changepassword_aspx.@__initial ized == false)) {
Line 122: dependencies = new string[4];
Detailed Compiler Output:

c:\windows\system32\inetsrv>
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc .exe" /t:library
/utf8output
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0 __b77a5c561934e089\System.Xml.dll"
/R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0_ _b77a5c561934e089\System.Data.dll"
/R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\T emporary ASP.NET
Files\root\b0c7db47\51e62a1d\assembly\dl3\d0ac35f3 \cb3209be_8a8ac601\App_Web_yksvlogw.DLL"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0 .0.0__b03f5f7f11d50a3a\System.Drawing.dll"
/R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\m scorlib.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b7 7a5c561934e089\System.dll"
/R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__ b03f5f7f11d50a3a\System.Web.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\ 2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configurati on\2.0.0.0__b03f5f7f11d50a3a\System.Configuration. dll"
/R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\T emporary ASP.NET
Files\root\b0c7db47\51e62a1d\assembly\dl3\e687f4e0 \71d006be_8a8ac601\App_Web_xggn6rym.DLL"
/R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\T emporary ASP.NET
Files\root\b0c7db47\51e62a1d\assembly\dl3\bc1a9ee9 \990ec4bd_8a8ac601\App_Code.DLL"
/R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\T emporary ASP.NET
Files\root\b0c7db47\51e62a1d\App_Web_c1ri0trg.dll"
/R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseSer vices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseS ervices.dll"
/R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\T emporary ASP.NET
Files\root\b0c7db47\51e62a1d\assembly\dl3\8e30a06e \1de6dbbd_8a8ac601\App_global.asax.DLL"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Service s\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dl l"
/out:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 \Temporary ASP.NET
Files\root\b0c7db47\51e62a1d\App_Web_changepasswor d.aspx.fdf7a39c.zo2x8vjb.dll"
/D:DEBUG /debug+ /optimize- /w:4 /nowarn:1659;1699
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\root\b0c7db47\51e62a1d\App_Web_changepasswor d.aspx.fdf7a39c.zo2x8vjb.0.cs"
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\root\b0c7db47\51e62a1d\App_Web_changepasswor d.aspx.fdf7a39c.zo2x8vjb.1.cs"
Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42
for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.

c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET
Files\root\b0c7db47\51e62a1d\App_Web_changepasswor d.aspx.fdf7a39c.zo2x8vjb.0.cs(133,53):
warning CS0108: 'ASP.admin_changepassword_aspx.Profile' hides inherited
member 'ChangePassword.Profile'. Use the new keyword if hiding was intended.
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET
Files\root\b0c7db47\51e62a1d\assembly\dl3\e687f4e0 \71d006be_8a8ac601\App_Web_xggn6rym.DLL:
(Location of symbol related to previous warning)
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET
Files\root\b0c7db47\51e62a1d\App_Web_changepasswor d.aspx.fdf7a39c.zo2x8vjb.0.cs(139,35):
warning CS0108: 'ASP.admin_changepassword_aspx.ApplicationInstance ' hides
inherited member 'ChangePassword.ApplicationInstance'. Use the new keyword
if hiding was intended.
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET
Files\root\b0c7db47\51e62a1d\assembly\dl3\e687f4e0 \71d006be_8a8ac601\App_Web_xggn6rym.DLL:
(Location of symbol related to previous warning)
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET
Files\root\b0c7db47\51e62a1d\App_Web_changepasswor d.aspx.fdf7a39c.zo2x8vjb.0.cs(120,14):
error CS0030: Cannot convert type 'ASP.admin_changepassword_aspx' to
'System.Web.UI.WebControls.ChangePassword'
Jun 7 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
i had a similar problem-try changing the name of the class (where it
says Inherits="some_class" and in the .cs file). Solved it for me :)

cheers
dave

Jun 27 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.