Hi,
I have been getting a a strange error for a few days now in my .net web
application.
The error, detail below, is difficult to reproduce so far. All I know
is that it happens when loading any page and then all the .net pages of
my application returns the same error message.
After a while the error disappears.
I searched for solutions on Google and MSDN but so far I haven't found
anything.
Unable to cast object of type
'System.Web.Compilation.BuildResultCompiledAssembl y' to type
'System.Web.Util.ITypedWebObjectFactory'.
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 'System.Web.Compilation.BuildResultCompiledAssembl y' to type
'System.Web.Util.ITypedWebObjectFactory'.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidCastException: Unable to cast object of type
'System.Web.Compilation.BuildResultCompiledAssembl y' to type
'System.Web.Util.ITypedWebObjectFactory'.]
System.Web.Compilation.BuildManager.GetVirtualPath ObjectFactory(VirtualPath
virtualPath, HttpContext context, Boolean allowCrossApp, Boolean
noAssert) +123
System.Web.Compilation.BuildManager.CreateInstance FromVirtualPath(VirtualPath
virtualPath, Type requiredBaseType, HttpContext context, Boolean
allowCrossApp, Boolean noAssert) +54
System.Web.UI.PageHandlerFactory.GetHandlerHelper( HttpContext
context, String requestType, VirtualPath virtualPath, String
physicalPath) +31
System.Web.UI.PageHandlerFactory.System.Web.IHttpH andlerFactory2.GetHandler(HttpContext
context, String requestType, VirtualPath virtualPath, String
physicalPath) +40
System.Web.HttpApplication.MapHttpHandler(HttpCont ext context,
String requestType, VirtualPath path, String pathTranslated, Boolean
useAppConfig) +139
System.Web.MapHandlerExecutionStep.System.Web.Http Application.IExecutionStep.Execute()
+120
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously) +155
|