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.
9 years ago
cooldrl wrote:
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.


Dear support Team,

The IIS version 7. .NET Framework 4.5

When I try to compile & build with configuration setting "Release" ,I got the error, not with configuration setting "Debug". For publish the site, I should compile & build  with configuration setting "Release".Kindly help me on this.

Regards,
Ela
BlueMed Dev Team
9 years ago
Some how dll files are blocked by windows
Right click on the downloaded file (the compressed one) or on the specific dll file -> properties -> press "Unblock"
then unzip the file

it will unblock all the files

See similar issue here
9 years ago
Same issue with fresh NopCommerce solution 3.50

Even after unblocking all the files before unzipping....it fails to publish, but build succeeds. I have V 4.5.1 already installed


Error  15  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.  
F:\nopCommerce_3.50_Source\Libraries\Nop.Services\SGEN  Nop.Services

File- SGEN
Project- Nop.Services

Does any one have resolved it yet?
9 years ago
This link looks like your problem http://geekswithblogs.net/akraus1/archive/2011/12/10/148002.aspx
9 years ago
luckyhero wrote:
Same issue with fresh NopCommerce solution 3.50

Even after unblocking all the files before unzipping....it fails to publish, but build succeeds. I have V 4.5.1 already installed


Error  15  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.  
F:\nopCommerce_3.50_Source\Libraries\Nop.Services\SGEN  Nop.Services

File- SGEN
Project- Nop.Services

Does any one have resolved it yet?

Just Fixed the problem :)
I downloaded the source code of nopCommerce 3.5 on a 64bit Windows 8.1 machine where Visual Studio 2012 was installed. But for some reason I was getting the error compiling in release mode.
Then from another 64 bit machine I copied the C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1 to the target machine and it fixed the error.
8 years ago
while am publishing
am getting this
Error  14  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?
giv me solution
8 years ago
For any one who is facing this issue, there is a simple and easy solution

Open power shell

Change directory to Nopecommerce folder

then use following commanlet

Get-ChildItem -recurse  | Unblock-File


Thats it. you should be good to go.

I was facing this issue and had to unblock each and every dll in folders and there were lots of dlls.

I am so lazy and cant go to each dll and unblock it so this saved me lot of time and energy ;)
6 years ago
Error  113  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:\Websites\Ecommerce\nopCommerce_3.90_Source\Libraries\Nop.Services\SGEN  Nop.Services
Error  118  Metadata file 'D:\Websites\Ecommerce\nopCommerce_3.90_Source\Libraries\Nop.Services\bin\Release\Nop.Services.dll' could not be found  D:\Websites\Ecommerce\nopCommerce_3.90_Source\Presentation\Nop.Web.Framework\CSC  Nop.Web.Framework
Error  124  Metadata file 'D:\Websites\Ecommerce\nopCommerce_3.90_Source\Libraries\Nop.Services\bin\Release\Nop.Services.dll' could not be found  D:\Websites\Ecommerce\nopCommerce_3.90_Source\Presentation\Nop.Web\CSC  Nop.Web
Error  125  Metadata file 'D:\Websites\Ecommerce\nopCommerce_3.90_Source\Presentation\Nop.Web.Framework\bin\Release\Nop.Web.Framework.dll' could not be found  D:\Websites\Ecommerce\nopCommerce_3.90_Source\Presentation\Nop.Web\CSC  Nop.Web

Publishing NopCommerce Website in 2012 Visual Studio.. get these errors

Please Help Me
6 years ago
Your file paths look odd - e.g.  ...CSC  Nop.Web.Framework
What's with that "CSC" and spaces?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.