This looks like issue with the assembly you are using, are you using 32 bit assembly in 64 bit OS, if so while compiling change it to use anycpu and then try.
I've got the same problem. Here I post the error message
Server Error in '/reportes' Application.
Could not load file or assembly 'MySQLDriverCS' 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 'MySQLDriverCS' or one of its dependencies. An attempt was made to load a program with an incorrect
format.
Try changing the Application Pool in IIS7 to Classic.Net AppPool instead of using DefaultAppPool
of problempe Hello Friends, I have facing same type of problem I am posted my browser error
Please help me.
Server Error in '/' Application.
Could not load file or assembly 'ManagedCertificateHelper' 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 'ManagedCertificateHelper' 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
'ManagedCertificateHelper' 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 'ManagedCertificateHelper' 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, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +39
System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) +132
System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +144
System.Reflection.Assembly.Load(String assemblyString) +28
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46
[ConfigurationErrorsException: Could not load file or assembly 'ManagedCertificateHelper' 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) +618
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +209
System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +130
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178
System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +94
System.Web.Compilation.BuildManager.CallPreStartInitMethods() +332
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +591
[HttpException (0x80004005): Could not load file or assembly 'ManagedCertificateHelper' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8946484
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +258
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
If you get this error while running the site in IIS 7+ on 64bit servers, you may have assemblies that are 32bit and your application pool will have the option "Enable 32-Bit Applications" set to False; Set this to true and restart the site to get it working.
You need to copy dlls in Bin folder of application in IIS Deployment Server.. In Development server loads of application work by its different when you deploy them, application searches for dlls in BIN..
onlyharry
Member
2 Points
2 Posts
Re: How to solve "Assembly binding logging is turned OFF"?
Apr 19, 2010 09:41 AM|LINK
This looks like issue with the assembly you are using, are you using 32 bit assembly in 64 bit OS, if so while compiling change it to use anycpu and then try.
DotNetPro1
Member
9 Points
12 Posts
Re: How to solve "Assembly binding logging is turned OFF"?
Jun 25, 2010 01:36 PM|LINK
Try changing the Application Pool in IIS7 to Classic.Net AppPool instead of using DefaultAppPool
rajiv.birari
Member
2 Points
3 Posts
Re: How to solve "Assembly binding logging is turned OFF"?
Jul 23, 2010 09:47 AM|LINK
of problempe Hello Friends, I have facing same type of problem I am posted my browser error
Please help me.
Server Error in '/' Application.
Could not load file or assembly 'ManagedCertificateHelper' 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 'ManagedCertificateHelper' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Source Error:
Assembly Load Trace: The following information can be helpful to determine why the assembly 'ManagedCertificateHelper' could not be loaded.
Stack Trace:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
@RT
Member
2 Points
1 Post
Re: How to solve "Assembly binding logging is turned OFF"?
Oct 27, 2010 05:36 PM|LINK
This works!!! Thanks a lot.
APetersen
Member
2 Points
1 Post
Re: How to solve "Assembly binding logging is turned OFF"?
Oct 29, 2010 12:17 PM|LINK
I added the Enterprise Library dll's to the bin directory on the website that it was deployed on, and that worked for me.
Regards,
Ahmad
MohamedArif
Member
7 Points
4 Posts
Re: How to solve "Assembly binding logging is turned OFF"?
Jan 12, 2011 02:54 PM|LINK
@RT,
I am facing the same problem, please let me know how did you solve?
Thanks
Arif
msavva
Member
2 Points
1 Post
Re: How to solve "Assembly binding logging is turned OFF"?
Apr 01, 2011 12:43 AM|LINK
I had the same issue and the way I fixed it was:
1) create a new Application Pool
2) go to the Advanced Settings of this application pool
3) set the Enable 32-Bit Application to True
4) point your web application to use this new Pool
That's it. Mine worked like a charm after that
salim20001
Member
154 Points
507 Posts
Re: How to solve "Assembly binding logging is turned OFF"?
May 11, 2012 06:26 PM|LINK
I'm having the same problem, plz how can I crate a new application pool ?
jssSmith
Member
2 Points
3 Posts
Re: How to solve "Assembly binding logging is turned OFF"?
Jun 29, 2012 02:46 PM|LINK
Create an Application Pool (IIS 7):
http://technet.microsoft.com/en-us/library/cc731784%28v=ws.10%29.aspx
If you get this error while running the site in IIS 7+ on 64bit servers, you may have assemblies that are 32bit and your application pool will have the option "Enable 32-Bit Applications" set to False; Set this to true and restart the site to get it working.
http://stackoverflow.com/questions/1648213/could-not-load-file-or-assembly-xxx-or-one-of-its-dependencies-an-attempt-was
AhsanRazaUK
Member
4 Points
2 Posts
Re: How to solve "Assembly binding logging is turned OFF"?
Jun 03, 2013 03:12 PM|LINK
You need to copy dlls in Bin folder of application in IIS Deployment Server.. In Development server loads of application work by its different when you deploy them, application searches for dlls in BIN..
asp.net