DiscountASP.NET Forums                  

Go Back   DiscountASP.NET Forums > Site Programming, Development and Design > ASP.NET

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 07-27-2010, 12:56 PM   #1
cwchilders
 
Join Date: Apr 2010
Posts: 5
Server.MapPath returns IIS root Not App Path

MapPath mapping works in VS2008 dev (where the local dev server app root), but publishing to a Web Application (www.mysite.com/MyWebApp) not the root in my discountASP.net IIS site resolves to the default app (...htdocs\mysite) , NOT my Web App ((...htdocs\mysite\MyWebApp)?

Also tried HttpRequest.ApplicationPath and that still resolves to root?

What's up with that?

thanks,
bill
--
cwchilders is offline  
Old 07-27-2010, 06:50 PM   #2
bruce
DiscountASP.NET Staff
 
Join Date: Jan 2003
Posts: 6,501
mappath() should return the directory of your site root; i just tested it on my test account.

Can you post code?
__________________
Bruce

DiscountASP.NET
bruce is offline  
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Web service (.asmx) error. Compiler looking for namespace from root web app. ewelling ASP.NET WebServices 4 06-19-2010 04:29 AM
IIS Manager rejects physical path GBiggs Windows 2008/IIS 7 4 05-12-2010 01:39 PM
"The system cannot find the path specified."...on Win 2003 IIS 6.0 andes PHP 6 10-02-2009 02:37 PM
IIS Web App API homeacademy Hosting Services / Control Panel 1 11-12-2007 10:42 AM
How to create application root in IIS Manager? irf Windows 2008/IIS 7 Beta Hosting Program [closed] 2 11-08-2007 06:44 AM


All times are GMT -7. The time now is 01:30 PM.


vBulletin ©Jelsoft Enterprises Ltd.