473,657 Members | 2,559 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

GAC and Source Safe

Hi,

I have a question regarding the Global Assembly Cache (GAC) and Source
Safe. We have some common dlls which we would like to put in GAC so that they
can be used in different applications. We are using Source Safe as a Version
Control. Let's say I have created a data access library( one of common dll)
and put in the source safe. I have created one web application which needs
to access this data access dll. Can I put this data access library in GAC and
refer it from there in my web application? If I need to deploy this web
application, how should I do that? If one of the other developers added some
functions to this data access library and checked in to source safe and if I
need to access these new functions what are the steps involved? Please let me
know.

Thanks,
May 17 '06 #1
4 1415
the best approach is to not use the gac. just build the shared code and
include the dll with your project. then you always have the version of the
library that matched your code. you can also change and distribute a new
version of libary with your app and not break anyone else. all using the
gac does is save some disk space.

-- bruce (sqlwork.com)

"Sridhar" <Sr*****@discus sions.microsoft .com> wrote in message
news:17******** *************** ***********@mic rosoft.com...
Hi,

I have a question regarding the Global Assembly Cache (GAC) and Source
Safe. We have some common dlls which we would like to put in GAC so that
they
can be used in different applications. We are using Source Safe as a
Version
Control. Let's say I have created a data access library( one of common
dll)
and put in the source safe. I have created one web application which
needs
to access this data access dll. Can I put this data access library in GAC
and
refer it from there in my web application? If I need to deploy this web
application, how should I do that? If one of the other developers added
some
functions to this data access library and checked in to source safe and if
I
need to access these new functions what are the steps involved? Please let
me
know.

Thanks,

May 17 '06 #2
There are performance issues associated with not using the gac. For
instance, each time the appllication is loaded, the CLR will touch every
function in this new library for code verification purposes. However, this
is just a one time startup cost. I've not measured this expense so I cannot
give an estimate on how bad it is.

--

_______________ _________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------

"bruce barker (sqlwork.com)" <b_************ *************@s qlwork.com> wrote
in message news:%2******** ********@TK2MSF TNGP02.phx.gbl. ..
the best approach is to not use the gac. just build the shared code and
include the dll with your project. then you always have the version of the
library that matched your code. you can also change and distribute a new
version of libary with your app and not break anyone else. all using the
gac does is save some disk space.

-- bruce (sqlwork.com)

"Sridhar" <Sr*****@discus sions.microsoft .com> wrote in message
news:17******** *************** ***********@mic rosoft.com...
Hi,

I have a question regarding the Global Assembly Cache (GAC) and Source
Safe. We have some common dlls which we would like to put in GAC so that
they
can be used in different applications. We are using Source Safe as a
Version
Control. Let's say I have created a data access library( one of common
dll)
and put in the source safe. I have created one web application which
needs
to access this data access dll. Can I put this data access library in GAC
and
refer it from there in my web application? If I need to deploy this web
application, how should I do that? If one of the other developers added
some
functions to this data access library and checked in to source safe and
if I
need to access these new functions what are the steps involved? Please
let me
know.

Thanks,


May 17 '06 #3
Hi Alvin,

Thanks for the reply. I didn't understand your answer correctly. You
are saying that if I don't put an assembly in the GAC, every time when an
application loads, it will check for code verification in all the dlls. Is
that right? In that case, using GAC would be better option.

Thanks,
Sridhar

"Alvin Bruney" wrote:
There are performance issues associated with not using the gac. For
instance, each time the appllication is loaded, the CLR will touch every
function in this new library for code verification purposes. However, this
is just a one time startup cost. I've not measured this expense so I cannot
give an estimate on how bad it is.

--

_______________ _________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------

"bruce barker (sqlwork.com)" <b_************ *************@s qlwork.com> wrote
in message news:%2******** ********@TK2MSF TNGP02.phx.gbl. ..
the best approach is to not use the gac. just build the shared code and
include the dll with your project. then you always have the version of the
library that matched your code. you can also change and distribute a new
version of libary with your app and not break anyone else. all using the
gac does is save some disk space.

-- bruce (sqlwork.com)

"Sridhar" <Sr*****@discus sions.microsoft .com> wrote in message
news:17******** *************** ***********@mic rosoft.com...
Hi,

I have a question regarding the Global Assembly Cache (GAC) and Source
Safe. We have some common dlls which we would like to put in GAC so that
they
can be used in different applications. We are using Source Safe as a
Version
Control. Let's say I have created a data access library( one of common
dll)
and put in the source safe. I have created one web application which
needs
to access this data access dll. Can I put this data access library in GAC
and
refer it from there in my web application? If I need to deploy this web
application, how should I do that? If one of the other developers added
some
functions to this data access library and checked in to source safe and
if I
need to access these new functions what are the steps involved? Please
let me
know.

Thanks,



May 17 '06 #4
Sridhar <Sr*****@discus sions.microsoft .com>'s wild thoughts
were released on Wed, 17 May 2006 12:48:01 -0700 bearing the
following fruit:
Hi Alvin,

Thanks for the reply. I didn't understand your answer correctly. You
are saying that if I don't put an assembly in the GAC, every time when an
application loads, it will check for code verification in all the dlls. Is
that right? In that case, using GAC would be better option.
You should also condider that .NET allows you to avoid 'dll
hell' by following Bruce's suggestion, however you can have
both the advantages and disadvantages of dlls by using the
GAC.

The 'startup' cost others have mentioned I have noticed in
windows forms apps, but I've yet to notice it in my ASP app,
but I guess we're all used to slight delays when using the
web.

Thanks,
Sridhar

"Alvin Bruney" wrote:
There are performance issues associated with not using the gac. For
instance, each time the appllication is loaded, the CLR will touch every
function in this new library for code verification purposes. However, this
is just a one time startup cost. I've not measured this expense so I cannot
give an estimate on how bad it is.

--

_______________ _________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------

"bruce barker (sqlwork.com)" <b_************ *************@s qlwork.com> wrote
in message news:%2******** ********@TK2MSF TNGP02.phx.gbl. ..
> the best approach is to not use the gac. just build the shared code and
> include the dll with your project. then you always have the version of the
> library that matched your code. you can also change and distribute a new
> version of libary with your app and not break anyone else. all using the
> gac does is save some disk space.
>
> -- bruce (sqlwork.com)
>
>
>
> "Sridhar" <Sr*****@discus sions.microsoft .com> wrote in message
> news:17******** *************** ***********@mic rosoft.com...
>> Hi,
>>
>> I have a question regarding the Global Assembly Cache (GAC) and Source
>> Safe. We have some common dlls which we would like to put in GAC so that
>> they
>> can be used in different applications. We are using Source Safe as a
>> Version
>> Control. Let's say I have created a data access library( one of common
>> dll)
>> and put in the source safe. I have created one web application which
>> needs
>> to access this data access dll. Can I put this data access library in GAC
>> and
>> refer it from there in my web application? If I need to deploy this web
>> application, how should I do that? If one of the other developers added
>> some
>> functions to this data access library and checked in to source safe and
>> if I
>> need to access these new functions what are the steps involved? Please
>> let me
>> know.
>>
>> Thanks,
>
>


Jan Hyde (VB MVP)

--
Beverages: Coffee, Tea, Eye Swatter (Cynthia MacGregor)

May 18 '06 #5

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

Similar topics

3
5627
by: Job Lot | last post by:
I am having loads of problem using vb.net project under visual source safe. I’ll start with How can I exclude source safe information from the project when I take a copy of project home? I don’t have source safe on my home pc. Every time I open project at home it gives me missing source safe file error. This is really annoying. How can I fix this? Thanks
2
2316
by: Lou | last post by:
Ok, I added my prject to source safe. It worked good for a week, then, one time I couldn't get to source safe and VB propmted to work offline, no I can't get any of my files back into source safe. Its as if the project is now disconnected from source safe. if I run source safe the start my VB app, I never get the source safe login??? -Lou
4
7307
by: Peter Tragardh | last post by:
Is it possible to automate Source Safe the way Office is automated by writing your own code? What I would like to do is to create some code to enhance Source Safe, to customize it. There is an official object model for Office. Does one like it exist for Source Safe? /Peter
2
1526
by: Darren Clark | last post by:
HOw do i get source safe working with .net? I have source safe the server setup on our server... however on my machine when i go File > Source Control > All options are always greyed out. do i have to install the source safe client on my machine? i thought visual studio .net woudl at the very least have the client installed by default. I dont want to install visual studio 6 again.
0
7708
by: gm | last post by:
Immediately after generating the Access application from the Source Safe project I get: "-2147467259 Could not use ''; file already in use." If Access database closed and then reopened I get: "-2147467259 The database has been place in a state by user 'Admin' on machine ..... that prevents it from being opened or locked."
2
1831
by: clintonb | last post by:
Using Visual Studio 2005, I created a new website: File->New->Web Site and chose the ASP.Net Web Site template. Saved it in location c:\Projects\GCSLRMS_DotNet\WS\WebSite1. It created the solution file: C:\Documents and Settings\clintb.GCSSOFTWARE\My Documents\Visual Studio 2005\Projects\WebSite1\WebSite1.sln I didn't want it there. I wanted it the same folder as all the other
0
2629
by: WebSnozz | last post by:
I would like to add my binaries from the Release directory of several projects to source safe. My hope is that I can get latest, build the project, and then check-in so that the binaries are updated in source safe, and then can be used by others who are creating installers from those release binaries. I can add the files directly through the source safe client, but I prefer to use the VSS features through the VS IDE. If I add the...
1
3591
by: johnlim20088 | last post by:
Hi, Currently I have 6 web projects located in Visual Source Safe 6.0, as usual, everytime I will open solution file located in my local computer, connected to source safe, then check out/check in some files and work on it. Let say, I want add new page to web project named websiteOrder.sln, i will open websiteOrder.sln in my local computer, connected to websiteOrder.sln located in Visual Source Safe 6.0(source safe located in another...
1
19833
by: bharathreddy | last post by:
This Article gives an introduction to VSTS Team Foundation & fundamental difference between Visual Source Safe (VSS) and VSTS Team Foundation. Team Foundation is a set of tools and technologies that enable a team to collaborate and coordinate a project (software or non software projects). The team collaboration is achieved by several tools and features available as part of "Team Foundation". Team Foundation Server The Team...
15
1549
by: Desmond | last post by:
I used Source safe in Visual Studio 6 (2001) However in .net 2008 after installing it there seems to be no sign of any source safe. Has this been dis-continued. If not how do I set it all up. Desmond.
0
8392
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8305
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
8825
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8605
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
7324
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
6163
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
4151
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
2726
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

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.