AzaraT Posted January 20, 2008 Share Posted January 20, 2008 Hi there...I need to load an external xml file but I'm getting this error: Server.MapPath() error 'ASP 0173 : 80004005'Invalid Path Character/release_list/release_list.asp, line 5An invalid character was specified in the Path parameter for the MapPath method. Now, this seems to be a quite common problem, but I still havent been able to find a fix for this, so I hope someone might be able to help me out on this one.My code looks like this: <%'Load XMLset xml = Server.CreateObject("Microsoft.XMLDOM")xml.async = falsexml.load(Server.MapPath("http://www.site.com/feed.xml.asp"))'Load XSLset xsl = Server.CreateObject("Microsoft.XMLDOM")xsl.async = falsexsl.load(Server.MapPath("release_list.xsl"))'Transform fileResponse.Write(xml.transformNode(xsl))%> I quess its the ":" that causes the error, but aint there a way to get around that?Hope somone can help me hereThanks! Link to comment Share on other sites More sharing options...
justsomeguy Posted January 24, 2008 Share Posted January 24, 2008 You can't map a file starting with HTTP. Use the local name of the file, not the HTTP path. Link to comment Share on other sites More sharing options...
AzaraT Posted January 27, 2008 Author Share Posted January 27, 2008 well, the problem is, I dont have the file on my server. There is no local file. Link to comment Share on other sites More sharing options...
justsomeguy Posted January 28, 2008 Share Posted January 28, 2008 Server.Mappath maps to a local filename. If it's not a local file, then you wouldn't use mappath. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.