|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
AppDomainSetup: ShadowCopyFiles, ShadowCopyDirectoriesHello,
I have upgraded my application from 1.1 to 2.0 framework. Now my application is giving me two warnings on methods that have been depreciated, SetShadowCopyFiles() and SetShadowCopyPath(). In the help it tells me to use AppDomain.SetupInformation for these settings but I can't get them to stick at runtime. I don't want to create a new application domain. I would like to configure the current application domain at startup. Does anybody know if there is an app config file setting or alternative? Thanks, Rob Panosh Advanced Software Designs You can still use depreciated properties, objects and methods in your code.
They just might not be available in later versions of the framework. This gives you time to re-write and refactor your code. Show quoteHide quote "Rob" <rob_pan***@asdsoftware.com> wrote in message news:1144168222.901473.242460@v46g2000cwv.googlegroups.com... > Hello, > > I have upgraded my application from 1.1 to 2.0 framework. Now my > application is giving me two warnings on methods that have been > depreciated, SetShadowCopyFiles() and SetShadowCopyPath(). In the help > it tells me to use AppDomain.SetupInformation for these settings but I > can't get them to stick at runtime. > > I don't want to create a new application domain. I would like to > configure the current application domain at startup. Does anybody know > if there is an app config file setting or alternative? > > Thanks, > Rob Panosh > Advanced Software Designs > Scott,
Thanks for your reply. That is the point I am in the process of trying to rewrite my code. I need to find a way to configure the current appdomain. I can configure the current appdomain PrivatePath (assembly probing) using the following element in my app config file. <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <probing privatePath="ScriptReferences"/> </assemblyBinding> </runtime> What I am trying to find out is there is a way to configure (maybe app config file, can't find anything in help) SetShadowCopyFiles() and SetShadowCopyPath() during startup when the current appdomain is created. Rob I'm simply amazed that nobody can assist me on this. All I want to be
able to do is change these settings in the current application domain. I can't undstand why MS would obsolete the functions I used in the 1.1 framework. Rob I'm looking to find out the exact same thing. I would rather not write
a Launcher executable if I can help it. Is there a way to guarantee that the default AppDomain has ShadowCopyFiles turned on before it performs the first bind? Cheers, Taylor
To use a combo ornot
Error: Login failed for user ???? How to retrive Outlook 2003 style gradient color schemes? Dataset Problem Example of encryption Printing the contents of a textbox Copy List(Of type) to another List(Of type) How to detect when ShowDialog object has closed? (2003) Base Class Method to use Shadow'ed member variable of Derived Class? rich text maximum number of lines |
|||||||||||||||||||||||