Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Putting assemblies in GAC---which machine if load-balanced?

Putting assemblies in GAC---which machine if load-balanced?

Putting assemblies in GAC---which machine if load-balanced?

Hi all,
Sorry if this is not the correct forum, I searched for "visual studio" and found nothing here forum-wise.
Anyway, we have a C# web project that uses a server farm, each IIS server's site points to a single shared virtual folder holding the compiled app. But my question is--for global assemblies, should they be in the GAC on each IIS machine or should they be on the shared file server with some IIS setting pointing to this shared GAC? We'd been copying them to all 3 places out of ignorance...I don't think that's necessary and am looking for guidance.

RE: Putting assemblies in GAC---which machine if load-balanced?

It is not uncommon to "bin deploy" any assemblies that aren't installed on the server. I've used this when using Go Daddy with libraries they don't have, such as RIA Services for Silverlight. It also comes in handy when using a 3rd party toolset, such as Telerik. When you take an upgrade, you are simply publishing the new .dlls up in the bin folder rather than installing the new version on each server on the balancer. In my experience, the web app will look at the bin folder for the .dll... if it doesn't find it, it will look into the GAC. All you need to do in the web app project is select the references you want to bin deploy and make sure "Copy Local" is set to true.

Good luck!


RE: Putting assemblies in GAC---which machine if load-balanced?

Thanks very much, that eases my mind a bit.

RE: Putting assemblies in GAC---which machine if load-balanced?

You have to pay close attention to bin deploy. I've had NuGet packages that didn't install into the package folder, but into the bin folder. Problem is, we don't check the bin folder into source control (not a good practice in general). This caused the build on the CI server to fail because the assembly was missing.

Craig Berntson
MCSD, Visual C# MVP, www.craigberntson.com/blog

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close