Strongly named assemblies in bin folder on ASP.NET 2.0

732 Views Asked by At

I know not to put strongly named assemblies into the bin folder on early versions of ASP.NET. I remember this caused problems, but I don't remember specifically what problems. Does anyone know if this still applies to ASP.NET 2.0? Is there any reason not to put strongly named assemblies into the bin folder on ASP.NET 2.0 or later versions?

3

There are 3 best solutions below

2
On BEST ANSWER

The problem you describe was fixed on .NET 2.0, so you don't need to worry about it anymore.

However, beware that if you put a strong-named assembly in the bin folder, and an assembly with the same strong name exists in the GAC, then the assembly in the GAC will get loaded.

2
On

I have not experienced problems with strong named assemblies being put into the bin. I have experienced some Interop problems with strong named assemblies and versioning conflicts, but those were caused by developers compiling older versions of an ComPlus application library into the solution instead of the current or newer version.

6
On

There should be no problems with this. I've done it a few times during development/testing and I even have a site currently running that has strongly named assemblies in the bin folder with no issues.

Assemblies are strongly named for a reason (obviously) so you should have a good reason to drop them in the bin folder.