Could not load file or assembly NUglify

2 years ago
Hi,

I am upgrading to nopCommerce 4.0. I have two questions:

1. I use Visual Studio 2015. I can find no solution to open. How do I develop with Visual Studio 2015? Do I need to upgrade to 2027?
2. When I setup a test site in IIS, I get this error:

Application startup exception: System.IO.FileLoadException: Could not load file or assembly 'NUglify, Version=1.5.5.0, Culture=neutral, PublicKeyToken=15bc7810aec21b5e' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
File name: 'NUglify, Version=1.5.5.0, Culture=neutral, PublicKeyToken=15bc7810aec21b5e' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.

My IIS is pointed the root directory where all the assemblies are located and I found the Niglify assembly. I made an app pool saying no managed code.

The file exists in the project.
2 years ago
Hi,

I downloaded the nopCommerce version 4 with no source code, but there is no solution file. Am I supposed to create one? How do I open the project in VS 2017 and run it on IISExpress? Also, will my razor view files still work?
1 year ago
I found the solution for this particular problem.

You need to make sure all your files and DLLs are unblocked as in this post:

https://blogs.msdn.microsoft.com/drew/2009/12/23/xunit-and-td-net-fixing-the-attempt-was-made-to-load-an-assembly-from-a-network-location-problem/

You can also use Sysinternals Stream to unblock all the files in your installation:

https://docs.microsoft.com/es-es/sysinternals/downloads/streams
1 year ago
antoniodlp wrote:
I found the solution for this particular problem.

You need to make sure all your files and DLLs are unblocked as in this post:

https://blogs.msdn.microsoft.com/drew/2009/12/23/xunit-and-td-net-fixing-the-attempt-was-made-to-load-an-assembly-from-a-network-location-problem/

You can also use Sysinternals Stream to unblock all the files in your installation:

https://docs.microsoft.com/es-es/sysinternals/downloads/streams


This is help
2 months ago
Let's look here
https://www.nopcommerce.com/boards/t/51785/could-not-load-file-or-assembly.aspx#248531