1
Error when opening the website
Question asked by Osayed Zaheda - 4/28/2020 at 7:10 AM
Answered
Hello,

I am using the GleamTech Document Viewer, I followed the documentation and everything but I get this error when I open the website:


An error occurred while starting the application.
MissingMethodException: Method not found: 'System.AppDomainSetup System.AppDomain.get_SetupInformation()'.
GleamTech.IO.TemporaryFolder..cctor()

TypeInitializationException: The type initializer for 'GleamTech.IO.TemporaryFolder' threw an exception.
GleamTech.IO.TemporaryFolder.GetSystemTemporaryFolder()

TypeInitializationException: The type initializer for 'GleamTech.AssemblyResolver.AssemblyResolver' threw an exception.
GleamTech.AssemblyResolver.AssemblyResolver.Register(Assembly primaryAssembly, string configurationResourceName, string configurationVersion)

TypeInitializationException: The type initializer for '' threw an exception.
DMS.Startup.ConfigureServices(IServiceCollection services)

MissingMethodException: Method not found: 'System.AppDomainSetup System.AppDomain.get_SetupInformation()'.
GleamTech.IO.TemporaryFolder..cctor()

3 Replies

Reply to Thread
0
Cem Alacayir Replied
Employee Post
Looks like you are using version before ASPNET Core 2.0 or you are missing some .NET Core references or you are using wrong target platform DLLs (net40 and netstandard2.0 DLLs are different)

For an "ASP.NET Core on .NET Core" project, these dependencies will be pulled by NuGet Package Manager automatically so you don't need to do any additional steps.

For an "ASP.NET Core on .NET Framework" project, make sure you have the following additional packages with these minimum versions in your project (update them in Nuget Package Manager if necessary):
  • Microsoft.AspNetCore 2.0.3+
  • Microsoft.AspNetCore.Mvc 2.0.3+
  • Microsoft.AspNetCore.Session 2.0.3+
0
Osayed Zaheda Replied
Hi,

I am using 5.3.2.0, isn't ASP.NET Core 2.1 supported in it?

I am using netstandard2.0 DLLs.
0
Cem Alacayir Replied
Employee Post Marked As Answer
Yes, ASP.NET Core 2.x and 3.x are supported.
Why don't you use NuGet? The dependencies would be automatically pulled if you did so.

If you are manually referencing netstandard2.0 DLLs, you can find dependencies on NuGet package page and add them manually:

Dependencies for GleamTech.DocumentUltimate NuGet package are:

And in addition netstandard2.0 Dependencies for GleamTech.Common NuGet package are:

Reply to Thread