.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

May I know how to install DLL to Global assembly cache ?

Posted By:      Posted Date: October 15, 2010    Points: 0   Category :.NET Framework
May I know how to  install DLL to Global assembly cache ?

View Complete Post

More Related Resource Links

"Cannot install this assembly into the global assembly cache The assembly might not be signed" when

In a workflow that I developed earlier I could debug from within Visual Studio 2008. 
It would deploy automatically with no errors when I used DEBUG -> START NEW INSTANCE.

Now when I try to debug it I am getting the error:

Cannot install this assembly into the global assembly cache:  MYDLL.DLL. The assembly might not be signed.

But it is Signed with the same key.snk as before when it debugged with no problems.

How do I fix this?

NGEN.EXE Install assembly

If I have  a.dll that I locate in directory c:\test\a.dll. I successfully run an ngen install of the dll and can see it clearly in an NGEN display, as well as the root section If I copy the dll to another folder .. example c:\test2\a.dll and load the a.dll from this folder, does the machine use the native image cache from my original ngen install. I am guessing it does not as there is no ngen root referernce to c:\test2\a.dll in my ngen display. I have searched the iternet for this answer and am hoping someone here has an opinion, or better yet, an answer.   Thanks ! 

How To Install .NET Assembly Into GAC On Windows Server 2008

Hi there.

I have a .NET 2.0 assembly which has been used in many SharePoint projects, running on W2K3 boxes, which I'm having trouble installing on a W2K8 box. Normally, on a W2K3 box, I can get away with dragging the assembly into the C:\Windows\Assembly folder and it will be installed, no problem. However, I see that things are a bit different in W2K8!

If I try to drag the assembly into the GAC, I get an error message indicating that I can't do that. Ok, so I ran Windows Explorer with 'Run As Administrator', but that made no difference.

I looked for .Net Configuration in Control Panel, but that is not there.

As a last resort I did a 'dir gacutil.exe /a/s/p' in a command prompt, but that returned nothing. There is no Visual Studio installed on the W2K8 box, thus I assume that's the reason for no gacutil.exe.

So my questions is, what is the preferred method of installing an assembly into the GAC in W2K8? Has anyone else had the same problem?


hi i m getting "failed to install assembly:- microsoft.visualbasic.vsa.dll because of system error:-

pls help me rectifying this error n pls guide me to rectify it

hi i m getting "failed to install assembly:- microsoft.visualbasic.vsa.dll because of system error:-0x80131107" during the installtion of microsoft .net framework 2.0

Intellisense not working for assembly registered in global web.config


I made a custom server control library that all of our websites will be using. I have registered the dll in the global web.config of our production and development servers, and everything builds and runs fine. The only problem I have is Visual Studio/Intellisense not recognizing my control. I get the error message "Unknown server tag...", which in turn throws other validation warnings. Does anyone know how to tell Visual Studio to include dll's registered in this location?

Our sites are .net 4.0 and below is an excerpt from the web.config located in %SystemDrive%\Windows\Microsoft.NET\Framework\v4.0.30319\Config on the servers.



    <add assembly="[assembly info]" tagPrefix="irnrControls" namespace="IRNR.Controls"/>



It's not that big of a deal right now as I only have one control in the dll, but I would like to fix this before I add more controls. Thanks in advance.

install CLR assembly on web server


I have windows forms application which uses a CLR Assembly in SQL Server to do some intensive calcs

I am looking at moving the database to a hosted web server and am unsure how to map the assembly file location

Below is the script I use to install the assembly on clients computers where sql server is on their computer





Making CLR Assembly "Global" so all databases can see it..


I am relatively new to SQL Server and we are exploring the opportunity to create C# assemblies for some of our complex calculation logic.  Our SQL server will have one instance, but individual databases for each of our customers.  We'd like to have one "copy" of the CLR assembly that all of the databases use instead of having to load the assembly into each database.  We feel that when we have changes going forward to the calculation logic, this will be very difficult to maintain.  We would like to be able to load them into the instance and have them shared by all users/databases.  Is this possible with SQL Server? 


Deployment error system.data.sqlserverce version glabal assembly cache


I have upgraded my development environment from Visual C# 2008 Express on Windows XP to Visual C# 2010 Express running on Windows 7 that uses SQLCE SP2.  I use a private deployment of the SQLCE 32-bit and 64-bit libaries and for the past year has wworked fine deploying to all systems.  Since upgrading I have been unable to produce a successful deployment.  I get an error almost immediately when my program attempts to update

system.data.sqlserverce version glabal assembly cache

I have been attempting to do the deployment on a Windows 7 64 bit machine.  Does anybody have any ideas what I can do to eliminate this issue.  I have ensure that my build is targeting .NET 3.5


David Allen

Global Exception Handling with ASP.NET

After your global exception handler has done its work, you'll want to redirect the users of your website to a friendly page that tells them that something has gone wrong, and then provide them with customer support information as well as a link back to your web application's home page.

SqlServer - Windows Account to install Application from Gallery


Referring to this tutorial: http://www.asp.net/webmatrix/tutorials/download-and-install-an-asp-net-application

I selected umbraco cms and got this wizard:

I already have Standard Sql Server 2005 on my machine which I wanted to us for above DB and not SqlExpress.

I did not remember "sa" account pwd nor I use explicitly any account to connect to my Sqlserver. I use Windows Authentication account i.e implicit authentication. So I created new account and gave all rights and used it in the above wizard and was able to install the database after some struggle.

My question is: What if I want to use my Windows Account to install the database above? Why the wizard don't have any option to use Windows Integrated Authentication?

Note: I can create the DB with external user I created, just looking specifics for using Windows Authentication for above installation.

VWDE 2010 Won't Install Ajax Control Toolkit on XP Pro


To my displeasure I cannot find VWD2005 which at one time would generate a complete web.config for Ajax so I downloaded and installed VWDE 2010 to a clean install of XP Pro.

I've created a new tab on the toolbar for the controls but after I select the Ajax dll to add the controls to the toolbar it grinds away and then goes poof and closes down the task leaving VWD look as if I had never even created the tab in the toolbar. 


Any advice here?

Error: Encountered multiple versions of the same assembly with GUID...try pre-importing...TlbImp


Hi!  Can someone tell me how I can troubleshoot the following error: "Encountered multiple versions of the same assembly with GUID...try pre-importing one of these assemblies".

The website developed in VS 2010 (.Net 3.5). This error is only received on my workstation.  Another person developing the site does not experience this issue at all.  Also, not sure if this matters, but on my workstation the 'Assembly Information...' dialog contains no values even though the 'AssemblyInfo.vb' file does specify values for the title, desc, etc.  The GUID being referenced in the error is the main project of the three projects within the solution.

I tried looking through the GAC, but do not see any references to the projects or DLLs in the VS solution and am not sure what else/where to look.

If I delete the copy of the solution on my local machine and pull down a copy from source control (AnkhSVN) the solution will build with no error.  Once I make any changes, such as adding a new aspx file, then the error is received.

I can provide any additional information needed.

how i can install sql server in my system


which edition of sql server  are best for me  Developer edition or express editon for development purpose.

i try to install last time sql server in my system but not successful so what i do for get the sql server in my system.

The type 'System.Data.Linq.DataContext' is defined in an assembly that is not referenced. You must



This is frustrating, and I don't know how to solve it.

I have a strange problem. I am adding a LinqDatasource object, and set the context:

        protected void LinqDataSource_ContextCreating(object sender, LinqDataSourceContextEventArgs e)
            e.ObjectInstance = new KaruselaDataContext(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString);

Then I get this error:
The type 'System.Data.Linq.DataContext' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data.Linq, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089'.


On web.config I already have this:
<add assembly="System.Data.Linq, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>

NOTE: The datacontext is in a different project (DLL proect) where I added a refernce to System.Data.Linq.

is there another way adding a refernce to a web project? or only though teh web.config?


MySql.Data assembly problem



I added refernece MySql.Data to my project. My web.config looks like that:

<?xml version="1.0"?>
                <add assembly="MySql.Data, Version=, Culture=neutral, PublicKeyToken=C5687FC88969C44D"/>

But when in ServerExplorer I try "Add Connection..." I can't find "MySql Database" in the "Choose Data Source" dialog box?

What the problem can be?

Registering controls of current assembly object reference NOT set error


Hi There,

I have created a simple ASP.net Web Application (2.0) and have added a web user control.

Now in my page I have added this control but I have registered like this,

<%@ Register Assembly="WebApplication1" Namespace="WebApplication1" TagPrefix="Custom" %>

Which means I want to access all the controls in my current Web Application project

Then I have added my user control like this,

<Custom:MyUserControl ID="MyUserControl1" runat="server" PublicProperty="Hello" />

Every thing is fine but when I execute the project, NO control on my user control gets "instantiated" and thus I receive error "Object Reference Not Set"

Note that My Control has,

1) Public property PublicProperty as String

2) 1 Label control

In Load Event Handler I am setting Text property of Label Control to PublicProperty. Here object reference NOT set error occurs (which means Label control is NOT initialized).

I don't want to register my control using Src, TagPrefix etc. Any ideas?


Can't read global resource in asp button


I have translated Text Ok in arabic and I have that placed in global Navig.resx file

<asp:Button ID

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend