Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / August 2005

Tip: Looking for answers? Try searching our database.

Usercontrol 0x80004005

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Marcin S. - 24 Aug 2005 20:31 GMT
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

-----------------------
Marcin S.
Cowboy (Gregory A. Beamer) - MVP - 25 Aug 2005 14:52 GMT
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?).

Signature

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

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

> Hi,
>
[quoted text clipped - 31 lines]
> -----------------------
> Marcin S.
Marcin S. - 25 Aug 2005 15:26 GMT
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.

> What is you goal here?
>
[quoted text clipped - 44 lines]
> > -----------------------
> > Marcin S.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.