Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ali-h2010 opened this issue Jun 14, 2023 · 2 comments
Open

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

ali-h2010 opened this issue Jun 14, 2023 · 2 comments

Comments

@ali-h2010
Copy link

ali-h2010 commented Jun 14, 2023

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
Copy link
Collaborator

@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 amjad-sahi mentioned this issue Jun 14, 2023
@amjad-sahi
Copy link
Collaborator

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants