Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Thu Nov 03, 2016 4:30 pm

I'm getting the following error when installing FreeSpire.XLS from NuGet.

Attempting to resolve dependencies for package 'FreeSpire.XLS.7.9.0' with DependencyBehavior 'Lowest'
Resolving dependency information took 0 ms
Resolving actions to install package 'FreeSpire.XLS.7.9.0'
Resolved actions to install package 'FreeSpire.XLS.7.9.0'
Retrieving package 'FreeSpire.XLS 7.9.0' from 'nuget.org'.
Adding package 'FreeSpire.XLS.7.9.0' to folder 'C:\Local Files\MyProject\packages'
Added package 'FreeSpire.XLS.7.9.0' to folder 'C:\Local Files\MyProject\packages'
Install failed. Rolling back...
Package 'FreeSpire.XLS.7.9.0' does not exist in project 'MyProject'
Removing package 'FreeSpire.XLS.7.9.0' from folder 'C:\Local Files\MyProject\packages'
Removed package 'FreeSpire.XLS.7.9.0' from folder 'C:\Local Files\MyProject\packages'
Executing nuget actions took 5.42 sec
Failed to add reference. The package 'FreeSpire.XLS' tried to add a framework reference to 'Spire.XLS' which was not found in the GAC. This is possibly a bug in the package. Please contact the package owners for assistance.

sclabough
 
Posts: 7
Joined: Wed Nov 02, 2016 7:10 pm

Fri Nov 04, 2016 2:10 am

Hi sclabough,

Thanks for your inquiry.
I have tested the scenario, and I can install FreeSpire.XLS 7.9.0 from NuGet successfully.

Sincerely,
Betsy
E-iceblue support team
Attachments
Nuget.png
Nuget.png (13.42 KiB) Viewed 3996 times
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Thu Jan 19, 2017 6:43 am

Hi, I got back to trying to fix this error. Please try creating an "ASP.NET Empty Web Site" using .NET Framework 4.5.2 from the "New Web Site" dialog. Then see if you get the error that I do (on two different machines) when adding FreeSpire.XLS

sclabough
 
Posts: 7
Joined: Wed Nov 02, 2016 7:10 pm

Thu Jan 19, 2017 9:06 am

Dear sclabough,

Thanks for your feedback.
Please try to use the order to install the package.
Code: Select all
PM>Install-Package FreeSpire.XLS


Sincerely,
Betsy
E-iceblue support team
Attachments
order.png
order.png (8.78 KiB) Viewed 3945 times
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Fri Jan 20, 2017 8:11 am

Dear sclabough,

Did you test the method ? Did the issue resolve ?

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Fri Jan 20, 2017 4:41 pm

Still no luck. Did you create a Web Site project, or an application project? It works on web application projects.

Package Manager Console Host Version 3.5.0.1484

Type 'get-help NuGet' to see all available NuGet commands.

PM> install-package freespire.xls


Attempting to gather dependency information for package 'freespire.xls.7.9.0' with respect to project 'WebSite1(1)', targeting '.NETFramework,Version=v4.5.2'
Gathering dependency information took 21.73 ms
Attempting to resolve dependencies for package 'freespire.xls.7.9.0' with DependencyBehavior 'Lowest'
Resolving dependency information took 0 ms
Resolving actions to install package 'freespire.xls.7.9.0'
Resolved actions to install package 'freespire.xls.7.9.0'
Retrieving package 'FreeSpire.XLS 7.9.0' from 'nuget.org'.
Adding package 'FreeSpire.XLS.7.9.0' to folder 'C:\Users\Shawn\Documents\Visual Studio 2015\Projects\WebSite1\packages'
Added package 'FreeSpire.XLS.7.9.0' to folder 'C:\Users\Shawn\Documents\Visual Studio 2015\Projects\WebSite1\packages'
Install failed. Rolling back...
Package 'FreeSpire.XLS.7.9.0' does not exist in project 'WebSite1(1)'
Removing package 'FreeSpire.XLS.7.9.0' from folder 'C:\Users\Shawn\Documents\Visual Studio 2015\Projects\WebSite1\packages'
Removed package 'FreeSpire.XLS.7.9.0' from folder 'C:\Users\Shawn\Documents\Visual Studio 2015\Projects\WebSite1\packages'
Executing nuget actions took 3.46 sec
install-package : Failed to add reference. The package 'FreeSpire.XLS' tried to add a framework reference to 'Spire.XLS' which was not found in the GAC. This is possibly a bug in the package. Please contact the package owners for assistance.
At line:1 char:1
+ install-package freespire.xls
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

Time Elapsed: 00:00:04.4401593
PM>

sclabough
 
Posts: 7
Joined: Wed Nov 02, 2016 7:10 pm

Sun Jan 22, 2017 9:50 am

Dear sclabough,

Sorry for my mistake.
By investigation, the reason caused this issue is that the Manifest contains following node:
Code: Select all
        <frameworkAssemblies>
            <frameworkAssembly assemblyName="Spire.XLS" targetFramework=".NETFramework2.0, .NETFramework3.5, .NETFramework4.0, .NETFramework4.0-Client" />
        </frameworkAssemblies>

As the solution, please find the above information in the file(FreeSpire.XLS.nuspec) and then remove it. After that, install the package again, it will works.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Mon Jan 23, 2017 8:59 pm

Sorry, I do not have that file in my project - probably because the package doesn't get installed due to the error. Will you be updating the NuGet install?

sclabough
 
Posts: 7
Joined: Wed Nov 02, 2016 7:10 pm

Tue Jan 24, 2017 8:11 am

Dear sclabough,

Thanks for your information.
We have updated the Free Spire.XLS pakeage on NuGet, please check.
If there is any question, welcome to get it back to us.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Tue Jan 24, 2017 8:01 pm

Yes. It worked. :D Thank you.

sclabough
 
Posts: 7
Joined: Wed Nov 02, 2016 7:10 pm

Wed Jan 25, 2017 1:19 am

Dear sclabough,

Thanks for your feedback.
Please feel free to contact us if there is any question.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.XLS