Could not load file or assembly 'ceTe.DynamicPDF.Rasterizer.40.x64.DLL' or one of its dependencies.

Could not load file or assembly 'ceTe.DynamicPDF.Rasterizer.40.x64.DLL' or one of its dependencies.

Forum member · Dec 16, 2013
Hi, I am using the "ceTe.DynamicPDF.Rasterizer.40.x64.DLL" in my project and it is working fine in my development server. but when I am uploading this on production server then it is not working and return below error. Error: Could not load file or assembly 'ceTe.DynamicPDF.Rasterizer.40.x64.DLL' or one of its dependencies. The specified module could not be found. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'ceTe.DynamicPDF.Rasterizer.40.x64.DLL' or one of its dependencies. The specified module could not be found. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [FileNotFoundException: Could not load file or assembly 'ceTe.DynamicPDF.Rasterizer.40.x64.DLL' or one of its dependencies. The specified module could not be found.] System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0 System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +210 System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +242 System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +17 System.Reflection.Assembly.Load(String assemblyString) +35 System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +122

Re: Could not load file or assembly 'ceTe.DynamicPDF.Rasterizer.40.x64.DLL' or one of its dependencies.

Support · Dec 16, 2013
Hello, Rasterizer requires VC++ redistributable package installed. If you do not have this installed on the production server, pleaser run the appropriate Rasterizer installer and that will install the required dlls. If do not wish to run the Rasterizer installer, you would need to atleast install the VC++ redistributable package that can be downloaded from the Microsoft’s website. For ceTe.DynamicPDF.Rasterizer.40.x64.dll use Microsoft Visual C++ 2010 Redistributable Package (x64) . Thanks, ceTe Software Support Team.

Re: Could not load file or assembly 'ceTe.DynamicPDF.Rasterizer.40.x64.DLL' or one of its dependencies.

Forum member · Jan 14, 2015
hi I am getting the below error.. Server Error in '/' Application. -------------------------------------------------------------------------------- Could not load file or assembly 'ceTe.DynamicPDF.Rasterizer.40.x64' or one of its dependencies. An attempt was made to load a program with an incorrect format. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.BadImageFormatException: Could not load file or assembly 'ceTe.DynamicPDF.Rasterizer.40.x64' or one of its dependencies. An attempt was made to load a program with an incorrect format. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Assembly Load Trace: The following information can be helpful to determine why the assembly 'ceTe.DynamicPDF.Rasterizer.40.x64' could not be loaded. WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. Stack Trace: [BadImageFormatException: Could not load file or assembly 'ceTe.DynamicPDF.Rasterizer.40.x64' or one of its dependencies. An attempt was made to load a program with an incorrect format.] System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0 System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +34 System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +152 System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +77 System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +16 System.Reflection.Assembly.Load(String assemblyString) +28 System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +38 [ConfigurationErrorsException: Could not load file or assembly 'ceTe.DynamicPDF.Rasterizer.40.x64' or one of its dependencies. An attempt was made to load a program with an incorrect format.] System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +752 System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +218 System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +130 System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +170 System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +91 System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +285 System.Web.Compilation.BuildManager.ExecutePreAppStart() +153 System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +521 [HttpException (0x80004005): Could not load file or assembly 'ceTe.DynamicPDF.Rasterizer.40.x64' or one of its dependencies. An attempt was made to load a program with an incorrect format.] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9950728 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254

Re: Could not load file or assembly 'ceTe.DynamicPDF.Rasterizer.40.x64.DLL' or one of its dependencies.

Support · Jan 14, 2015
Hello, If you are seeing this error when running the web application in IIS, the application pool is most likely in 32-bit mode. You are using ceTe.DynamicPDF.Rasterizer.40.x64.dll which targets 64-bit platform. If you can change the application pool setting to run in 64-bit mode then that should resolve the issue, otherwise use ceTe.DynamicPDF.Rasterizer.40.x86.dll. Please refer to this link for information on which dll to use based on your project settings (.NET Framework version & x64/x86). Thanks, ceTe Software Support Team.

Re: Could not load file or assembly 'ceTe.DynamicPDF.Rasterizer.40.x64.DLL' or one of its dependencies.

Forum member · Sep 1, 2016
We are getting this error: "Could not load file or assembly 'ceTe.DynamicPDF.Rasterizer.40.x86' or one of its dependencies. An attempt was made to load a program with an incorrect format." We get the same error when we use the x64 We have updated the Windows 2008 Server with the latest 2015 64 bit VC++ Redist. and we still get the error. Any help would be appreciated. Thank you

Re: Could not load file or assembly 'ceTe.DynamicPDF.Rasterizer.40.x64.DLL' or one of its dependencies.

Support · Sep 1, 2016
Hello, Depending on the dll you are using Rasterizer requires one of the VC++ redistributable packages installed. If you plan to use ceTe.DynamicPDF.Rasterizer.40.x64.dll you would need to install Microsoft Visual C++ 2010 Redistributable Package (x64) on the server. For ceTe.DynamicPDF.Rasterizer.40.x86.dll you would need the following Microsoft Visual C++ 2010 Redistributable Package (x86) installed. When compiling your application you would need to explicitly compile your application as x86 (32-bit) if you are using ceTe.DynamicPDF.Rasterizer.40.x86.dll and x64 (64-bit) if you are using ceTe.DynamicPDF.Rasterizer.40.x64.dll. Also, if you are hosting your application in IIS, in the application pool properties, make sure “Enable 32-bit Applications” is set to true when using ceTe.DynamicPDF.Rasterizer.40.x86.dll and false when using ceTe.DynamicPDF.Rasterizer.40.x64.dll. Please try the above suggestions and if the issue is still not resolved, please email us ([^a|mailto:support@cete.com|opennewwindow|support@cete.com^]) the following information so we can look into this issue further. 1. Type of application you using the Rasterizer in (WinForms, Web App, Website, Web service, Windows service etc). 2. Exception message including the stack trace. 3. List all VC++ Redistributable packages installed on the server. 4. Is the Win 2008 server 32-bit or 64-bit? Thanks, ceTe Software Support Team.

Re: Could not load file or assembly 'ceTe.DynamicPDF.Rasterizer.40.x64.DLL' or one of its dependencies.

Forum member · Nov 29, 2017
I have Microsoft Visual C++ 2012 but i'm getting the same error

Re: Could not load file or assembly 'ceTe.DynamicPDF.Rasterizer.40.x64.DLL' or one of its dependencies.

Support · Dec 1, 2017
Hello, Installation of VC++ 2012 redistributables alone will not work. Rasterizer targets specific VC++ redistributable versions. For .NET 2.0/3.0/3.5 applications, VC++ 2008 is required. For.NET 4.x applications, VC++ 2010 is required. You can refer to the documentation on deployment here . For example, if you plan to use ceTe.DynamicPDF.Rasterizer.40.x64.dll you would need to install Microsoft Visual C++ 2010 Redistributable Package (x64) . For ceTe.DynamicPDF.Rasterizer.40.x86.dll you would need the following Microsoft Visual C++ 2010 Redistributable Package (x86) installed. Thanks, ceTe Software Support Team.