G
Guest
I have created a simple .net class library
AdapterLibrary.dll, which contains a single class definition
AdapterLibrary.Service (code at end of posting). I have signed the assembly
and I attempt to install in the GAC.
Using Visual Studio 2005 (.net 2.0) to build the dll results in me not being
able to install the assembly in the GAC.
*********************************************
gacutil /i AdapterLibrary.dll
Microsoft (R) .NET Global Assembly Cache Utility. Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.
Failure adding assembly to the cache: Unknown Error
*********************************************
However, if I take the code from this project and compile using VS 2003 I
have absolutely no problems installing the assembly in the GAC.
Can anyone advise on this please?
*********************************************
* Service.cs
*********************************************
using System;
using System.Xml;
namespace AdapterLibrary
{
public class Service
{
public Service() { }
public void Initialise(XmlDocument config) { }
public XmlDocument Execute()
{
XmlDocument doc = new XmlDocument();
doc.LoadXml("<hello><world2/></hello>");
return (doc);
}
}
}
*********************************************
AdapterLibrary.dll, which contains a single class definition
AdapterLibrary.Service (code at end of posting). I have signed the assembly
and I attempt to install in the GAC.
Using Visual Studio 2005 (.net 2.0) to build the dll results in me not being
able to install the assembly in the GAC.
*********************************************
gacutil /i AdapterLibrary.dll
Microsoft (R) .NET Global Assembly Cache Utility. Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.
Failure adding assembly to the cache: Unknown Error
*********************************************
However, if I take the code from this project and compile using VS 2003 I
have absolutely no problems installing the assembly in the GAC.
Can anyone advise on this please?
*********************************************
* Service.cs
*********************************************
using System;
using System.Xml;
namespace AdapterLibrary
{
public class Service
{
public Service() { }
public void Initialise(XmlDocument config) { }
public XmlDocument Execute()
{
XmlDocument doc = new XmlDocument();
doc.LoadXml("<hello><world2/></hello>");
return (doc);
}
}
}
*********************************************