Attention: We are retiring the ASP.NET Community Blogs. Learn more >

MyLittleAdmin: Could not load file or assembly 'mlt_ver' or one of its dependencies. An attempt was made to load a program with an incorrect format.

When first running mylittleadmin web application I get exception as titled. It is because of the application is running on 64-bit asp.net process currently but is designed to work on top of 32-bit asp.net mechanism only.

Based on different IIS suites ( IIS6 & IIS7 ) there are 2 workarounds to solve the problem separately:

If IIS6 are just running 64-bit asp.net now, you need manually type some commands to enable 32-bit asp.net version:

  • Enable 32bit asp.net on 64bit platform by running adsutil.vbs set w3svc/AppPools/Enable32bitAppOnWin64 1 in \\%homedrive%:\Inetpub\Adminscripts
  • Reset IIS to have the switch-on take effect by typing "iisreset".
  • Above 2 steps just allow possibility of running 32bit asp.net on IIS; essentially, the 32bit asp.net framework is acquired to be registered to IIS by executing 'aspnet_regiis.exe -i' in the context of 32bit .net framework, thus to have itself be "truely" up.( 32bit .net framework folder is C:\WINDOWS\Microsoft.NET\Framework\vxx.xx while 64bit framework folder is C:\WINDOWS\Microsoft.NET\Framework64\vxx.xx)
  • "Allow" 'ASP.NET v2.0.50727 (32-bit)' in Web Service Extensions.

If otherwise IIS7 serves application, things are drastically simplified: select the target applicatin pool, set "enable 32bit application" to "true" in "Advanced Settings" panel. Then application runs as expected.

Refer to here.

1 Comment

Comments have been disabled for this content.