Could not load file or assembly NUglify

Posted: November 16, 2017 at 8:45 AM Quote #196304
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.
This post/answer is useful
3
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: November 17, 2017 at 3:59 PM Quote #196404
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?
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: January 11, 2018 at 10:35 AM Quote #199073
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 post/answer is useful
2
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: March 26, 2018 at 3:09 PM Quote #202453
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
This post/answer is useful
4
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Up-vote the answer, if it helps you! :)


Thank You
Raju Paladiya
-------------------------------------------------------
Project Leader and senior nopCommerce Developer
nopAccelerate - Faster, Reliable & Scalable nopCommerce

http://www.nopAccelerate.com | http://www.xcellence-it.com
Premium support services
  • Dedicated premium support services provided by core developers are intended for persons who run mission critical websites, work on projects with tight deadlines, or want to get dedicated support.
Professional services
  • Want to open a new store? Want to take your store to the next level? Need a custom extension? We can customize nopCommerce to fit your store perfectly. Request a quote to get started.