MVC application publised on IIS - Could not load file or assembly 'Coversant.Win32' or one of its dependencies

I am getting the following error when i publish my first webapplication developed in MVC on IIS.
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.


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


Exception Details: System.BadImageFormatException: Could not load file or assembly 'Coversant.Win32' 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 'Coversant.Win32' 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].

I use the following steps to publish the application on local IIS

  1. Create an AppPool with Admin credentials in IIS Manager.
  2. Change the .Net Framework version of AppPool to 4.0 in AppPool's basic settings.
  3. Create a Asp.Net WebSite in IIS manages and associate the AppPool with it.
  4. Associate a directory for applications physical directory the and set credential for access/ otherwise grant sharing permissions to the directory (verify by "Test Settings").
  5. Now i have created a publish profile to publish the application ..... and it crashes by giving the above error.

Now after searching  i found someone ask to modify reg setting, some say to modify pipeline. but such solution do not work on production as MS do not recommend to use such solution. so now i found the simplest solution.

Just Go To IIS Manager > AppPool > Advanced Settings  Now "Enable 32-bit Application " as shown.And thats it all works fine after IISRESET.


Comments

  1. For USA on-line casinos, this is typically the Malta Gambling Commission or the Curacao Gaming Control Board. These bodies will examine your claims and may take additional motion as essential. Blackjack is well-liked because of|as a result of} the home edge, or advantage 온 카지노 the on line casino has over the participant, is low at simply 1%. If card games aren't your pace, gamers in search of a comparatively straightforward win should check out at|try} the roulette and on-line craps tables.

    ReplyDelete

Post a Comment

Popular posts from this blog

How to Build Mobile Apps for Online Marketplaces

How to Choose the Right Software Development Company in 2023

The Growing Importance of Website Accessibility in the Digital Age