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.

Comments

Popular posts from this blog

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

Exception caught instantiating TERADATA report server extension SQL Reporting Services

you face "ISV code aborted the operation" when you change status of the any record in Dynamics CRM 2013