RE: security in windows app



Thanks for your reply Gerhard,

As for the connectionstring, do you mean programmatically modify it or you
just want to modify it anyway after the application has been deployed? For
windows application which call the ASP.NET (system.web....) membership &
role class methods, it should contains the same <system.web> and
<connectionStrings> setting as ASP.NET application do. And if you want to
change connectionstring, just modify the corresponding connectionstring in
your windows application's app.config file.

Also, once the ASP.NET membership provider has read the connectionstring(in
its internal code logic), it will cached it in memory. Thus, you can not
modify it (when the application is running) until you restart the
application(AppDomain of .net framework application).

Hope this helps. If you still have anything unclear, please feel free to
let me know.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.

.



Relevant Pages

  • Re: User Logon Request Is Rejected
    ... Wondering if the Load Hive method can be used to modify the HKLM part? ... Final option, consider repairing XP: http://www.webtree.ca/windowsxp/repair_xp.htm ... Windows XP Shell/User ... "ET Sherman" wrote in message ...
    (microsoft.public.windowsxp.general)
  • Re: several windowsforms
    ... the Windows Forms Designer adds some code to the body of the ... you don't have to write the connection string as a string literal in your ... Layer, Business Rules Layer and the Presentation Layer,so the Windows Forms ... > Each windowsform has its own connectionstring connecting up to one ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Copying a kernel routine
    ... OH, lets see, you are going to modify the page table, but not the internal ... If you need a kernel like routine, design your own, but of course as I said ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ...
    (microsoft.public.development.device.drivers)
  • Re: CHKDSK Ran on restart now I cant view files!
    ... I havent used or modified the drive (maybe windows has) I read that if I ... modify the contents the worst it will be to recover! ... The more you use the drive or modify data ... Windows will now check the disk. ...
    (microsoft.public.windowsxp.general)
  • [vim] Syntax Highlighting Takes a Holiday
    ... On the job I use RCS for version control under Windows. ... Quite often I begin to modify a file only to be warned it is read only. ... The problem I'm writing about is after the "edit" command, all the foreground colors change to either white or black, depending on the background, dark or light. ... endif endfunction. ...
    (comp.editors)