Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Virtual directory path problem

Reply
Thread Tools

Virtual directory path problem

 
 
Sangeetha
Guest
Posts: n/a
 
      12-21-2005
Hello All,
I have a web application called Remoter and the application resides in this
path
'D:\InetPub\websites\dev1\Remoter'. Now if I access the application(that is
homepage default.asp in D:\InetPub\websites\dev1\Remoter), it fails. Inside
default.asp, I have used Server.Execute(displayURL) where displayURL = "
\WebParts\HTMLEditor\HTMLDisplay.asp". Now this Server.Execute fails. If I do
a Server.MapPath(displayURL) to check if it is able to access the right file
in right path, it returns me
D:\InetPub\websites\dev1\WebParts\HTMLEditor\HTMLD isplay.asp
instead of
D:\InetPub\websites\dev1\Remoter\WebParts\HTMLEdit or\HTMLDisplay.asp
I dont understand why the the virtual directory name gets missed out in the
URL. I checked up the virtual directory settings in IIS and it seems fine and
the right location is only
D:\InetPub\websites\dev1\Remoter\WebParts\HTMLEdit or\HTMLDisplay.asp. Can
someone help ?
 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How get the virtual path based on the physical path? marss ASP .Net 5 09-13-2007 04:20 PM
physical path to virtual path under virtual directory =?Utf-8?B?SmVmZiBCZWVt?= ASP .Net 4 08-01-2007 02:59 PM
path "Not a valid virtual Path" in Visual Web Dev Ex 2005 larrybud2002@yahoo.com ASP .Net 9 12-07-2006 02:16 AM
Sharing problem when local path of virtual directory is modified Richard ASP .Net 1 05-14-2006 03:51 AM
virtual directory name? or unc directory path? Steve Singer ASP .Net 0 02-15-2005 10:26 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57