DLL GAC conflicts between Trial and full versions

Stimulsoft Reports.NET discussion
Post Reply
rbarton
Posts: 5
Joined: Thu Dec 13, 2012 7:30 pm

DLL GAC conflicts between Trial and full versions

Post by rbarton »

Hello, I installed the Report.Web 2012.3.1500 version on top of an existing Ultimate Trial install (version 2012.2.1400), hoping that it would uninstall the needed parts. Started running into DLL conflicts. Unfortunately the conflicts continue even after I've now uninstalled the Trial 2012.2.1400 software (via Add/Remove Programs).

The error message is:

Code: Select all

Compiler Error Message: CS0433: The type 'Stimulsoft.Report.Web.StiWebViewer' exists in both 'c:\Windows\assembly\GAC_MSIL\Stimulsoft.Report.Web\2012.3.1500.0__ebe6666cba19647a\Stimulsoft.Report.Web.dll' and 'c:\Windows\assembly\GAC_MSIL\Stimulsoft.Report.Web\2012.2.1400.0__ebe6666cba19647a\Stimulsoft.Report.Web.dll'
I cannot manually remove these DLLs from the GAC folder -- "Access is denied". Again this is after uninstalling the older Trial version of Stimulsoft.Reports.Ultimate...

How can I remove the old DLL versions from the GAC so they will not conflict with the newer non-trial ones?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: DLL GAC conflicts between Trial and full versions

Post by HighAley »

Hello.

Please, consult your system administrator how to remove old assemblies from your system.
Also you could read the How the Runtime Locates Assemblies article http://msdn.microsoft.com/en-us/library/yx7xezcf
As you could read there the common language runtime check for Previously Referenced Assemblies and the Global Assembly Cache.
So you should remove ALL old assembles from your system.
Please, replace assemblies from GAC with latest ones and search all over your system for any other our assemblies.

Thank you.
rbarton
Posts: 5
Joined: Thu Dec 13, 2012 7:30 pm

Re: DLL GAC conflicts between Trial and full versions

Post by rbarton »

I ended up finding the double-references (two both versions of Stimulsoft) in the header of the aspx source, i.e.

Code: Select all

<%@ Register assembly="Stimulsoft.Report.Web, Version=2012.2.1400.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a" namespace="Stimulsoft.Report.Web" tagprefix="cc1" %>
<%@ Register assembly="Stimulsoft.Report.Web, Version=2012.3.1500.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a" namespace="Stimulsoft.Report.Web" tagprefix="cc2" %>
I had removed the project's old references to Stimulsoft.Base, Stimulsoft.Report, and Stimulsoft.Report.Web (via the References folder in the Solution Explorer) and created new references to the newer version of the components. Then I removed the old StiWebViewer component from the design editor and added a new one from the toolbox. But the old assembly reference remained in the Source view above. I removed the older reference and everything worked fine.

Before finding the above, I had looked up where to find and how to use the gacutil.exe utility, and had removed the older DLLs from the GAC, but was still seeing the issue -- pretty sure now that this step was unnecessary. I had also removed the older assembly reference in the Web.config file as well, but was running into the earlier issue until I also removed the older reference in the .aspx file. Hope this is useful to someone else that is upgrading versions or replacing the Trial version with the Full version...
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: DLL GAC conflicts between Trial and full versions

Post by HighAley »

Hello.

Thank you for useful information.
Let us know if you will need any additional help.

Thank you.
Post Reply