Unable to cast object of type 'System.Web.Compilation.BuildResultCompiledAssembly' to type 'System.W

J

jlecain

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.BuildResultCompiledAssembly' 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.BuildResultCompiledAssembly' 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.BuildResultCompiledAssembly' to type
'System.Web.Util.ITypedWebObjectFactory'.]

System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath
virtualPath, HttpContext context, Boolean allowCrossApp, Boolean
noAssert) +123

System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(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.IHttpHandlerFactory2.GetHandler(HttpContext
context, String requestType, VirtualPath virtualPath, String
physicalPath) +40
System.Web.HttpApplication.MapHttpHandler(HttpContext context,
String requestType, VirtualPath path, String pathTranslated, Boolean
useAppConfig) +139

System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
+120
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +155
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top