Heybo Blog

If you look at me when I'm talking, you'll see what I'm saying ... about Tech and .NET discoveries!

My Links

News

Story Categories

Archives

Post Categories

Image Galleries

Login

Blog Stats

Links

Personal Websites

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

I ran across the following error today. Turns out my master page named “Style“ conflicted with another name and tried to recompile. To overcome this, I placed an explicit name in the inherits tag by using a namespace in the code behind and updating the inherits value to “NameSpace.Style“ in the masterpage.

 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.style_master' to 'System.Web.UI.WebControls.Style'

Source Error:

Line 113:        
Line 114:        public style_master() {
Line 115:            ((Style)(this)).AppRelativeVirtualPath = "~/Style.master";
Line 116:            if ((global::ASP.style_master.@__initialized == false)) {
Line 117:                global::ASP.style_master.@__stringResource = this.ReadStringResource();

Source File: c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\rymrics\318d693c\7e163276\App_Web_style.master.cdcab7d2.vwn09riz.0.cs  

posted on Tuesday, August 22, 2006 6:29 AM

Feedback

# re: Compiler Error Message: CS0030: Cannot convert type 'ASP.style_master' to 'System.Web.UI.WebControls.Style' 4/15/2008 11:06 AM John

I was having this problem with login.aspx page and it is gone after renameing it.

Thanks

Title  
Name  
Url
Comments   
Protected by Clearscreen.SharpHIPEnter the code you see: