Ask a Question related to ASP.NET Security, Design and Development.
-
Mike Dando #1
Re: Using Web.Config sessionState values
Ok, I think I have been barking up the wrong tree here.
I think my question should have been:-
Can you point an <appSettings> key to the registry in the same way as you
can for the <sessionState sqlconnectionstring />
I have tried it but it just seems to return the string entered in the
web.config.
Sorry for the confusion.
Mike.
"Mike Dando" <mike.dando@nospam.glass.co.uk> wrote in message
news:efTKT7gbDHA.3896@TK2MSFTNGP11.phx.gbl...order> I may be missing something here.
> I have followed various examples which result in the following web.config
> entry: -
>
> <sessionState mode="InProc"
> sqlconnectionString="registry:HKLMSoftware\etc.... " cookieless="false"
> timeout="20" />
>
> I assumed that my code could then read/use the sessionState values instring> to setup a dbconnection object.
> What is the significance of assigning sqlconnectionstring as above, if you
> have to read the registry direct?
> It is reading the sessionstate values that I am trying to achieve.
>
> Thanks,
> Mike.
>
>
> "Stefan" <shogun@steffsworld.ch> wrote in message
> news:ePMDfvgbDHA.652@tk2msftngp13.phx.gbl...> > use registry object
> >
> > RegistryKey rk = Registry.LocalMachine.OpenSubKey(keypath, false);
> >
> > rk.GetValue(key to get);
> >
> >
> >
> > "Mike Dando" <mike.dando@nospam.glass.co.uk> wrote in message
> > news:%23Uwd09XbDHA.3620@TK2MSFTNGP11.phx.gbl...> > > I am using the aspnet_setreg utility to encrypt a SQL connectionDynamicProperties.ConnectionString> to> > > the registry.
> > > How do I retrieve the value at runtime to configure my dbconnection
> > > component?
> > >
> > > I have tried using the [Design Time]this> > > which allows a mapping
> > > to a config file key value. However I can't seem to be able to get> to>> >> > > work.
> > >
> > > Thanks,
> > > Mike.
> > >
> > >
> >
>
Mike Dando Guest
-
Reading Values from Machine.config in ASP.NET
How can i read values from Machine.config From ASP.NET -
WebService session sessionstate SOAP
*Please* help --- I'm tearing my hair out. I want to use sessionstate in a webservice, accessed from a client, written in script (JScript,... -
Error loading XML file c:\windows\microsoft.net\framework\v1.0.3705\Config\machine.config
I had many ASP.NET web applications that I created before I had to rebuild my machine. After a fresh install of XP Pro, VS.NET 2003, etc, I now... -
SessionState won't work
I have notice a couple of other threads here that depict the same problem I am having: I can't get session state to work. I wrote a component... -
omitting config values
What values get used if certain items are omitted from the machine.config file? In particular, if <compilation> is commented out, what value...



Reply With Quote

