Problem with example Plugin with data access

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 anos atrás
I am using the example from this link
https://www.nopcommerce.com/docs/75/plugin-with-data-access.aspx

First of all I get an error with the following

//Load custom data settings
            var dataSettingsManager = new DataSettingsManager();
            DataSettings dataSettings = dataSettingsManager.LoadSettings();

Cannot resolve symbol DataSettingsManager

I am using the downloaded example file found on the same page

The application compiles fine but there is that error

Using vs 2012
resharper

ill hit the other problems I have after I get this one answered
Thanks
11 anos atrás
a0011010011 wrote:
I am using the example from this link
https://www.nopcommerce.com/docs/75/plugin-with-data-access.aspx

First of all I get an error with the following

//Load custom data settings
            var dataSettingsManager = new DataSettingsManager();
            DataSettings dataSettings = dataSettingsManager.LoadSettings();

Cannot resolve symbol DataSettingsManager

I am using the downloaded example file found on the same page

The application compiles fine but there is that error

Using vs 2012
resharper

ill hit the other problems I have after I get this one answered
Thanks


You said your application compiles fine, that means you face this problem in run time?

DataSettingsManager and DataSettings resides in Nop.Core.Data. Have you included the reference? Have you checked your References, and see if anything went wrong there?

Also, did you include this project into the nopCommerce solution? I don't think the sample runs on its own. It must be run through nopCommerce.

:)
11 anos atrás
I copied the whole contents of the zip file to the plugins folder and added existing project through solution manager,
all the other plugins and references where automatically added
The problem is that I am using the exact code that the developer used , Skyler Severns , He gives a very over the top explanation of the code and does not go into detail.

Everything looks right but the code does not run as expected
11 anos atrás
a0011010011 wrote:
I copied the whole contents of the zip file to the plugins folder and added existing project through solution manager,
all the other plugins and references where automatically added
The problem is that I am using the exact code that the developer used , Skyler Severns , He gives a very over the top explanation of the code and does not go into detail.

Everything looks right but the code does not run as expected


I've tried downloading the code and adding it to my nopCommerce solution. It turns out that 4 references are having problem: Autofac, Autofac.Configuration, Autofac.Integration.MVC and EntityFramework. You have to manually resolve these references. Then it should work alright. :)
11 anos atrás
If you are using visual studio 2010 \ 2012 goto TOOLS \Options \ Package manager
click on "Allow nuget to download mising packages during build
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.