Crashed when adding route

6 messages
04/12/2010 at 10:11

  Got this (part 1)

erver Error in '/' Application. Unable to cast object of type 'Magicalia.MPS.Modules.Site.Controls.Literal' to type 'System.Web.UI.WebControls.Label'. 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: Unable to cast object of type 'Magicalia.MPS.Modules.Site.Controls.Literal' to type 'System.Web.UI.WebControls.Label'.

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <!--Page Language="C#" Debug="true"-->

or:

2) Add the following section to the configuration file of your application:


   
       
   


Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.
Stack Trace:

04/12/2010 at 10:11

  Got this (part 2)

Stack Trace:

[InvalidCastException: Unable to cast object of type 'Magicalia.MPS.Modules.Site.Controls.Literal' to type 'System.Web.UI.WebControls.Label'.] Magicalia.MPS.Modules.Routes.Controls.ControlTemplate.AddParsedSubObject(Object obj) +3543 System.Web.UI.Control.System.Web.UI.IParserAccessor.AddParsedSubObject(Object obj) +10 ASP.routes_route_aspx.__BuildControl__control7(Control __ctrl) +510 System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container) +12 Magicalia.MPS.Modules.Routes.Controls.RouteView.CreateChildControls() +179 System.Web.UI.Control.EnsureChildControls() +87 System.Web.UI.Control.PreRenderRecursiveInternal() +44 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082 <!-- [InvalidCastException]: Unable to cast object of type 'Magicalia.MPS.Modules.Site.Controls.Literal' to type 'System.Web.UI.WebControls.Label'. at Magicalia.MPS.Modules.Routes.Controls.RouteView.ControlTemplate.AddParsedSubObject(Object obj) at System.Web.UI.Control.System.Web.UI.IParserAccessor.AddParsedSubObject(Object obj) at ASP.routes_route_aspx.__BuildControl__control7(Control __ctrl) at System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container) at Magicalia.MPS.Modules.Routes.Controls.RouteView.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) [HttpUnhandledException]: Exception of type 'System.Web.HttpUnhandledException' was thrown. at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.routes_route_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --><!-- This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using <customErrors mode="Off"/>. Consider using <customErrors mode="On"/> or <customErrors mode="RemoteOnly"/> in production environments.-->

04/12/2010 at 10:12

Had to submit your stack dump in two parts.

Error occured when submitting a route

10/01/2011 at 13:34

Just got the same thing while trying to save a route - here is the Stack trace:

[InvalidCastException: Unable to cast object of type 'Magicalia.MPS.Modules.Site.Controls.Literal' to type 'System.Web.UI.WebControls.Label'.]
   Magicalia.MPS.Modules.Routes.Controls.ControlTemplate.AddParsedSubObject(Object obj) +3543
   System.Web.UI.Control.System.Web.UI.IParserAccessor.AddParsedSubObject(Object obj) +10
   ASP.routes_route_aspx.__BuildControl__control7(Control __ctrl) +510
   System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container) +12
   Magicalia.MPS.Modules.Routes.Controls.RouteView.CreateChildControls() +179
   System.Web.UI.Control.EnsureChildControls() +87
   System.Web.UI.Control.PreRenderRecursiveInternal() +44
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

10/01/2011 at 18:39
Well good luck in getting them to do anything. I heard bugger all and use something different now.
18/01/2011 at 15:53

Yeesh those error messages look nasty - will report to tech team and get back to you with a response/fix

Alice


We'd love you to add a comment! Please login or take half a minute to register as a free member
6 messages
Previously bookmarked threads are now visible in "Followed Threads". You can also manage notifications on these threads from the "Forum Settings" section of your profile settings page to prevent being sent an email when a reply is made.
Forum Jump