Error 2 Could not load file or assembly

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
9 years ago
I  am trying to publish noncommerce  on window azure for testing purpose. When I publish my project. I am getting four errors. the first one is:

" Error
2
Could not load file or assembly 'file:///C:\Users\Home\Documents\Visual Studio 2012\Projects\nopCommerce_3.30_Source\packages\Autofac.3.3.1\lib\net40\Autofac.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
C:\Users\Home\Documents\Visual Studio 2012\Projects\nopCommerce_3.30_Source\Libraries\Nop.Services\SGEN
Nop.Services"

The remaining errors are about the metadata files. I am stuck with this error. and can't go forward. please help me.
9 years ago
i had same issue
9 years ago
I still have the same issue. Did anyone manage to find what is the issue?
9 years ago
vaheyev wrote:
I still have the same issue. Did anyone manage to find what is the issue?


I hope this may help you.

https://www.nopcommerce.com/boards/t/27415/publishing-issues-with-clean-install-of-32-no-mods.aspx
9 years ago
check if the Autofac.dll is in the referenced directory, the metadata warnings are ok to have them in Visual Studio 2012.
Make sure you have update 4 for VS 2012
9 years ago
I have managed to solve this problem. After upgrading from 3.30 to 3.40, I have also upgraded all the other extensions as well. There was one plugin which the author didn't update it yet. So, I removed it and uninstalled it since it is calling the old version of the dlls which is causing the conflict. It is also important to remove all the files in the release folders of all project, clean the solution and rebuild. This is how I solved my issue which takes lot of time to realize it.
9 years ago
I am still facing this problem please help, however I had uses the fresh code for 3.40 and tried to publish
9 years ago
Solved the problem, some DLL's in packages folder are blocked for some reasons.
What i tried is build Nop.Services, Nop.Web and plugin in Release mode and start to unblock corresponding dll
9 years ago
Hey guys, found this tip to unblock all files in a sub folder instead of unblocking all the problematic DLLs from the 'Packages' folder.

Here it is:
http://www.codeproject.com/Articles/470052/Unblock-downloaded-files-with-PowerShell

I did it in my project (version 3.30) and afterward, my publish worked like a charm, no more file locked and no more warnings.
Hope this helps.
9 years ago
Galarweb wrote:
worked like a charm


Huge time saver setting up a new 3.4 solution!  Thanks!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.