Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

server.execute problem

Status
Not open for further replies.

mobius1983

Technical User
Jul 7, 2002
45
GB
Hi everyone,

I am hoping someone can help. I am trying to create an asp application, I want asp pages from different folders on my server to server.execute the same asp page. So I created a content.x.com entry on the dns and can open the page by typing the url in ie. but if i try to call it from an asp page I get the following error:

Server object error 'ASP 0173 : 80004005'

Invalid Path Character

/newtest/sites/com/test.asp, line 6

An invalid character was specified in the Path parameter for the MapPath method.


Does anyone know why this is failing? can a server.execute not like running a full URL?? I created the new DNS entry so that I didnt enable parent paths on the server and open up a security hole.

Thanks to anyone that can offer me some advice!

Nick
 
response.write the parameter that server.mappath is being called with, you'll probably see the problem straight away. If not post the paremeter back here.



Chris.

Indifference will be the downfall of mankind, but who cares?
 
you can only use relative pathnames with server.execute





Chris.

Indifference will be the downfall of mankind, but who cares?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top