Home All Groups Group Topic Archive Search About

AppDomainSetup: ShadowCopyFiles, ShadowCopyDirectories

Author
4 Apr 2006 4:30 PM
Rob
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

Author
4 Apr 2006 8:01 PM
Scott M
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
>
Author
5 Apr 2006 12:27 PM
Rob
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
Author
7 Apr 2006 12:09 PM
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
Author
1 May 2006 8:58 PM
Taylor Brown
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