Error when built Nop.Services in release mode

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
10 years ago
Hi everyone,
Today i met this bug, i had search but no find out the solution.

Error  6  An attempt was made to load an assembly with an incorrect format: C:\Windows\Microsoft.Net\assembly\GAC_64\System.Data\ v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll.  D:\nopCommerce_3.30_Source\Libraries\Nop.Services\SGEN  Nop.Services

Please tell me why?Thanks
10 years ago
I am getting exactly the same thing. I now have problems with 2.50 stopping me going live and I can't upgrade.
10 years ago
It may be a 32 vs 64 bit problem.  Are you compiling for "Any CPU"  (Visual Studio Project > Properties > Build >> Platform Target)
10 years ago
Hi New York,
i tried but it still not resolve! please help me! Thanks
10 years ago
Are you using source, or no_source?  Do you get the error in Visual Studio, or on Host?  (If local, are you using IIS or IISExpress?)
10 years ago
Hi,
i'm using source and get error from visual studio 2012.
Thanks for your help!
10 years ago
It's odd that the error indicates the GAC:  C:\Windows\Microsoft.Net\assembly\GAC_64

What version of nopCommerce?  Check the properties on the Nop.Services project's References for System.Data
For my 3.30 project, it's
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\System.Data.dll

Is your VS set to use IISExpress or 'development server'?
10 years ago
New York wrote:
It's odd that the error indicates the GAC:  C:\Windows\Microsoft.Net\assembly\GAC_64

What version of nopCommerce?  Check the properties on the Nop.Services project's References for System.Data
For my 3.30 project, it's
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\System.Data.dll

Is your VS set to use IISExpress or 'development server'?


Hi, i'm using  Nopcommerce 3.30, so i have not .Net Framework 4.5.1, let me download it now!

Thanks for your help!
9 years ago
little.adi wrote:
It's odd that the error indicates the GAC:  C:\Windows\Microsoft.Net\assembly\GAC_64

What version of nopCommerce?  Check the properties on the Nop.Services project's References for System.Data
For my 3.30 project, it's
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\System.Data.dll

Is your VS set to use IISExpress or 'development server'?

Hi, i'm using  Nopcommerce 3.30, so i have not .Net Framework 4.5.1, let me download it now!

Thanks for your help!


Dear Support Team,

Today I got this bug,

"An attempt was made to load an assembly with an incorrect format: C:\Windows\Microsoft.Net\assembly\GAC_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll.   Nop.Services"

I am using nopcommerce 3.40 and Microsoft Visual Studio Professional 2012, and IIS v6.1 on Windows 7 professional.

I'm using source and get error from visual studio 2012 when try to publish the site.

I am stuck to go an live.Kindly help me on this.

Regards,
Ela
BlueMed Dev Team
9 years ago
I notice you are using IIS 6. It is my understanding that for nopCommerce you need to use an application pool set for integrated pipeline mode, which is new at IIS 7. I do not know if it will solve your other problems but I do know that IIS6 and .Net 4 are problematic but in any case you need to upgrade to IIS 7 for integrated pipeline mode.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.