4 errors

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
9 years ago
The 3.5 solution compiles fine, and Nop.Web also compile fine, however when I try to publish to a local folder I get these four errors

Error  1 Could not load file or assembly 'file:///F:\nopCommerce_3.50_SourceFresh\packages\Autofac.3.5.2\lib\net40\Autofac.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)  F:\nopCommerce_3.50_SourceFresh\Libraries\Nop.Services\      SGEN  Nop.Services

Error  2 Metadata file 'F:\nopCommerce_3.50_SourceFresh\Libraries\Nop.Services\bin\Release\Nop.Services.dll' could not be found  F:\nopCommerce_3.50_SourceFresh\Presentation\Nop.Web.Framework\     CSC     Nop.Web.Framework

Error  3 Metadata file 'F:\nopCommerce_3.50_SourceFresh\Libraries\Nop.Services\bin\Release\Nop.Services.dll' could not be found  F:\nopCommerce_3.50_SourceFresh\Presentation\Nop.Web\    CSC         Nop.Web

Error  4 Metadata file 'F:\nopCommerce_3.50_SourceFresh\Presentation\Nop.Web.Framework\bin\Release\Nop.Web.Framework.dll' could not be found  F:\nopCommerce_3.50_SourceFresh\Presentation\Nop.Web\      CSC           Nop.Web

I am using VS 2013 Ultimate on x64 Win 8.1.

These errors are from the fresh release (Dec 10) Source code I downloaded from both codeplex and nop sites. Folders using nop source code and publish folders have write permissions.

Thanks for any pointers.
Amen.
9 years ago
Windows 7 or Windows 8 has a security feature, sometime it block  dlls inside  the .zip file that is downloaded from internet.

Try following steps to get ride of it
1. Download the source code again or find the .zip file that you already downloaded
2. Right click then go Properties
3. In General tab click 'Unblocked'

Now unzip and try rebuild and publish, everything should be fine.

Best of luck.
9 years ago
Dear shahdat,

Thank you so much, everything works fine after following these steps.

For anyone seeing this kind of error, a warning would come up in VS when you try to open the solution. I dismissed it as inconsequential, however errors like these might show up later.

Best,
Amen.
9 years ago
shahdat45ict wrote:
Windows 7 or Windows 8 has a security feature, sometime it block  dlls inside  the .zip file that is downloaded from internet.

Try following steps to get ride of it
1. Download the source code again or find the .zip file that you already downloaded
2. Right click then go Properties
3. In General tab click 'Unblocked'

Now unzip and try rebuild and publish, everything should be fine.

Best of luck.



Hi Shahat,

Thank you very mush. Your solution is always helpful.

Regards,
Ela
9 years ago
One easy solution to this is to move the files to an USB memory stick and back again for this "lock" to be removed.

/Marcus
9 years ago
marcus.olsson wrote:
One easy solution to this is to move the files to an USB memory stick and back again for this "lock" to be removed.

/Marcus



Great tip Marcus.  Thanks!!!

Saved me a ton of time.
8 years ago
Hello Shahdat,
I tried the same with 3.50 version, after unblocking I unzipped it and tried to publish, but it still gives me following errors.


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.  D:\New folder\nopCommerce_3.50_Source\Libraries\Nop.Services\SGEN  Nop.Services


Error  20  Metadata file 'D:\New folder\nopCommerce_3.50_Source\Libraries\Nop.Services\bin\Release\Nop.Services.dll' could not be found  D:\New folder\nopCommerce_3.50_Source\Presentation\Nop.Web.Framework\CSC  Nop.Web.Framework


Error  26  Metadata file 'D:\New folder\nopCommerce_3.50_Source\Libraries\Nop.Services\bin\Release\Nop.Services.dll' could not be found  D:\New folder\nopCommerce_3.50_Source\Presentation\Nop.Web\CSC  Nop.Web


Error  27  Metadata file 'D:\New folder\nopCommerce_3.50_Source\Presentation\Nop.Web.Framework\bin\Release\Nop.Web.Framework.dll' could not be found  D:\New folder\nopCommerce_3.50_Source\Presentation\Nop.Web\CSC  Nop.Web


Please help me. Also note that I have already made a lot of changes to other soln of 3.50 according to my needs and then tried to publish, which is blocked version. Now if I want to publish that soln how would I be able to do that? If I start again with fresh soln, I will lose all changes.
8 years ago
shakil08it051 wrote:
If I start again with fresh soln, I will lose all changes.


Have you tried a clean build, then publish?  I know, sounds elementary - but I've forgotten that a few times.
8 years ago
OK here is how i solved it.

The files were locked by windows and its only visible in debug

I had to go to each .dll file that showed up in the error, and in the properties there was a button UNBLOCK and ones i applied the changes the errors was gone
8 years ago
Here is if you have to unblock files after you have extracted the project and have worked on it.
dir D:\Projects\Nop -recurse | Unblock-File

Because it is difficult to unblock one by one. :)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.