Microsoft IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationMicrosoft IIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old December 15th, 2005, 10:26 AM
mehere's Avatar
mehere mehere is offline
Senior Sarcasm Wizardess
ASP Free God 16th Plane (12500 - 12999 posts)
 
Join Date: Feb 2005
Location: Dreamland
Posts: 12,867 mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 10976 Folding Title: Novice Folder
Time spent in forums: 4 Months 4 Weeks 15 h 21 m 57 sec
Reputation Power: 1762
Server.MapPath returns Drive, not URL

when i do Server.MapPath("directory/file.asp") on a site that I'm working on ... I believe it should come up "http://www.domain.name/directory/file.asp" ... however, it comes back something like this:
"file//c:/webdirectory/directory/file.asp" ...

I've never come across this before and not sure what setting needs to be adjusted or set up or whatever.

Any help would surely be appreciated.

Thanks
__________________
Come JOIN the party!!!

Quote of the Month:
Retirement: Because you've given so much of yourself to the company that you don't have anything left we can use.

Questions to Ponder:
What do you do when you see an endangered animal eating an endangered plant?

iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm")
copyright© 2008 sbenj69

Reply With Quote
  #2  
Old December 15th, 2005, 11:26 AM
Dwarf's Avatar
Dwarf Dwarf is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Location: Moscow, Russia
Posts: 327 Dwarf User rank is Sergeant (500 - 2000 Reputation Level)Dwarf User rank is Sergeant (500 - 2000 Reputation Level)Dwarf User rank is Sergeant (500 - 2000 Reputation Level)Dwarf User rank is Sergeant (500 - 2000 Reputation Level)Dwarf User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 9 h 1 m 50 sec
Reputation Power: 16
The MapPath method maps the specified relative or virtual path to the corresponding physical directory on the server.
http://www.microsoft.com/windows200...sp/vbob98iw.htm

Reply With Quote
  #3  
Old January 13th, 2006, 09:02 AM
Brian1960 Brian1960 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Location: London
Posts: 75 Brian1960 User rank is Lance Corporal (50 - 100 Reputation Level)Brian1960 User rank is Lance Corporal (50 - 100 Reputation Level)Brian1960 User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Day 10 h 21 m 37 sec
Reputation Power: 4
Quote:
Originally Posted by mehere
"http://www.domain.name/directory/file.asp"


If this is what you are trying to get then try using the ServerVariable collection

e.g
Code:
Request.ServerVariables("HTTP_REFERER")
returns previous page.
I think you need this one but you need to test.
Code:
Request.ServerVariables("HTTP_ACCEPT")


B

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationMicrosoft IIS > Server.MapPath returns Drive, not URL


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT