You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to convert Html to Pdf in a .NET 6 WebApi project.
My application is hosted by IIS. I downloaded libraries from NuGet. I have Visual C++ 2013 runtime installed.
I have already successfully developed the same case in .NET 4.5 with a 32 bit version.
Pdf Converter Class
public static class TuesPechkinPdfConverter
{
public static IConverter Converter { get; } = new ThreadSafeConverter(
new RemotingToolset<PdfToolset>(new WinAnyCPUEmbeddedDeployment(new TempFolderDeployment())));
}
System.TypeLoadException: 'Could not load type 'System.Security.Principal.WindowsImpersonationContext' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.'
The app pool is configured as follows:
Enable 32bit application: false
Load User Profile: true
Identity:
Pipeline mode: Integrated
.NET CLR: No managed code
The text was updated successfully, but these errors were encountered:
codeweb
changed the title
System.TypeLoadException: 'Could not load type 'System.Security.Principal.WindowsImpersonationContext'
System.TypeLoadException: 'Could not load type 'System.Security.Principal.WindowsImpersonationContext' (compatibility .NET 6)
Sep 5, 2023
I'm trying to convert Html to Pdf in a .NET 6 WebApi project.
My application is hosted by IIS. I downloaded libraries from NuGet. I have Visual C++ 2013 runtime installed.
I tried using:
I have already successfully developed the same case in .NET 4.5 with a 32 bit version.
Pdf Converter Class
It's the same using
Win64EmbeddedDeployment
.Method
I got the following runtime error:
System.TypeLoadException: 'Could not load type 'System.Security.Principal.WindowsImpersonationContext' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.'
The app pool is configured as follows:
Enable 32bit application: false
Load User Profile: true
Identity:
Pipeline mode: Integrated
.NET CLR: No managed code
The text was updated successfully, but these errors were encountered: