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