Hi Betty,
From your descrpition, you ocassionally get some error at the
"Server.MapPath" call in your ASP application ,correct?
According to the codesnippet you provided, the Server.MapPath parameter is
concatenated via several string. As you said "sCerPath" is always
fixed(from environment variable), then the only part may vary is the
"order_id" variable, correct?
I've performed some research, it seems some possible causes is the path
contains some illegal characters, you can check the following thread:
http://www.xlinesoft.com/asprunnerpr...se_strategy.ht
m
Also, a kb article mentioned the ".." parent path code is not allowed in
Server.MapPath.
http://support.microsoft.com/?id=332117
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.--------------------
>From: =?Utf-8?B?YzY3NjIyOA==?= <be***@newsgroup.nospam>
Subject: Path=Server.MapPath
Date: Tue, 5 Aug 2008 14:52:15 -0700
>
Hi all,
I have one line code in my program, occasionaly I will receive the
following
>error:
"The Path parameter for the MapPath method did not correspond to a known
path"
>
Path=Server.MapPath(sCertPath & "\" & order_id & ".pdf")
I am wondering what is happening since every time I check my error log,
the
>order_id value is not empty and sCertPath is a system variable.
Why does Server.Mappath fail?
can you share a hint?
--
Betty