Usercontrol 0x80004005

G

Guest

Hi,

I have strange problem, when running a ASP.NET i get the error 0x80004005
when loading a usercontrol, i know that the control is there.

The problem is more strange becouse the applications works fine and the
problem
appears after the first sessiontimeout occours. The only way to get it work
again is to restart IIS.

My application is built using neasted usercontrols and the Root control is
is stored in a session. There is't any problem loading the root control the
problem is to load other controls into the root control.


[HttpException (0x80004005): Failed to map the path '/controls/menu.ascx'.]
System.Web.Hosting.ISAPIWorkerRequest.MapPathSlowUsingIISCore(String
path) +307
System.Web.Hosting.ISAPIWorkerRequest.MapPath(String path) +419
System.Web.HttpRequest.MapPath(String virtualPath, String baseVirtualDir,
Boolean allowCrossAppMapping) +254
System.Web.UI.TemplateControlParser.CompileAndGetParserCacheItem(String
virtualPath, String inputFile, HttpContext context) +99
System.Web.UI.TemplateControlParser.GetCompiledType(String virtualPath,
String inputFile, HttpContext context) +12
System.Web.UI.UserControlParser.GetCompiledUserControlType(String
virtualPath, String inputFile, HttpContext context) +177
System.Web.UI.TemplateControl.LoadControl(String virtualPath) +41
ferus.controls.Root.PushLoadArts(String pSelect, String pList) +118
ferus._default.Page_Load(Object sender, EventArgs e) +434
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750
 
G

Guest

What is you goal here?

Based on what you have written, it sounds like you are dynamically using the
main control, loading other controls into it. Is that correct? If so, you
should read up on Model-View-Controller and compare the pattern to your
implementation.

NOTE: In general, an HTTPHandler is used in the Model-View-Controller
pattern in .NET. I have seen implementations with a Page that worked fine. I
am not saying that MVC with a Control will not work, but one would have to
look closely at the dependencies to avoid errors (perhaps this is where you
are at right now?).

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 
G

Guest

Hi and thanks

It's correct the page is 100% dynamic all controls are added when needed.

But the main problem is not that I get an error, the main problem is that
the error
occours first after 10 - 20 minutes. The control that can't be loaded is
there.

My application is running at: http://localhost/default.aspx

And the control exists in: http://localhost/controls/menu.ascx

This must be some kind of bug, like I wrote i can run the application for
~20 minutes
without problem the suddently is says that the control does not exist. I
have only been running IIS 5 i don't know if IIS 6 would work better but this
seems to be a frameworkproblem.

The Framework ca not resolve correct path what I understand from the error:
"Failed to map the path"

The only way to fix this is to restart iis or to kill the aspnet_wp.exe
then it would work ~20 minutes again.

I wrote that it occourd when first session timout's that is not correct I
set SessionTimeoUt=1 (one minute) but is stops to work after 10 to 20 minutes.

-----------------------
Marcin S.


Cowboy (Gregory A. Beamer) - MVP said:
What is you goal here?

Based on what you have written, it sounds like you are dynamically using the
main control, loading other controls into it. Is that correct? If so, you
should read up on Model-View-Controller and compare the pattern to your
implementation.

NOTE: In general, an HTTPHandler is used in the Model-View-Controller
pattern in .NET. I have seen implementations with a Page that worked fine. I
am not saying that MVC with a Control will not work, but one would have to
look closely at the dependencies to avoid errors (perhaps this is where you
are at right now?).

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************


Marcin S. said:
Hi,

I have strange problem, when running a ASP.NET i get the error 0x80004005
when loading a usercontrol, i know that the control is there.

The problem is more strange becouse the applications works fine and the
problem
appears after the first sessiontimeout occours. The only way to get it work
again is to restart IIS.

My application is built using neasted usercontrols and the Root control is
is stored in a session. There is't any problem loading the root control the
problem is to load other controls into the root control.


[HttpException (0x80004005): Failed to map the path '/controls/menu.ascx'.]
System.Web.Hosting.ISAPIWorkerRequest.MapPathSlowUsingIISCore(String
path) +307
System.Web.Hosting.ISAPIWorkerRequest.MapPath(String path) +419
System.Web.HttpRequest.MapPath(String virtualPath, String baseVirtualDir,
Boolean allowCrossAppMapping) +254
System.Web.UI.TemplateControlParser.CompileAndGetParserCacheItem(String
virtualPath, String inputFile, HttpContext context) +99
System.Web.UI.TemplateControlParser.GetCompiledType(String virtualPath,
String inputFile, HttpContext context) +12
System.Web.UI.UserControlParser.GetCompiledUserControlType(String
virtualPath, String inputFile, HttpContext context) +177
System.Web.UI.TemplateControl.LoadControl(String virtualPath) +41
ferus.controls.Root.PushLoadArts(String pSelect, String pList) +118
ferus._default.Page_Load(Object sender, EventArgs e) +434
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750
 

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

Top