gac

Deploying a Custom Field Types to the bin directory

As stated here custom field types (and any dlls they have a reference to?) must be deployed to the global assembly cache. Why, and what problems may arise by deploying to the bin directory? I’m trying to secure my code by writing CAS-policies and since my field controls uses a lot of help methods shared by my other code this seems like ...

In Vista in Administrative Tools the Microsoft .NET Framework Configuration shortcut is gone, how do I view the GAC?

I'm trying to view the items in the GAC on Vista and I've got all the .NET stuff installed, 1.0, 2.0, 3.5 and 3.5 SP1 but I don't see shortcut from Administrative Tools. Does anyone know another way to view and edit the items in the GAC? ...

GAC Assembly naming (ASP.Net 2 + IIS7 + Windows Vista Home Premium)

I have a membership provider assembly that I wish to add to IIS7. I was going to leave this in the App_Code file for the web app, but IIS7 has asked me to provide a strong name assembly, which I have. Now I get this when trying to acccess ASP.Net Users in IIS The assembly name or codebase was invalid. Exception from HRESULT 0x80131047...

.NET Assembly Binding How/Why (1.1, 2.0, GAC, Policy Files and more...)

I have been working through a number of very "odd" issues with some DLL versions, Policy Files, and items in the GAC and for the life of me I haven't been able to find a solid answer as to how/why the .NET framework picks the assemblies that it does, when binding project references. First of all to give a bit of history about what we ...

Exception error message with incorrect line number

When an exception occurs to in an Asp.Net web page, an error message is displayed with the complete stack trace. Example below: Stack Trace: IndexOutOfRangeException: Index was outside the bounds of the array. MyNameSpace.SPAPP.ViewDetailsCodeBehind.LoadView() +5112 MyNameSpace.SPAPP.ViewDetailsCodeBehind.Page_Load(Obj...

When and when-not to install into the GAC?

When should you install into the GAC and when should you not? (I am referring, really, to installing on a client's machine when they have purchased our product(s)). I have an assembly that is only going to be used with my one application (GAC or no-GAC)? I have an assembly that all my applications share (GAC or no-GAC)? All my applicat...

Can I use a single BIN folder for several ASP.NET applications?

Keep in mind that I don't want to use the GAC since my assemblies are frequently updated and I do not wish to register them after each update. ...

Is there such a thing as a Per-User Global Assembly Cache?

Question says it all ...

Making build process independent of GAC

How can we make our build process (Dev Studio 2005) for a .NET project completely independent of what is installed on the GAC on the particular machine that it is running on. Here's the problem we're trying to solve: Depending on what assemblies happen to have been installed into the GAC, our build process generates different .NET assem...

Conflict between GAC and Bin dll

I'm customizing a SharePoint application, and I am referencing in my Visual Studio project a dll that also exists in the GAC. The project builds just fine, but when I hit the page I get the following error: An error occurred during the processing of . c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\bef9a111\5...

Sharepoint SSL Web.Config access issue.

I’ve got a strange scenario: I’ve got a webpart that calls into a dll in the GAC, which is trying to read a section from web.config file. This works fine normally, but under SSL it fails, saying it does not have access to the path (of the config file). However, it’s under the mosssvc account, which has full control over the webconfig fi...

Why should I NOT use the GAC?

There have been a few questions asked along this line stackoverflow such as What are the advantages and disadvantages of using the GAC and When and when-not to install into the GAC? and a few people have asked it on the web expamle. I can't any convincing arguments for not using the GAC. I am sure I am being naive but it seams like the...

Web Part Deployed To GAC Not Working...

So, I inherited a VS project that has a bunch of web parts in it. The project had a key file with a password that no one knows what the password is. So, i created a new key file which obviously changes the PublicKeyToken... I thought deploying the new assembly to the GAC and replacing the old PublicKeyToken with the new one on the SafeC...

Can a .NET Word 2003 add-in be installed outside of the GAC?

I've created a Word add-in component, and a visual studio setup project to install the component. On a clean machine with Office 2003 installed, it does not seem to be possible to get the add-in component to load in Word. Googling the issue suggests that this is because the assembly is not trusted. I gave the assembly full trust using ...

Unable to install or run the application. The application requires stdole Version 7.0.3300.0 in the GAC

Our ClickOnce application is reporting "Unable to install or run the application. The application requires stdole Version 7.0.3300.0 in the GAC" when one user tries to run the application. It's interesting to note that the GAC (c:\windows\asssembly) does not have stdole installed in it. Any ideas how to get it there? We are using .N...

How is shared dll (GAC ) loaded to memory and used in comparison to private dll.

Hi I'd like to point out that I know how to add/remove assembles to/from GAC. What I am asking for is if someone could explain me how does it work from the technical point of view. What's the point in putting dll's there - from the point of view of saving the resources. Kind Regards pk ...

GAC behaviour

I put signed dll into GAC. I delete this dll from folder where other applications could reach it. I try to run client app, which used that dll. Dll is immidiately put back to the original folder. How does it happen? I am guessing that GAC is monitoring folder and when it detects that dll is missing it puts the latest version back to the...

Loading dlls from gac is blocking app

The last few months my application grew bigger and bigger. It's runnable as Wpf .EXE and XBAP at the moment, both sharing the same code. At a few points in the application, the application locks. After invertigating I found out that the application is loading dlls from the GAC at these moments. What happens is that the application star...

Generating Native Images outside the Cache

I would like to use NGEN.EXE in order to generate native images of my assemblies before I create my installer. I am hoping this will keep my binaries Reflector-proof. Am I correct about this? I have just come to understand that all native images are now being stored in the Native Image Cache. Is there a way to get native binaries which ...

Missing Native Images

I've just run NGen on an .exe assembly, to install, and it says all is up to date, but there is no Native Assembly folder in the GAC, nor is there any Native Assembly service. What's up? ...