Getting started. Installing and upgrading nopCommerce.

3 months ago
Hi;

When I Build in VS 2019, I get the attached error.



Regards.

Severity  Code  Description  Project  File  Line  Suppression State
Error  CS0006  Metadata file 'C:\Users\Administrator\Downloads\yyyy420\src\Presentation\Nop.Web\bin\Debug\netcoreapp2.2\Nop.Web.dll' could not be found  Nop.Plugin.Payments.Qualpay  C:\Users\Administrator\Downloads\yyyy420\src\Plugins\Nop.Plugin.Payments.Qualpay\CSC  1  Active
Error  CS0006  Metadata file 'C:\Users\Administrator\Downloads\yyyy420\src\Presentation\Nop.Web\bin\Debug\netcoreapp2.2\Nop.Web.dll' could not be found  Nop.Plugin.Payments.Square  C:\Users\Administrator\Downloads\yyyy420\src\Plugins\Nop.Plugin.Payments.Square\CSC  1  Active
Error  CS0006  Metadata file 'C:\Users\Administrator\Downloads\yyyy420\src\Presentation\Nop.Web\bin\Debug\netcoreapp2.2\Nop.Web.dll' could not be found  Nop.Plugin.Tax.Avalara  C:\Users\Administrator\Downloads\yyyy420\src\Plugins\Nop.Plugin.Tax.Avalara\CSC  1  Active
Error  CS0006  Metadata file 'C:\Users\Administrator\Downloads\yyyy420\src\Presentation\Nop.Web\bin\Debug\netcoreapp2.2\Nop.Web.dll' could not be found  Nop.Web.MVC.Tests  C:\Users\Administrator\Downloads\yyyy420\src\Tests\Nop.Web.MVC.Tests\CSC  1  Active
Error  MSB3030  Could not copy the file "C:\Users\Administrator\Downloads\yyyy420\src\Presentation\Nop.Web\Plugins\ExternalAuth.Facebook\plugin.json" because it was not found.  Nop.Web  C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets  4570  
Error  MSB3030  Could not copy the file "C:\Users\Administrator\Downloads\yyyy420\src\Presentation\Nop.Web\Plugins\ExternalAuth.Facebook\Nop.Plugin.ExternalAuth.Facebook.deps.json" because it was not found.  Nop.Web  C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets  4570  
Error  MSB3030  Could not copy the file "C:\Users\Administrator\Downloads\yyyy420\src\Presentation\Nop.Web\Plugins\Widgets.GoogleAnalytics\Nop.Plugin.Widgets.GoogleAnalytics.deps.json" because it was not found.  Nop.Web  C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets  4570  
Error  MSB3030  Could not copy the file "C:\Users\Administrator\Downloads\yyyy420\src\Presentation\Nop.Web\Plugins\Widgets.GoogleAnalytics\plugin.json" because it was not found.  Nop.Web  C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets  4570
3 months ago
rggr wrote:
is there any tutorial about installing nopcommerce (without source), on a localhost?. I need to try it before before install on a real server.
thanks

nopCommerce is nothing but a web based .Net application. You can deploy it just like any other projects. First check Technology & System Requirements and make sure all available on your machine, turn on IIS if not already and then run IIS and publish nopCommerce on it. You can also read this documentation for better understanding.
3 months ago
Hi,

It meets the installation requirements.
When I debug over VS 2019, I get the following error.


Exception: A plugin with 'DiscountRequirement.MustBeAssignedToCustomerRole' system name is already defined
Nop.Web.Framework.Infrastructure.Extensions.ApplicationPartManagerExtensions.InitializePlugins(ApplicationPartManager applicationPartManager, NopConfig config) in ApplicationPartManagerExtensions.cs, line 482

Exception: A plugin with 'DiscountRequirement.MustBeAssignedToCustomerRole' system name is already defined
Nop.Web.Framework.Infrastructure.Extensions.ApplicationPartManagerExtensions.InitializePlugins(ApplicationPartManager applicationPartManager, NopConfig config) in ApplicationPartManagerExtensions.cs, line 579

Exception: A plugin with 'DiscountRequirement.MustBeAssignedToCustomerRole' system name is already defined
Nop.Web.Framework.Infrastructure.Extensions.ApplicationPartManagerExtensions.InitializePlugins(ApplicationPartManager applicationPartManager, NopConfig config) in ApplicationPartManagerExtensions.cs
+
                        pluginDescriptor.Installed = PluginsInfo.InstalledPluginNames

Show raw exception details
Exception: A plugin with 'DiscountRequirement.MustBeAssignedToCustomerRole' system name is already defined
Nop.Web.Framework.Infrastructure.Extensions.ApplicationPartManagerExtensions.InitializePlugins(ApplicationPartManager applicationPartManager, NopConfig config) in ApplicationPartManagerExtensions.cs
+
                    throw new Exception(message, exception);
Nop.Web.Framework.Infrastructure.Extensions.ServiceCollectionExtensions.ConfigureApplicationServices(IServiceCollection services, IConfiguration configuration, IHostingEnvironment hostingEnvironment) in ServiceCollectionExtensions.cs
+
            mvcCoreBuilder.PartManager.InitializePlugins(nopConfig);
Nop.Web.Startup.ConfigureServices(IServiceCollection services) in Startup.cs
+
            return services.ConfigureApplicationServices(_configuration, _hostingEnvironment);
Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices()
Microsoft.AspNetCore.Hosting.Internal.WebHost.Initialize()
Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()
3 months ago
LinusTeknoloji wrote:
A plugin with 'DiscountRequirement.MustBeAssignedToCustomerRole' system name is already defined

It says that, there are more than one plugins with the system name DiscountRequirement.MustBeAssignedToCustomerRole in your application. Check plugin.json inside all folders of Nop.Web > Plugins.
3 months ago
LinusTeknoloji wrote:
Hi;

When I Build in VS 2019, I get the attached error.



Regards.

Severity  Code  Description  Project  File  Line  Suppression State
Error  CS0006  Metadata file 'C:\Users\Administrator\Downloads\yyyy420\src\Presentation\Nop.Web\bin\Debug\netcoreapp2.2\Nop.Web.dll' could not be found  Nop.Plugin.Payments.Qualpay  C:\Users\Administrator\Downloads\yyyy420\src\Plugins\Nop.Plugin.Payments.Qualpay\CSC  1  Active
Error  CS0006  Metadata file 'C:\Users\Administrator\Downloads\yyyy420\src\Presentation\Nop.Web\bin\Debug\netcoreapp2.2\Nop.Web.dll' could not be found  Nop.Plugin.Payments.Square  C:\Users\Administrator\Downloads\yyyy420\src\Plugins\Nop.Plugin.Payments.Square\CSC  1  Active
Error  CS0006  Metadata file 'C:\Users\Administrator\Downloads\yyyy420\src\Presentation\Nop.Web\bin\Debug\netcoreapp2.2\Nop.Web.dll' could not be found  Nop.Plugin.Tax.Avalara  C:\Users\Administrator\Downloads\yyyy420\src\Plugins\Nop.Plugin.Tax.Avalara\CSC  1  Active
Error  CS0006  Metadata file 'C:\Users\Administrator\Downloads\yyyy420\src\Presentation\Nop.Web\bin\Debug\netcoreapp2.2\Nop.Web.dll' could not be found  Nop.Web.MVC.Tests  C:\Users\Administrator\Downloads\yyyy420\src\Tests\Nop.Web.MVC.Tests\CSC  1  Active
Error  MSB3030  Could not copy the file "C:\Users\Administrator\Downloads\yyyy420\src\Presentation\Nop.Web\Plugins\ExternalAuth.Facebook\plugin.json" because it was not found.  Nop.Web  C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets  4570  
Error  MSB3030  Could not copy the file "C:\Users\Administrator\Downloads\yyyy420\src\Presentation\Nop.Web\Plugins\ExternalAuth.Facebook\Nop.Plugin.ExternalAuth.Facebook.deps.json" because it was not found.  Nop.Web  C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets  4570  
Error  MSB3030  Could not copy the file "C:\Users\Administrator\Downloads\yyyy420\src\Presentation\Nop.Web\Plugins\Widgets.GoogleAnalytics\Nop.Plugin.Widgets.GoogleAnalytics.deps.json" because it was not found.  Nop.Web  C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets  4570  
Error  MSB3030  Could not copy the file "C:\Users\Administrator\Downloads\yyyy420\src\Presentation\Nop.Web\Plugins\Widgets.GoogleAnalytics\plugin.json" because it was not found.  Nop.Web  C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets  4570


Probably Files are missing or don't have access due to User Access control settings.
3 months ago
cebina wrote:
Hello,
i want install Nopcommerce on Linux (no source) i get error: "Setup failed: Database does not exist or you don't have permissions to connect to it"

i set all permission and Connection from SQL Server Manager all is OK!

i dont what is Problem,
please help

Best Regards
Cebina


i install nopCommerce 4.20 (source Code ) on Linux and working good,but if i want install (No source Code) i get error: "Setup failed: Database does not exist or you don't have permissions to connect to it",  does anyone have any idea what the problem is?


You might have got the badimageformat error while starting the application on Linux. :-) The NoSource is not selfContained for Linux.
3 months ago
kmsrao wrote:
Hello,
i want install Nopcommerce on Linux (no source) i get error: "Setup failed: Database does not exist or you don't have permissions to connect to it"



i set all permission and Connection from SQL Server Manager all is OK!

i dont what is Problem,
please help

Best Regards
Cebina


i install nopCommerce 4.20 (source Code ) on Linux and working good,but if i want install (No source Code) i get error: "Setup failed: Database does not exist or you don't have permissions to connect to it",  does anyone have any idea what the problem is?

You might have got the badimageformat error while starting the application on Linux. :-) The NoSource is not selfContained for Linux.


Hallo kmsrao,
I install as written in documentation.
I give u link!
https://docs.nopcommerce.com/user-guide/installing/linux.html

Best regards
Cebina
3 months ago
Yes. Correct.
The same steps mentioned in the link gives you badimageformat error.  Some thing like "System.BadImageFormatException: Could not load file or assembly '/var/www/nopCommerce420/sni.dll' ".. Is that correct ?

This error shows as not able to connect to DB.

May NopCommerce Tech Guys might not have identified the issue yet.  Better compile the code with linux-x64 runtime and use that.
3 months ago
kmsrao wrote:
Yes. Correct.
The same steps mentioned in the link gives you badimageformat error.  Some thing like "System.BadImageFormatException: Could not load file or assembly '/var/www/nopCommerce420/sni.dll' ".. Is that correct ?

This error shows as not able to connect to DB.

May NopCommerce Tech Guys might not have identified the issue yet.  Better compile the code with linux-x64 runtime and use that.


hi,
if u have a solution give here, i m not a devoloper.

best regards
cebina
3 months ago
cebina wrote:


hi,
if u have a solution give here, i m not a devoloper.

best regards
cebina


Hi
I understand from your previous post that you used Source Code and it is working. If you are looking for binaries for linux you can get them at https://github.com/kmsrao/NopCommerce_Linux/  . Hope it helps.