473,668 Members | 2,600 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

AppDomainSetup: ShadowCopyFiles , ShadowCopyDirec tories

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, SetShadowCopyFi les() and SetShadowCopyPa th(). In the help
it tells me to use AppDomain.Setup Information 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

Apr 4 '06 #1
5 4069
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.

"Rob" <ro********@asd software.com> wrote in message
news:11******** **************@ v46g2000cwv.goo glegroups.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, SetShadowCopyFi les() and SetShadowCopyPa th(). In the help
it tells me to use AppDomain.Setup Information 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


Apr 4 '06 #2
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>
<assemblyBindin g xmlns="urn:sche mas-microsoft-com:asm.v1">
<probing privatePath="Sc riptReferences"/>
</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) SetShadowCopyFi les() and
SetShadowCopyPa th() during startup when the current appdomain is
created.

Rob

Apr 5 '06 #3
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

Apr 7 '06 #4
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

May 1 '06 #5
Rob
Taylor,

Not sure, as you can see nobody seems to know much about this topic.

Cheers,
Rob

May 4 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1511
by: Sean McKaharay | last post by:
I am using the code below and I am getting this error: "Insufficient state to deserialize the object. More information is needed." Has anyone seen this? It is working with other dll's but not on a certain one. Can some help? private void LoadAssembly(string DllLocationDirectory, string applicationName, bool shadowCopyFiles, string friendlyName, string dllName,
5
7420
by: Bill Rust | last post by:
I have a component that needs to access files which exist in the same directory as the DLL containing the component itself. To determine the component's installation directory, I'm using System.Reflection.Assembly.GetExecutingAssembly().Location. This worked fine on my computer, but for another user, it failed because the assembly was being loaded using a shadow copy of the DLL located in a different directory. Is there a way,...
0
2405
by: Mr 071 | last post by:
I am trying to use shadow copying provided by the framework, but I am not able to get it to work. More specifically, after a new app domain is created and the assembly loaded in it, it is still not possible to replace the original DLL although it has been shadow copied to the cache folder. I need to be able to replace plug-in DLLs while the server is running. I guess that is what shadow copying exists for, but the DLL is locked until the...
1
1393
by: Fredrik Melin | last post by:
Hi, We have a ASP.NET project that is using Reflection to load plugin dll's. When needed to update the .dll's some of them are locked to readonly (used by the main dll). I understand that creating a Appdomain with .ShadowCopyFiles = "true" would solve it, but shouldnt this be inherited from the ASP.NET application itself? (because as I understand that is always using a shadow copy?)
1
2168
by: Fredrik Rodin | last post by:
All, As far as I know, ASP.NET 2.0 automatically enable ShadowCopyFIles in the AppDomain. However, is there a way to run an ASP.NET 2.0 application _without_ ShadowCopyFiles enabled? Can I disable it in web.config, machine.config or equal? Doing it in Application_OnStart wont help since the AppDomain is already created. Any hints or suggestions are more than welcome!
0
1156
by: Sneil | last post by:
Situation: I have non-strong-name library _1Lib.dll and want to load it in new domain. Startup app - just console app with code: using System; using System.Reflection; namespace _1Main {
0
883
by: John Wright | last post by:
I have the following code that creates a new appDomain and loads an exe using reflection. The problem I have is the exe file I pass in is still locked by the application. I have showcopyfiles = "true" and specified the locations for the appDomain to use. The shadowfiles and the original file is locked when I execute the command tmpAssm = .Load(strApplicationName). Now if I have shadowcopyfiles on, why would setting the assembly to the...
0
1190
by: John Wright | last post by:
I have the following code that creates a new appDomain and loads an exe using reflection. The problem I have is the exe file I pass in is still locked by the application. I have showcopyfiles = "true" and specified the locations for the appDomain to use. The shadowfiles and the original file is locked when I execute the command tmpAssm = .Load(strApplicationName). Now if I have shadowcopyfiles on, why would setting the assembly to the...
2
3196
by: Kerem Gümrükcü | last post by:
Dear NG, i have some code/assembly here that must be executable from a network share. But it only works if i run it as a Administrator or another privileged user. But it does not execute and silently fails when i try to run it as a standard user. I tried this to make the assembly work with normal users, but it did not work:
0
8371
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8790
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8652
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7391
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6206
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4202
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2782
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2017
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1779
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.