error in x64 OS system while publishing web sites compiled in x32 bit OS.

if you face an error about
could not load file or assembly ..... incorrect format
during publishing any web site that is prepared on 32 bit operating system to x64 bit OS.

check follow:
1- be sure that project built in CPU : x64(Not CPU any or x86) architecture via MS Visual Studio (from Project Property>Build)

2 - check follow in IIS run on x64 bit;

Set App Pool Advanced Settings "Enable 32-Bit Applications" to True.
Set Website .Net Trust Levels to "Full Trust"

cheers !!!
P.S:Please do not hesitate to share your comments.


Popular posts from this blog

Assembly Microsoft.Dynamics.Service.Plugins.dll can not be loaded. Dynamics CRM 365 Engine version 9 - CRM User creation error

Exception caught instantiating TERADATA report server extension SQL Reporting Services

Could not load file or assembly 'System.ServiceModel, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The system cannot find the file specified at Configuration class initiation in