an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Support > Using DotShoppingCart > Error when editing site.master
Last Post 10/16/2008 2:58:30 AM By ciaran. 6 replies.
10/15/2008 2:25:21 PM
macker999
Posts: 30
Joined: 10/11/2008
Error when editing site.master
Hi
 
Is it possible to edit the site.master file? I tried adding some basic text and i get the following error.
 
Thanks
 
 
 
Server Error in '/' Application.
--------------------------------------------------------------------------------
[A]System.Collections.Generic.Dictionary`2[System.String,Dynamic+PageConfig] cannot be cast to [B]System.Collections.Generic.Dictionary`2[System.String,Dynamic+PageConfig]. Type A originates from 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in the context 'LoadNeither' at location 'C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll'. Type B originates from 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in the context 'LoadNeither' at location 'C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll'.
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.InvalidCastException: [A]System.Collections.Generic.Dictionary`2[System.String,Dynamic+PageConfig] cannot be cast to [B]System.Collections.Generic.Dictionary`2[System.String,Dynamic+PageConfig]. Type A originates from 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in the context 'LoadNeither' at location 'C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll'. Type B originates from 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in the context 'LoadNeither' at location 'C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll'.
Source Error:

Line 69:                     Cache.NoAbsoluteExpiration, new TimeSpan(1, 0, 0));
Line 70:             } else {
Line 71:                 pageConfigurations = (Dictionary<string, PageConfig>)o;
Line 72:             }
Line 73:
 
Source File: d:\Projects\Web\DotShoppingCartSuiteV2.53\DotShoppingCartSuiteV2.53\Web\Dynamic.aspx.cs    Line: 71
Stack Trace:

[InvalidCastException: [A]System.Collections.Generic.Dictionary`2[System.String,Dynamic+PageConfig] cannot be cast to [B]System.Collections.Generic.Dictionary`2[System.String,Dynamic+PageConfig]. Type A originates from 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in the context 'LoadNeither' at location 'C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll'. Type B originates from 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in the context 'LoadNeither' at location 'C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll'.]
   Dynamic.get_PageConfigurations() in d:\Projects\Web\DotShoppingCartSuiteV2.53\DotShoppingCartSuiteV2.53\Web\Dynamic.aspx.cs:71
   Dynamic.Page_PreInit(Object sender, EventArgs e) in d:\Projects\Web\DotShoppingCartSuiteV2.53\DotShoppingCartSuiteV2.53\Web\Dynamic.aspx.cs:86
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Page.OnPreInit(EventArgs e) +8694814
   DotShoppingCart.Commercial.Core.DSCPage.OnPreInit(EventArgs e) +15
   System.Web.UI.Page.PerformPreInit() +31
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +282
 

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
 
 
10/15/2008 3:32:13 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Error when editing site.master
It's the known ASP.NET issue. Every time that you change the code in the site, try restarting the app pool.
DotShoppingCart Staff
10/15/2008 3:42:26 PM
macker999
Posts: 30
Joined: 10/11/2008
Re: Error when editing site.master
Thanks Lukezy
 
Is that the app pool in IIS?
 
I am working on XP pro at the moment and wont be transferring the project to win 2003 for a week or 2. I am using IIS 5.1. There is no option to clear the app pool in my IIS. I have restarted it to no avail. Have you any other solutions on what i can do to flush out this error?
 
Even when i use the visual studio web development server option i still get the error
10/15/2008 4:00:16 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Error when editing site.master
I don't think IIS5 is supported.
 
In VS builtIn web development server, try closing it (see below) and then press "F5" to relaunch it.
 
DotShoppingCart Staff
10/15/2008 4:02:41 PM
macker999
Posts: 30
Joined: 10/11/2008
Re: Error when editing site.master
Thanks
 
 
Does this error only occur when editing site master files
10/15/2008 6:42:21 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Error when editing site.master
Yes, it only happens some files that affect entire site.
DotShoppingCart Staff
10/16/2008 2:58:30 AM
ciaran
Posts: 16
Joined: 8/25/2008
Re: Error when editing site.master
Thanks
 
For IIS 5.1 if you go to control panel / administration tools /  services and restart the IIS admin service fixes the problme