ASPでXMLファイルを読み込むのに問題があります。 これは、XMLファイル(それがUNCのURLです)の場所です:Server.MapPathがUNC URLを受け付けていません
\\ilife104\teamdisk\Shared\Integration\System\dev\Data\prcImportFactSetFeeds\fileList.xml
そして、これは私のコードです:
<%
'load the XML file..
Option Explicit
Response.Buffer = True
Dim xml
Set xml = Server.CreateObject("Microsoft.XMLDOM")
xml.async = False
xml.load (Server.MapPath("\\ilife104\teamdisk\Shared\Integration\System\dev\Data\prcImportFactSetFeeds\fileList.xml"))
Dim name, retrieved
name = xml.documentElement.childNodes(0).text
retrieved = xml.documentElement.childNodes(2).text
Set xml = Nothing
%>
それはエラーを与える:
Server.MapPath() error 'ASP 0174 : 80004005'
Invalid Path Character(s)
/ITWeb/Interfaces/je/index.asp, line 9
An invalid '/' or '\' was found in the Path parameter for the MapPath method.
は誰をい解決策を知っていますか? 事前に感謝、ジェームズ。
なぜあなたは 'MapPath'を呼び出しているにする必要がありますか? – SLaks