Solved

Referring Interop dlls

Posted on 2006-06-27
3
230 Views
Last Modified: 2010-04-16
I have a C# application in which i am referring Microsoft Office Object Library 11.0 and Microsoft Outlook Object Library 11.0 .After referring, if i check these references, i found that these are getting referred from local folder and Copy Local is true.In some other machines , Copy Local is false and it is referring GAC.,Do i need to always keep Copy Local to true.Can anybody tell me the the advan/disadv of setting Copy Local to true or false.

Jisha.
0
Comment
Question by:jisha123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 48

Accepted Solution

by:
AlexFM earned 50 total points
ID: 16992632
Copy Local ensures that referenced library is available at runtime, since it is placed in the same directory as executable.
For library which is always available through GAC or system PATH, this property can be set to false. Generally, true value is always OK, it requires some time for copying whem project is built, but ensures that library is always available.
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question