473,396 Members | 2,037 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1400
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*****@discussions.microsoft.com> wrote in message
news:17**********************************@microsof t.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_*************************@sqlwork.com> wrote
in message news:%2****************@TK2MSFTNGP02.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*****@discussions.microsoft.com> wrote in message
news:17**********************************@microsof t.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_*************************@sqlwork.com> wrote
in message news:%2****************@TK2MSFTNGP02.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*****@discussions.microsoft.com> wrote in message
news:17**********************************@microsof t.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*****@discussions.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_*************************@sqlwork.com> wrote
in message news:%2****************@TK2MSFTNGP02.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*****@discussions.microsoft.com> wrote in message
> news:17**********************************@microsof t.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
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...
2
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....
4
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...
2
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. ...
0
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:...
2
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...
0
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...
1
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...
1
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...
15
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. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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...
0
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...
0
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,...
0
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...

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.