Strange error when trying to build version 3.3 in release mode

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
9 years ago
Sorry my English is very bad

I dowload the 3:30 nopCommerce did not change any

I performed a rebuild on the solution
and when I did so the publish web project this error occurred:

Error  190  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.  C:\Users\Jonatas\Desktop\nop\Libraries\Nop.Services\SGEN  Nop.Services


I am using visual studio 2012 and are installed frameworks 3.5,4.0,4.5,4.5.1

in debug the application works normally'm just having trouble generating the package to publish

I thank anyone who can help me
9 years ago
sunnyw wrote:
Check your app pool if it is targeting .net v4. Didn't have any issue at all.


Hey sunnyw, my application pool is v4.0 integrated and using Visual Studio 2012, still getting errors (and cannot build in release mode)

Are you running Visual Studio 2012 or 2013?
9 years ago
I'll chip in - I've successfully built & navigated around my site in release mode using 3.3 (VS 2012). Unsure about your specific problem though, I'm sorry.
9 years ago
Unable to solve the problem besides installing Framework 4.5.1 is necessary to install the Microsoft. NET Framework 4.5.1 Developer.
_____________________________________________

Microsoft .NET Framework 4.5.1 Developer Pack for Windows Vista SP2, Windows 7 SP1, Windows 8, Windows 8.1, Windows Server 2008 SP2 Windows Server 2008 R2 SP1, Windows Server 2012 and Windows Server 2012 R2

http://www.microsoft.com/en-us/download/confirmation.aspx?id=40772
_____________________________________________

Thank you all for the help! :)
9 years ago
Reinstalling 4.5.1 may work or also you can do this to fix the issue: https://www.nopcommerce.com/boards/t/29775/error-when-built-nopservices-in-release-mode.aspx?p=2#139380
8 years ago
I have solved this error on Visual Studio 2012 version with .Net Framework 4.5

Go to Nop.Services > Properties and set target framework 4.5 and debug mode from any cpu to x86

Please see answer of this question in detail with screenshots.
http://stackoverflow.com/questions/24040059/vs-2010-tfs-2013-sgen-an-attempt-was-made-to-load-an-assembly-with-an-incorrec/31354437
I am very hope you can get your answer.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.