Hello,
I am having some trouble, with using shared master pages accross multiple applications.
The idea I found some info on, which kind of works, is that you create a clean web project, make some master pages, publish it so you get compiled masters, add the compiled master to gac, and then you can use this master in other projects. ( Although you have to create a dummy master in the new project, which inherits from the global master, really...this is dumb, we should not have to have phyical masters... i should be able to declare a master from an object in the page preinit where i would declare a master file, nevertheless ),..... so i have these dummy pages.. and to make the situation a little more interesting, i have 3 masters in the GAC, and 3 dummy mastes in the local project, all inheriting from their respective global master. The global masters all share one commone base master class. So.. to summarize, in one web project called (masters) there are 3 masters, and one partial class that is the base class. All three masters inherit from this partial class, and all three masters have the same elements, only different layouts.
In the object browser of the local project now, i see al the masters, and have inherited from them with no problem. Whoever, now I am getting aweird error, that I have no clue how to debug... or even being understanding what is causing it. ( Keep in mind, there are no string resource files, not a single resx in any of my projects ).
Below I have attached the error, you will notice things like Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\gbm2o\9232f8e6\59c33552\App_Web_3ctpvlsd.4.cs Line: 0
I am not sure why this is there, becuase i am running the site from http://localhost/GBM2o/Default.aspx and the site is not published, meaning it is using the local cs files so if i make a change, iht refresh, change is there....
Here is the error
Server Error in '/GBM2o' Application.
An error occurred while try to load the string resources (FindResource failed with error -2147023083).
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: An error occurred while try to load the string resources (FindResource failed with error -2147023083).
Source Error:
[No relevant source lines] |
Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\gbm2o\9232f8e6\59c33552\App_Web_3ctpvlsd.4.cs Line: 0
Stack Trace:
[HttpException (0x80004005): An error occurred while try to load the string resources (FindResource failed with error -2147023083).]
System.Web.StringResourceManager.ReadSafeStringResource(Type t) +3116601
System.Web.UI.TemplateControl.ReadStringResource() +11
ASP.rbsgc_master..ctor() +67
ASP._rbsgc_master..ctor() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\gbm2o\9232f8e6\59c33552\App_Web_3ctpvlsd.4.cs:0
__ASP.FastObjectFactory_app_web_3ctpvlsd.Create_ASP__rbsgc_master() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\gbm2o\9232f8e6\59c33552\App_Web_3ctpvlsd.6.cs:0
System.Web.Compilation.BuildResultCompiledType.CreateInstance() +49
System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +250
System.Web.UI.Page.get_Master() +48
System.Web.UI.Page.ApplyMasterPage() +18
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +543
|
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
Jonathan Minond
http://www.Jonavi.com
http://www.jonavi.com/Default.aspx?pageID=21
http://RainbowBeta.com
http://community.rainbowportal.net/blogs/jonathans_rainbow_blog/default.aspx
http://dotnetslackers.com/community/blogs/jminond/default.aspx