Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Parent web physical path

 
Thread Tools Search this Thread
Old 07-16-2008, 10:05 AM   #1
Default Parent web physical path


I have a setup with two web applications, call them parent and child where
child is web application held virtual underneath parent though not physically.

What I'd like to be able to do is write into parent/App_Data from the child
app, but apart from hard-coding the actual directory into the parent's
web.config I can't determine the location within child; if I evaluate
"~/App_Data" from child then of course it's relative to the child's physical
location.

Does anyone know a nicer way of finding this out?

--
Paul


Paul Hatcher
  Reply With Quote
Old 07-16-2008, 10:28 AM   #2
Eliyahu Goldin
 
Posts: n/a
Default Re: Parent web physical path
A web application can't go higher than the root application folder. Try
making another virtual directory under the child application root and map it
to the same physical directory as parent/App_Data.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


"Paul Hatcher" <> wrote in message
news:3A248166-4FB4-4190-8081-...
>I have a setup with two web applications, call them parent and child where
> child is web application held virtual underneath parent though not
> physically.
>
> What I'd like to be able to do is write into parent/App_Data from the
> child
> app, but apart from hard-coding the actual directory into the parent's
> web.config I can't determine the location within child; if I evaluate
> "~/App_Data" from child then of course it's relative to the child's
> physical
> location.
>
> Does anyone know a nicer way of finding this out?
>
> --
> Paul





Eliyahu Goldin
  Reply With Quote
Old 07-16-2008, 12:58 PM   #3
Paul Hatcher
 
Posts: n/a
Default Re: Parent web physical path
The child is an admin app and there are actually around 20 parents apps so I
was trying to avoid doing anything at the child, but with a bit of work I
should be able to do it...

P1/App_Data -> child/App_Data/P1
P2/App_Data -> child/App_Data/P2
etc...

and in the parent web config I set the SiteName to so it knows which sub
directory to operate against.

--
Paul


"Eliyahu Goldin" wrote:

> A web application can't go higher than the root application folder. Try
> making another virtual directory under the child application root and map it
> to the same physical directory as parent/App_Data.
>
> --
> Eliyahu Goldin,
> Software Developer
> Microsoft MVP [ASP.NET]
> http://msmvps.com/blogs/egoldin
> http://usableasp.net
>
>
> "Paul Hatcher" <> wrote in message
> news:3A248166-4FB4-4190-8081-...
> >I have a setup with two web applications, call them parent and child where
> > child is web application held virtual underneath parent though not
> > physically.
> >
> > What I'd like to be able to do is write into parent/App_Data from the
> > child
> > app, but apart from hard-coding the actual directory into the parent's
> > web.config I can't determine the location within child; if I evaluate
> > "~/App_Data" from child then of course it's relative to the child's
> > physical
> > location.
> >
> > Does anyone know a nicer way of finding this out?
> >
> > --
> > Paul

>
>
>



Paul Hatcher
  Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: Physical sythesis tool PALAC is not supported by Formal Verification tool Conf bbiandov Software 0 12-22-2008 05:25 AM
HD-DVD, Blu Ray forums on AVS Forum shut down because of physical threats AirRaid DVD Video 100 11-23-2007 07:10 PM
Get the Physical path of a sharpoint site arun_gp Software 0 07-31-2007 11:33 AM
The Parent Trap (1961 version) John West Berks DVD Video 7 09-21-2004 04:26 AM
Device Manager vs System Information: Physical Memory installed conflict. P. Qwan A+ Certification 1 07-19-2004 10:46 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

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