![]() |
|
|
|
#1 |
|
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 -- |
|
|
|
|
#2 |
|
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? |
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
|
|
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 |