473,587 Members | 2,447 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 ...ISAPIWorkerR equest.MapPathS lowUsingIISCore (String path)
at System.Web.Host ing.ISAPIWorker Request.MapPath (String path)
at System.Web.Http Request.MapPath ( [param name/types removed] )
at System.Web.Http ServerUtility.M apPath(String path)
at OurNamespace.He lperClass.GetAv ailableStuff()
at OurNamespace.Cl ass.Page_Load(O bject 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 1870

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

Similar topics

0
1918
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 package. Installed on a windows server 2003 system (without visual studio .net 2003), the report gives error about "Logon Failed". The data source is specified to OLE DB SQL Server, and the LogOnInfo is specified by
2
7324
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 eventually "Server Execution Failed" page appears. "Exception Details: System.Runtime.InteropServices.COMException: Server execution failed ... " The same call inside a WIndows Form succeeds. But for some reason, in ASP.NET it doesn't. Quick...
1
4227
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) LoadControl("ViewSmall.ascx");
1
2262
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 the source of the DB to the production server using the 'set location' option in CR and ran the app again, I get "Logon Failed" error message. The database wizard worked fine so this tells me CR was able to connect and retrieve the schema from the...
9
13703
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: Could not find a part of the path "D:\". The full path is "D:\hshome\clinton\test.gotchasoft.com\verify" The web is running using impersonation as a user on the local machine.
3
11677
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; { System.Diagnostics.ProcessStartInfo exploreTest = new System.Diagnostics.ProcessStartInfo(); exploreTest.FileName = "explorer.exe";
4
5620
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 get a "Failed to map the path '/GLSDBS03/Entry$'" error. I'm open to suggestions or a better idea. Thanks *********************************************
6
17905
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
3262
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 who need php4 support) The version strings are as follows: # uname -a Linux server2 2.6.18.2-34-default #1 SMP Mon Nov 27 11:46:27 UTC 2006 i686 athlon i386 GNU/Linux
0
7924
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7854
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8219
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
7978
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8221
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5722
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5395
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3845
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
1192
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.