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()

1 Reply

Reply to Thread
0
Cem Alacayir Replied
Employee Post Marked As Answer
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+

Reply to Thread