aspose-cells / Aspose.Cells-for-.NET

Aspose.Cells for .NET examples, plugins and showcases
https://products.aspose.com/cells/net
MIT License
216 stars 103 forks source link

Unable to run GridWeb.Net6 examples or follow the guide #66

Open ali-h2010 opened 1 year ago

ali-h2010 commented 1 year ago

I am getting many errors when running the GridWeb.Net6 sample such as

In GridController.cs

  1. The type or namespace name 'AcwController' does not exist in the namespace 'Aspose.Cells.GridWeb' (are you missing an assembly reference?)

  2. An object reference is required for the non-static field, method, or property 'MainWeb.SessionStorePath' GridWeb.Demo.NET6.0

  3. Reference to type 'WebControl' claims it is defined in 'System.Web', but it could not be found

Steps to reproduce:

  1. Download the repo
  2. Navigate to folder "Aspose.Cells-for-.NET-master\Examples_GridWeb\GridWeb.Net6"
  3. Open "GridWeb.Demo.NET6.0.csproj" in VS2022
  4. build the solution

image

Is there anything i need to import or install in order to run this example?

I also tried to follow the guide below but got the same issues as the sample https://docs.aspose.com/cells/net/how-to-use-aspose-cells-gridweb-with-net-core/

amjad-sahi commented 1 year ago

@ali-h2010,

Thanks for reporting the issue.

We reproduced the issue as you mentioned. We downloaded the demos from github repos. (https://github.com/aspose-cells/Aspose.Cells-for-.NET). We are unable to run GridWeb.Demo.NET6.0 examples and got the same compilation errors as you pointed out.

We have opened the following new ticket(s) in our internal issue tracking system and will try to fix the issue soon.

Issue ID(s): CELLSNET-53540

Once we have an update on it we will let you know here.

We are sorry for any inconvenience caused!

amjad-sahi commented 1 year ago

@ali-h2010,

We have updated the demos/examples in the repos. Please try to download the (updated) demos/examples and give it a try again. We have updated the demo's project file. The target framework shall be: net6.0-windows7.0 and the System.Drawing.Common version shall be 7.0.0.

Below is the updated csproj file contents:

<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <TargetFramework>net6.0-windows7.0</TargetFramework>
    <RootNamespace>GridWeb.Demo</RootNamespace>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="System.Drawing.Common" Version="7.0.0" />
    <PackageReference Include="System.Text.Encoding.CodePages" Version="4.7.0" />
    <PackageReference Include="System.Security.Cryptography.Pkcs" Version="6.0.1" />
    <PackageReference Include="Aspose.Cells.GridWeb" Version="23.6.0" />
  </ItemGroup>

</Project> 

Let us know if you still find any issue.