Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Unable to cast object of type 'System.Web.Compilation.BuildResultCompiledAssembl y' to type 'System.Web.Util.ITypedWebObjectFactory'.

Reply
Thread Tools

Unable to cast object of type 'System.Web.Compilation.BuildResultCompiledAssembl y' to type 'System.Web.Util.ITypedWebObjectFactory'.

 
 
jlecain@free.fr
Guest
Posts: n/a
 
      08-03-2006
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to cast object of type 'System.Byte[]' to type 'System.String'. Imran Aziz ASP .Net 4 01-19-2011 03:39 AM
Unable to cast object of type 'ASP.main_master' to type 'ASP.main_master'. craigkenisston@hotmail.com ASP .Net 2 08-15-2006 11:23 PM
Unable to cast object of type 'asp.usercontrols_....._ascx' to type 'usercontrols_.....' marshausk@hotmail.com ASP .Net 1 08-14-2006 12:41 PM
Help: Unable to cast object of type 'System.Int32' to type 'System.String'. keithb ASP .Net 3 05-07-2006 08:06 AM
Unable to cast object of type 'ASP.' to type '' hlyall1189@gmail.com ASP .Net 0 04-11-2006 08:01 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57