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 - ConfigurationSettings

 
Thread Tools Search this Thread
Old 12-03-2004, 07:40 AM   #1
Default ConfigurationSettings


Hello all

I have two web virtual directories
http://localhost/publications
http://localhost/main/publications
both virtual directories point to the same location
C:\inetpub\wwwroot\publications
the first virtual directory works perfectly fine, as expected.
the second does not. when the default page loads and i put a watch on the
ConfigurationSettings class and inspect the AppSettings property, the length
is 0. whereas the length is 3 if i debug the first virtual directory.

any ideas why? obviosuly i need to get stuff outa AppSettings.

Thanks
Jason




Jason
  Reply With Quote
Old 12-03-2004, 02:49 PM   #2
Fredrik Elestedt
 
Posts: n/a
Default Re: ConfigurationSettings
Is the second virtual directory set up under its own application? That would
account for the behaviour you have seen.

"Jason" <> wrote in message
news:...
> Hello all
>
> I have two web virtual directories
> http://localhost/publications
> http://localhost/main/publications
> both virtual directories point to the same location
> C:\inetpub\wwwroot\publications
> the first virtual directory works perfectly fine, as expected.
> the second does not. when the default page loads and i put a watch on the
> ConfigurationSettings class and inspect the AppSettings property, the
> length
> is 0. whereas the length is 3 if i debug the first virtual directory.
>
> any ideas why? obviosuly i need to get stuff outa AppSettings.
>
> Thanks
> Jason
>
>





Fredrik Elestedt
  Reply With Quote
Old 12-03-2004, 04:03 PM   #3
Jason
 
Posts: n/a
Default Re: ConfigurationSettings
yes, you mean if i am in the virtual directory properties and click
"Create"?

the virtual directory is in it's own application then.

Thanks
Jason

"Fredrik Elestedt" <> wrote in message
news:...
> Is the second virtual directory set up under its own application? That

would
> account for the behaviour you have seen.
>
> "Jason" <> wrote in message
> news:...
> > Hello all
> >
> > I have two web virtual directories
> > http://localhost/publications
> > http://localhost/main/publications
> > both virtual directories point to the same location
> > C:\inetpub\wwwroot\publications
> > the first virtual directory works perfectly fine, as expected.
> > the second does not. when the default page loads and i put a watch on

the
> > ConfigurationSettings class and inspect the AppSettings property, the
> > length
> > is 0. whereas the length is 3 if i debug the first virtual directory.
> >
> > any ideas why? obviosuly i need to get stuff outa AppSettings.
> >
> > Thanks
> > Jason
> >
> >

>
>





Jason
  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




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