473,473 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

ASP.NET app initialization problem (Failed to map the path)

I have the following setup:

A website that is completely accessible to a logged-in user. Access control
is handled by a third-party external module implemented as an ISAPI filter.

The /webservices subdirectory contains a public webservice. The ISAPI filter
is configured to ignore this directory, so it is anonymously accessible.

When the application is up and running, everything works as expected.
However if the first access to the application after a restart is made to the
/webservices directory by an anonymous user, I get the following:

[HttpException (0x80004005): Failed to map the path '/webservices'.]
System.Web.Hosting.ISAPIWorkerRequestInProcForIIS6 .MapPathSlowUsingIISCore(String path) +240
(complete error message below)

It seems that the IIS can't initialize the application because the current
visiting user doesn't have access to the root directory! Why does MapPath
need the current user to be able to access the web application's root
directory? Is it trying to read web.config in some strange way (if so -
shouldn't this be done directly through the file system instead of through
the IIS)?

If the first access to the application after a restart is made to the root
directory by a regular authenticated user it initializes fine and subsequent
anonmyous access to the /webservices directory works fine as well...

Anyone with enough knowledge of ASP.NET's inner workings to help me out?

---
[HttpException (0x80004005): Failed to map the path '/webservices'.]
System.Web.Hosting.ISAPIWorkerRequestInProcForIIS6 .MapPathSlowUsingIISCore(String path) +240
System.Web.Hosting.ISAPIWorkerRequest.MapPath(Stri ng path) +419
System.Web.Configuration.HttpConfigurationSystem.C omposeConfig(String
reqPath, IHttpMapPath configmap) +459
System.Web.HttpContext.GetCompleteConfigRecord(Str ing reqpath,
IHttpMapPath configmap) +434
System.Web.HttpContext.GetCompleteConfig() +49
System.Web.HttpContext.GetConfig(String name) +195
System.Web.CustomErrors.GetSettings(HttpContext context, Boolean
canThrow) +20
System.Web.HttpResponse.ReportRuntimeError(Excepti on e, Boolean canThrow)
+39
System.Web.HttpRuntime.FinishRequest(HttpWorkerReq uest wr, HttpContext
context, Exception e) +486
---

Nov 19 '05 #1
2 2759
Does no-one have knowledge of the inner workings of initializing ASP.NET apps?
--
Iteam Solutions - Microsoft Certified ISV Partner (www.iteam.se)
"Anders Bornholm" wrote:
I have the following setup:

A website that is completely accessible to a logged-in user. Access control
is handled by a third-party external module implemented as an ISAPI filter.

The /webservices subdirectory contains a public webservice. The ISAPI filter
is configured to ignore this directory, so it is anonymously accessible.

When the application is up and running, everything works as expected.
However if the first access to the application after a restart is made to the
/webservices directory by an anonymous user, I get the following:

[HttpException (0x80004005): Failed to map the path '/webservices'.]
System.Web.Hosting.ISAPIWorkerRequestInProcForIIS6 .MapPathSlowUsingIISCore(String path) +240
(complete error message below)

It seems that the IIS can't initialize the application because the current
visiting user doesn't have access to the root directory! Why does MapPath
need the current user to be able to access the web application's root
directory? Is it trying to read web.config in some strange way (if so -
shouldn't this be done directly through the file system instead of through
the IIS)?

If the first access to the application after a restart is made to the root
directory by a regular authenticated user it initializes fine and subsequent
anonmyous access to the /webservices directory works fine as well...

Anyone with enough knowledge of ASP.NET's inner workings to help me out?

---
[HttpException (0x80004005): Failed to map the path '/webservices'.]
System.Web.Hosting.ISAPIWorkerRequestInProcForIIS6 .MapPathSlowUsingIISCore(String path) +240
System.Web.Hosting.ISAPIWorkerRequest.MapPath(Stri ng path) +419
System.Web.Configuration.HttpConfigurationSystem.C omposeConfig(String
reqPath, IHttpMapPath configmap) +459
System.Web.HttpContext.GetCompleteConfigRecord(Str ing reqpath,
IHttpMapPath configmap) +434
System.Web.HttpContext.GetCompleteConfig() +49
System.Web.HttpContext.GetConfig(String name) +195
System.Web.CustomErrors.GetSettings(HttpContext context, Boolean
canThrow) +20
System.Web.HttpResponse.ReportRuntimeError(Excepti on e, Boolean canThrow)
+39
System.Web.HttpRuntime.FinishRequest(HttpWorkerReq uest wr, HttpContext
context, Exception e) +486
---

Nov 19 '05 #2
You config is rather complicated and it's hard to tell you anything here.
To be honest with you i did not even understand your configuration especially you are using some custom ISAPI filter i do not have knowledge about.
I would try to configure the /WebService subfolder as an application in IIS management console. That might help.

George.
"Anders Bornholm" <it***@community.nospam> wrote in message news:0B**********************************@microsof t.com...
Does no-one have knowledge of the inner workings of initializing ASP.NET apps?
--
Iteam Solutions - Microsoft Certified ISV Partner (www.iteam.se)
"Anders Bornholm" wrote:
I have the following setup:

A website that is completely accessible to a logged-in user. Access control
is handled by a third-party external module implemented as an ISAPI filter.

The /webservices subdirectory contains a public webservice. The ISAPI filter
is configured to ignore this directory, so it is anonymously accessible.

When the application is up and running, everything works as expected.
However if the first access to the application after a restart is made to the
/webservices directory by an anonymous user, I get the following:

[HttpException (0x80004005): Failed to map the path '/webservices'.]
System.Web.Hosting.ISAPIWorkerRequestInProcForIIS6 .MapPathSlowUsingIISCore(String path) +240
(complete error message below)

It seems that the IIS can't initialize the application because the current
visiting user doesn't have access to the root directory! Why does MapPath
need the current user to be able to access the web application's root
directory? Is it trying to read web.config in some strange way (if so -
shouldn't this be done directly through the file system instead of through
the IIS)?

If the first access to the application after a restart is made to the root
directory by a regular authenticated user it initializes fine and subsequent
anonmyous access to the /webservices directory works fine as well...

Anyone with enough knowledge of ASP.NET's inner workings to help me out?

---
[HttpException (0x80004005): Failed to map the path '/webservices'.]
System.Web.Hosting.ISAPIWorkerRequestInProcForIIS6 .MapPathSlowUsingIISCore(String path) +240
System.Web.Hosting.ISAPIWorkerRequest.MapPath(Stri ng path) +419
System.Web.Configuration.HttpConfigurationSystem.C omposeConfig(String
reqPath, IHttpMapPath configmap) +459
System.Web.HttpContext.GetCompleteConfigRecord(Str ing reqpath,
IHttpMapPath configmap) +434
System.Web.HttpContext.GetCompleteConfig() +49
System.Web.HttpContext.GetConfig(String name) +195
System.Web.CustomErrors.GetSettings(HttpContext context, Boolean
canThrow) +20
System.Web.HttpResponse.ReportRuntimeError(Excepti on e, Boolean canThrow)
+39
System.Web.HttpRuntime.FinishRequest(HttpWorkerReq uest wr, HttpContext
context, Exception e) +486
---


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jean Stax | last post by:
Hi ! I try to make pretty straight forward operation, but it fails... I have .NET Framework 1.1 Configuration (version 1.1.4322.573) with VS 2003, where I developed a sample application. Now I...
5
by: Adriano Coser | last post by:
Hello. I've just finished the compilation of my application with VC 2005 Beta 2 (Express edition) and I'm getting the following initialization error loading one of my DLLs: LDR:...
9
by: Tim D | last post by:
Hi, I originally posted this as a reply to a rather old thread in dotnet.framework.general and didn't get any response. I thought it might be more relevant here; anyone got any ideas? My...
13
by: Adam | last post by:
Trying to get an asp.net 2.0 app running and am receiving this error. I see a bunch of people with this error on the net, but no solution: Works fine on my local machine, deployed to a server it...
0
by: Jody Gelowitz | last post by:
VS2005 Standard Edition WinXP Pro SP2 I have setup a Web project under: http://localhost/myproject/ and have received a "Failed to map the path '/MyProject/App_GlobalResources'." error...
0
by: nojhan | last post by:
I'm trying to embbed the python interpreter as a class attribute, initializing it in the constructor, and finalizing in destructor. The code is rather simple: // base_path is an attribute of...
49
by: Luke Meyers | last post by:
Lately I find myself increasingly preferring the practice of going ever-so-slightly out of my way to avoid the use of the form of initialization which uses the '=' symbol, on the grounds that it...
11
by: subramanian100in | last post by:
Suppose we have a class named Test. Test obj; // assuming default ctor is available Test direct_init(obj); // direct initialization happens here Test copy_init = obj; // copy initialization...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.