![]() |
|
|
|
#1 |
|
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 |
|
|
|
|
#2 |
|
Posts: n/a
|
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 |
|
|
|
#3 |
|
Posts: n/a
|
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 |
|
![]() |
| Thread Tools | Search this Thread |
|
|
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 |