Nopcommerce Publishing Issues – Could not load file or assembly

I was working on the nop commerce 3.80 framework, I did some customizations. I decided to upload the nop commerce solution to the windows azure.

When I tried to pulbish I got weird error. Could not load file or assembly

Here the full error

Could not load file or assembly 'file:///C:\Workspace\Projects\startup-myskinshop\MySkinshop_nopCommerce_3.80\packages\Autofac.3.3.1\lib\net40\Autofac.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)

Please find below the simple solution

It’s due to windows block some files, while publish to unblock all the files needed while publish, please open the Power Shell and run below command.

dir C:\Workspace\Projects\startup-myskinshop\MySkinshop_nopCommerce_3.80\packages -Recurse | Unblock-File

Please change the path to your solution directory.

Please don't forgot to comment or share, if it helped you.

Posted by | View Post | View Group