Jump to content

[1385] Error "Could not load file or assembly 'PicaJet.Daminion.BusinessObjects'" when enabling Web Access


exterminador

Recommended Posts

Hi there,

 

I finally got to upgrade to Daminion 4.5 :)

 

At first, I got the following error after enabling Web Access:

 

post-97-0-51868700-1456290363_thumb.png

 

In case somebody else get this error I thought I'd share the details. It happens when using a 64-bit system and the IIS Application Pool is not enabled to run 32-bit applications. Below is a small article with more details on how to fix it:

 

It’s because you are trying to run 32 bit dlls on a 64 bit system. Fix it in IIS manager by changing the advanced settings on you application pool to enable 32 bit applications. Or create a new app pool specifically for them.

 

http://www.cafe-encounter.net/p379/asp-net-iis7-system-badimageformatexception-could-not-load-file-or-assembly#gsc.tab=0

 

Hope it helps.

 

Regards

 

Error details for reference:

 

Server Error in '/daminion' Application.
Could not load file or assembly 'PicaJet.Daminion.BusinessObjects' 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 'PicaJet.Daminion.BusinessObjects' 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 'PicaJet.Daminion.BusinessObjects' 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 'PicaJet.Daminion.BusinessObjects' 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.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +234
  System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +108
  System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +25
  System.Reflection.Assembly.Load(String assemblyString) +34
  System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +49

[ConfigurationErrorsException: Could not load file or assembly 'PicaJet.Daminion.BusinessObjects' 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) +772
  System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +256
  System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +58
  System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +237
  System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +101
  System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +142
  System.Web.Compilation.BuildManager.ExecutePreAppStart() +172
  System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +907

[HttpException (0x80004005): Could not load file or assembly 'PicaJet.Daminion.BusinessObjects' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
  System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +579
  System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +118
  System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +730


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1038.0 

Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...