473,396 Members | 1,836 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Server.MapPath() croaking with "failed to map path", but path is legal

Havin a problem with MapPath() failing on me. It doesn't do it right
away, but at some point it dies and won't come back. I have to hiccup
the app by poking IIS or a web.config/other critical file.

First, some background :
0. .Net 1.1, Win2k, IIS5 w/ UrlScan (etc). Basic barebones win2k
webserver.

1. This just started happening recently. This area of the code has not
changed a bit since the last update, and has been functioning fine.

2. The directory that is being mapped does exist. Prior to the error
it maps fine and the page works. Other areas of the application appear
to be able to get at the files under this directory (since they rely on
it) just fine after the error, though I do not think that they need to
call map path since they use them in a web context (ie.
images/resources, etc)

3. The actual path that is being mapped is longer
(/ModuleContent/Sub/Sub2), but it also exists. The exception I get
references only the first component.

Here is the exception, with the fat cut out :

message -- Failed to map the path '/ModuleContent'.
source --- System.Web
stack trace ----------------------
at ...ISAPIWorkerRequest.MapPathSlowUsingIISCore(Stri ng path)
at System.Web.Hosting.ISAPIWorkerRequest.MapPath(Stri ng path)
at System.Web.HttpRequest.MapPath( [param name/types removed] )
at System.Web.HttpServerUtility.MapPath(String path)
at OurNamespace.HelperClass.GetAvailableStuff()
at OurNamespace.Class.Page_Load(Object sender, EventArgs e)

Thanks for any ideas! I have searched far and wide, but I can not find
any reports that are not years old or more than tangentially related.

Andrew Backer

Nov 19 '05 #1
0 1826

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

Similar topics

0
by: sztonix | last post by:
Hi all, I encountered a crystal report deployment problem. I make reports with Crystal Report for Visual Studio .NET 2003. It works fine in the development machine. And then make setup...
2
by: Ravi J | last post by:
I am trying to load Microsoft Word and create a document in ASP.NET (C#). But the call to application creation 'Word._Application app = new Word.ApplicationClass();' takes quit a bit of time, and...
1
by: Jonas Auken | last post by:
hi, I have a repeater which dynamically loads another usercontrol throught databinding: OnClick: DataBind() rptProduct_ItemDataBound: ViewSmall _viewSmall = (ViewSmall)...
1
by: John Dalberg | last post by:
Running Crystal Reports with the hotfixes and patches & VS 2003. I created a CR report on my development server which has SQL Server. The report runs fine inside Visual Studio. When I switched...
9
by: Clinton Frankland | last post by:
Hi, On a Windows 2000 Server when attempting to use System.IO.Directory.CreateDirectory(string.concat(Server.MapPath(""), "\verify")) I receive a System.IO.DirectoryNotFoundException error:...
3
by: Colin Williams | last post by:
Hi I am trying to open windows explorer at a specific path on a server. Path is not found whe run. It works ok using a local path. How do i address a server? Code as follows; {...
4
by: Dave | last post by:
The below code is what I'm using to upload JPG's to a Shared folder on my web server. The folder \\GLSDBS03\Entry$ is outside my Web folder. When using FileUpload, and trying to save the JPG, I...
6
by: =?Utf-8?B?RGFuaWVs?= | last post by:
Hi, I have a WCF service deployed in IIS. How could I get the physical server path that the service resides, inside the service code? -- Thanks. Daniel
5
by: xieliwei | last post by:
I have a freshly installed openSuSe 10.2 with PHP4 from http://download.opensuse.org/repositories/home:/michal-m:/php4/openSUSE_10.2/ (openSuSe abandoned PHP4 since version 10, but I have customers...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.