nopCommerce 4.0 installation error

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
Hi

I try to install nopCommerce 4.0 to the system described below.

----------------------------------------
Visual Studio 2017 (version 15.5.6)
Net Framework (4.7.03056)
Nuget 4.5.0.4685
.NET Core Runtime 2.1.0 ASP.NET Core/.NET Core: Runtime & Hosting Bundle (installed)
ASP.NET Core Installer Runtime 2.1.0 (installed)
.NET Core Installer Runtime 2.1.0 (installed)
----------------------------------------


1) When I open project first I try to "Restore NuGet Packages" in solution. And it returns
----------------------------------------
All packages are already installed and there is nothing to restore.
Time Elapsed: 00:00:00.7363264
========== Finished ==========
----------------------------------------

2) Then I build solition and it returns 94 errors like this
----------------------------------------
Metadata file 'D:\nc40\Libraries\Nop.Core\bin\Debug\net461\Nop.Core.dll' could not be found  Nop.Web.Framework
The type or namespace name 'RedLock' could not be found (are you missing a using directive or an assembly reference?)  Nop.Core
The type or namespace name 'RedisLockFactory' could not be found (are you missing a using directive or an assembly reference?)  Nop.Core
The type or namespace name 'RedisLockFactory' could not be found (are you missing a using directive or an assembly reference?)  Nop.Core
Metadata file 'D:\nc40\Libraries\Nop.Core\bin\Debug\net461\Nop.Core.dll' could not be found  Nop.Data
Metadata file 'D:\nc40\Libraries\Nop.Core\bin\Debug\net461\Nop.Core.dll' could not be found  Nop.Services
Metadata file 'D:\nc40\Libraries\Nop.Data\bin\Debug\net461\Nop.Data.dll' could not be found  Nop.Services
Metadata file 'D:\nc40\Libraries\Nop.Data\bin\Debug\net461\Nop.Data.dll' could not be found  Nop.Web.Framework
Metadata file 'D:\nc40\Libraries\Nop.Services\bin\Debug\net461\Nop.Services.dll' could not be found  Nop.Web.Framework
Metadata file 'D:\nc40\Libraries\Nop.Core\bin\Debug\net461\Nop.Core.dll' could not be found  Nop.Tests
Metadata file 'D:\nc40\Libraries\Nop.Core\bin\Debug\net461\Nop.Core.dll' could not be found  Nop.Web
Metadata file 'D:\nc40\Libraries\Nop.Data\bin\Debug\net461\Nop.Data.dll' could not be found  Nop.Web
Metadata file 'D:\nc40\Libraries\Nop.Services\bin\Debug\net461\Nop.Services.dll' could not be found  Nop.Web
Metadata file 'D:\nc40\Presentation\Nop.Web.Framework\bin\Debug\net461\Nop.Web.Framework.dll' could not be found  Nop.Web
Metadata file 'D:\nc40\Libraries\Nop.Core\bin\Debug\net461\Nop.Core.dll' could not be found  Nop.Core.Tests
Metadata file 'D:\nc40\Tests\Nop.Tests\bin\Debug\net461\Nop.Tests.dll' could not be found  Nop.Core.Tests
Metadata file 'D:\nc40\Libraries\Nop.Core\bin\Debug\net461\Nop.Core.dll' could not be found  Nop.Data.Tests
Metadata file 'D:\nc40\Libraries\Nop.Data\bin\Debug\net461\Nop.Data.dll' could not be found  Nop.Data.Tests
Metadata file 'D:\nc40\Tests\Nop.Tests\bin\Debug\net461\Nop.Tests.dll' could not be found  Nop.Data.Tests
Metadata file 'D:\nc40\Libraries\Nop.Core\bin\Debug\net461\Nop.Core.dll' could not be found  Nop.Plugin.DiscountRules.CustomerRoles
Metadata file 'D:\nc40\Libraries\Nop.Data\bin\Debug\net461\Nop.Data.dll' could not be found  Nop.Plugin.DiscountRules.CustomerRoles
Metadata file 'D:\nc40\Libraries\Nop.Services\bin\Debug\net461\Nop.Services.dll' could not be found  Nop.Plugin.DiscountRules.CustomerRoles
Metadata file 'D:\nc40\Presentation\Nop.Web.Framework\bin\Debug\net461\Nop.Web.Framework.dll' could not be found  Nop.Plugin.DiscountRules.CustomerRoles
Metadata file 'D:\nc40\Libraries\Nop.Core\bin\Debug\net461\Nop.Core.dll' could not be found  Nop.Plugin.ExchangeRate.EcbExchange
Metadata file 'D:\nc40\Libraries\Nop.Data\bin\Debug\net461\Nop.Data.dll' could not be found  Nop.Plugin.ExchangeRate.EcbExchange
Metadata file 'D:\nc40\Libraries\Nop.Services\bin\Debug\net461\Nop.Services.dll' could not be found  Nop.Plugin.ExchangeRate.EcbExchange
Metadata file 'D:\nc40\Libraries\Nop.Core\bin\Debug\net461\Nop.Core.dll' could not be found  Nop.Plugin.ExternalAuth.Facebook
Metadata file 'D:\nc40\Libraries\Nop.Data\bin\Debug\net461\Nop.Data.dll' could not be found  Nop.Plugin.ExternalAuth.Facebook
Metadata file 'D:\nc40\Libraries\Nop.Services\bin\Debug\net461\Nop.Services.dll' could not be found  Nop.Plugin.ExternalAuth.Facebook
Metadata file 'D:\nc40\Presentation\Nop.Web.Framework\bin\Debug\net461\Nop.Web.Framework.dll' could not be found  Nop.Plugin.ExternalAuth.Facebook
Metadata file 'D:\nc40\Libraries\Nop.Core\bin\Debug\net461\Nop.Core.dll' could not be found  Nop.Plugin.Payments.CheckMoneyOrder
Metadata file 'D:\nc40\Libraries\Nop.Data\bin\Debug\net461\Nop.Data.dll' could not be found  Nop.Plugin.Payments.CheckMoneyOrder
Metadata file 'D:\nc40\Libraries\Nop.Services\bin\Debug\net461\Nop.Services.dll' could not be found  Nop.Plugin.Payments.CheckMoneyOrder
Metadata file 'D:\nc40\Presentation\Nop.Web.Framework\bin\Debug\net461\Nop.Web.Framework.dll' could not be found  Nop.Plugin.Payments.CheckMoneyOrder
Metadata file 'D:\nc40\Libraries\Nop.Core\bin\Debug\net461\Nop.Core.dll' could not be found  Nop.Plugin.Payments.Manual
Metadata file 'D:\nc40\Libraries\Nop.Data\bin\Debug\net461\Nop.Data.dll' could not be found  Nop.Plugin.Payments.Manual
Metadata file 'D:\nc40\Libraries\Nop.Services\bin\Debug\net461\Nop.Services.dll' could not be found  Nop.Plugin.Payments.Manual
Metadata file 'D:\nc40\Presentation\Nop.Web.Framework\bin\Debug\net461\Nop.Web.Framework.dll' could not be found  Nop.Plugin.Payments.Manual
Metadata file 'D:\nc40\Libraries\Nop.Core\bin\Debug\net461\Nop.Core.dll' could not be found  Nop.Plugin.Payments.PayPalDirect
Metadata file 'D:\nc40\Libraries\Nop.Data\bin\Debug\net461\Nop.Data.dll' could not be found  Nop.Plugin.Payments.PayPalDirect
Metadata file 'D:\nc40\Libraries\Nop.Services\bin\Debug\net461\Nop.Services.dll' could not be found  Nop.Plugin.Payments.PayPalDirect
Metadata file 'D:\nc40\Presentation\Nop.Web.Framework\bin\Debug\net461\Nop.Web.Framework.dll' could not be found  Nop.Plugin.Payments.PayPalDirect
Metadata file 'D:\nc40\Libraries\Nop.Core\bin\Debug\net461\Nop.Core.dll' could not be found  Nop.Plugin.Payments.PayPalStandard
Metadata file 'D:\nc40\Libraries\Nop.Data\bin\Debug\net461\Nop.Data.dll' could not be found  Nop.Plugin.Payments.PayPalStandard
Metadata file 'D:\nc40\Libraries\Nop.Services\bin\Debug\net461\Nop.Services.dll' could not be found  Nop.Plugin.Payments.PayPalStandard
Metadata file 'D:\nc40\Presentation\Nop.Web.Framework\bin\Debug\net461\Nop.Web.Framework.dll' could not be found  Nop.Plugin.Payments.PayPalStandard
Metadata file 'D:\nc40\Libraries\Nop.Core\bin\Debug\net461\Nop.Core.dll' could not be found  Nop.Plugin.Payments.Square
Metadata file 'D:\nc40\Libraries\Nop.Data\bin\Debug\net461\Nop.Data.dll' could not be found  Nop.Plugin.Payments.Square
Metadata file 'D:\nc40\Libraries\Nop.Services\bin\Debug\net461\Nop.Services.dll' could not be found  Nop.Plugin.Payments.Square
Metadata file 'D:\nc40\Presentation\Nop.Web\bin\Debug\net461\Nop.Web.exe' could not be found  Nop.Plugin.Payments.Square
Metadata file 'D:\nc40\Presentation\Nop.Web.Framework\bin\Debug\net461\Nop.Web.Framework.dll' could not be found  Nop.Plugin.Payments.Square
Metadata file 'D:\nc40\Libraries\Nop.Core\bin\Debug\net461\Nop.Core.dll' could not be found  Nop.Plugin.Payments.Worldpay
Metadata file 'D:\nc40\Libraries\Nop.Data\bin\Debug\net461\Nop.Data.dll' could not be found  Nop.Plugin.Payments.Worldpay
Metadata file 'D:\nc40\Libraries\Nop.Services\bin\Debug\net461\Nop.Services.dll' could not be found  Nop.Plugin.Payments.Worldpay
Metadata file 'D:\nc40\Presentation\Nop.Web\bin\Debug\net461\Nop.Web.exe' could not be found  Nop.Plugin.Payments.Worldpay
Metadata file 'D:\nc40\Presentation\Nop.Web.Framework\bin\Debug\net461\Nop.Web.Framework.dll' could not be found  Nop.Plugin.Payments.Worldpay
Metadata file 'D:\nc40\Libraries\Nop.Core\bin\Debug\net461\Nop.Core.dll' could not be found  Nop.Plugin.Pickup.PickupInStore
Metadata file 'D:\nc40\Libraries\Nop.Data\bin\Debug\net461\Nop.Data.dll' could not be found  Nop.Plugin.Pickup.PickupInStore
Metadata file 'D:\nc40\Libraries\Nop.Services\bin\Debug\net461\Nop.Services.dll' could not be found  Nop.Plugin.Pickup.PickupInStore
Metadata file 'D:\nc40\Presentation\Nop.Web.Framework\bin\Debug\net461\Nop.Web.Framework.dll' could not be found  Nop.Plugin.Pickup.PickupInStore
Metadata file 'D:\nc40\Libraries\Nop.Core\bin\Debug\net461\Nop.Core.dll' could not be found  Nop.Plugin.Shipping.Fedex
Metadata file 'D:\nc40\Libraries\Nop.Data\bin\Debug\net461\Nop.Data.dll' could not be found  Nop.Plugin.Shipping.Fedex
Metadata file 'D:\nc40\Libraries\Nop.Services\bin\Debug\net461\Nop.Services.dll' could not be found  Nop.Plugin.Shipping.Fedex
Metadata file 'D:\nc40\Presentation\Nop.Web.Framework\bin\Debug\net461\Nop.Web.Framework.dll' could not be found  Nop.Plugin.Shipping.Fedex
Metadata file 'D:\nc40\Libraries\Nop.Core\bin\Debug\net461\Nop.Core.dll' could not be found  Nop.Plugin.Shipping.FixedOrByWeight
Metadata file 'D:\nc40\Libraries\Nop.Data\bin\Debug\net461\Nop.Data.dll' could not be found  Nop.Plugin.Shipping.FixedOrByWeight
Metadata file 'D:\nc40\Libraries\Nop.Services\bin\Debug\net461\Nop.Services.dll' could not be found  Nop.Plugin.Shipping.FixedOrByWeight
Metadata file 'D:\nc40\Presentation\Nop.Web.Framework\bin\Debug\net461\Nop.Web.Framework.dll' could not be found  Nop.Plugin.Shipping.FixedOrByWeight
Metadata file 'D:\nc40\Libraries\Nop.Core\bin\Debug\net461\Nop.Core.dll' could not be found  Nop.Plugin.Shipping.UPS
Metadata file 'D:\nc40\Libraries\Nop.Data\bin\Debug\net461\Nop.Data.dll' could not be found  Nop.Plugin.Shipping.UPS
Metadata file 'D:\nc40\Libraries\Nop.Services\bin\Debug\net461\Nop.Services.dll' could not be found  Nop.Plugin.Shipping.UPS
Metadata file 'D:\nc40\Presentation\Nop.Web.Framework\bin\Debug\net461\Nop.Web.Framework.dll' could not be found  Nop.Plugin.Shipping.UPS
Metadata file 'D:\nc40\Libraries\Nop.Core\bin\Debug\net461\Nop.Core.dll' could not be found  Nop.Plugin.Tax.FixedOrByCountryStateZip
Metadata file 'D:\nc40\Libraries\Nop.Data\bin\Debug\net461\Nop.Data.dll' could not be found  Nop.Plugin.Tax.FixedOrByCountryStateZip
Metadata file 'D:\nc40\Libraries\Nop.Services\bin\Debug\net461\Nop.Services.dll' could not be found  Nop.Plugin.Tax.FixedOrByCountryStateZip
Metadata file 'D:\nc40\Presentation\Nop.Web.Framework\bin\Debug\net461\Nop.Web.Framework.dll' could not be found  Nop.Plugin.Tax.FixedOrByCountryStateZip
Metadata file 'D:\nc40\Libraries\Nop.Core\bin\Debug\net461\Nop.Core.dll' could not be found  Nop.Plugin.Widgets.GoogleAnalytics
Metadata file 'D:\nc40\Libraries\Nop.Data\bin\Debug\net461\Nop.Data.dll' could not be found  Nop.Plugin.Widgets.GoogleAnalytics
Metadata file 'D:\nc40\Libraries\Nop.Services\bin\Debug\net461\Nop.Services.dll' could not be found  Nop.Plugin.Widgets.GoogleAnalytics
Metadata file 'D:\nc40\Presentation\Nop.Web.Framework\bin\Debug\net461\Nop.Web.Framework.dll' could not be found  Nop.Plugin.Widgets.GoogleAnalytics
Metadata file 'D:\nc40\Libraries\Nop.Core\bin\Debug\net461\Nop.Core.dll' could not be found  Nop.Plugin.Widgets.NivoSlider
Metadata file 'D:\nc40\Libraries\Nop.Data\bin\Debug\net461\Nop.Data.dll' could not be found  Nop.Plugin.Widgets.NivoSlider
Metadata file 'D:\nc40\Libraries\Nop.Services\bin\Debug\net461\Nop.Services.dll' could not be found  Nop.Plugin.Widgets.NivoSlider
Metadata file 'D:\nc40\Presentation\Nop.Web.Framework\bin\Debug\net461\Nop.Web.Framework.dll' could not be found  Nop.Plugin.Widgets.NivoSlider
Metadata file 'D:\nc40\Libraries\Nop.Core\bin\Debug\net461\Nop.Core.dll' could not be found  Nop.Services.Tests
Metadata file 'D:\nc40\Libraries\Nop.Data\bin\Debug\net461\Nop.Data.dll' could not be found  Nop.Services.Tests
Metadata file 'D:\nc40\Libraries\Nop.Services\bin\Debug\net461\Nop.Services.dll' could not be found  Nop.Services.Tests
Metadata file 'D:\nc40\Tests\Nop.Tests\bin\Debug\net461\Nop.Tests.dll' could not be found  Nop.Services.Tests
Metadata file 'D:\nc40\Libraries\Nop.Core\bin\Debug\net461\Nop.Core.dll' could not be found  Nop.Web.MVC.Tests
Metadata file 'D:\nc40\Libraries\Nop.Data\bin\Debug\net461\Nop.Data.dll' could not be found  Nop.Web.MVC.Tests
Metadata file 'D:\nc40\Libraries\Nop.Services\bin\Debug\net461\Nop.Services.dll' could not be found  Nop.Web.MVC.Tests
Metadata file 'D:\nc40\Tests\Nop.Tests\bin\Debug\net461\Nop.Tests.dll' could not be found  Nop.Web.MVC.Tests
Metadata file 'D:\nc40\Presentation\Nop.Web\bin\Debug\net461\Nop.Web.exe' could not be found  Nop.Web.MVC.Tests
Metadata file 'D:\nc40\Presentation\Nop.Web.Framework\bin\Debug\net461\Nop.Web.Framework.dll' could not be found  Nop.Web.MVC.Tests
----------------------------------------

3) \bin\Debug\net461\ folders are empty. Then I downloaded nopCommerce_4.00_NoSource and After I copied .dll files from here it returns
----------------------------------------
The type or namespace name 'RedisLockFactory' could not be found (are you missing a using directive or an assembly reference?)  Nop.Core
The type or namespace name 'RedLock' could not be found (are you missing a using directive or an assembly reference?)  Nop.Core
The type or namespace name 'RedisLockFactory' could not be found (are you missing a using directive or an assembly reference?)  Nop.Core
No overload for method 'UseMiniProfiler' takes 1 arguments  Nop.Web.Framework
The call is ambiguous between the following methods or properties: 'Microsoft.AspNetCore.Builder.MiniProfilerBuilderExtensions.UseMiniProfiler(Microsoft.AspNetCore.Builder.IApplicationBuilder)' and 'Nop.Web.Framework.Infrastructure.Extensions.ApplicationBuilderExtensions.UseMiniProfiler(Microsoft.AspNetCore.Builder.IApplicationBuilder)'  Nop.Web.Framework

----------------------------------------

How can I solve these problems?
5 years ago
Did you rebuild the Nop.Core individually? If yes then can you please check the C:\Users\youruser\.nuget\packages location and try to find that "redlock.net.strongname' folder. If this folder does not exist then you can add this from nuget by right click on the project.
5 years ago
Hi Sina,

I downloaded the nopCommerce 4.0 and I individually rebuild Nop.Core. It gives me

----------------------------------------
The type or namespace name 'RedLock' could not be found (are you missing a using directive or an assembly reference?)  Nop.Core
The type or namespace name 'RedisLockFactory' could not be found (are you missing a using directive or an assembly reference?)  Nop.Core
The type or namespace name 'RedisLockFactory' could not be found (are you missing a using directive or an assembly reference?)  Nop.Core

----------------------------------------

then like you said I search for redlock.net.strongname in C:\Users\youruser\.nuget\packages location

I found two version in this folder
- redlock.net.strongname
   - 1.7.5
   - 2.0.0
5 years ago
If this nuget package exists and already added to the project then this error should not occur. The solution somehow does not get the reference.
5 years ago
Hi Sina,

I moved the project files form D:\ to C:\ and it works.

Thank you for your interest
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.