Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to publish NopCommerce and NopCommerce admin website?

Tags:

nopcommerce

I have deployed NopCommerce to Windows azure website and I am able to see home page of NopCommerce website on website URL. After I login using admin credentials, I can see Administration link at the top. But when I click on the link, administration website is not shown.

It seems that with NopCommerce admin website does not get deployed. When I tried to publish from Admin website in Visual Studio to azure website, it didn't work. Can someone point me that how can I deploy admin website?

like image 414
Manoj Attal Avatar asked Mar 25 '13 04:03

Manoj Attal


People also ask

How do I publish a nopCommerce project?

You need to go to the properties of the Nop. Web project and go to the "Package/Publish Web" tab and under the "Items to deploy" set it to "All files in this project folder".

How do I publish nopCommerce to Azure?

nopCommerce is available in the Azure Web Sites application gallery. So go to Azure portal, click "start, new site, from gallery". Select nopCommerce from the list of available applications. After you enter your database connection information and click OK , nopCommerce will be ready to launch.

How do I publish nopCommerce in Visual Studio 2019?

Publish project Nop. Open your web app solution in Microsoft Visual Studio. Right-click the project in Solution Explorer and choose Publish. Use the arrow on the right of the page to scroll through the publishing options until you find Microsoft Azure Virtual Machines.

How do I access my nopCommerce admin panel?

nopCommerce interface Or you can simply add /admin to the end of your site's URL to open the admin area. For example, www.example.com/admin . The dashboard has the following sections: nopCommerce news is a section that shows important news, sales and promotions information from nopCommerce.


7 Answers

Run Deploy.bat in your root folder. This will create the entire website structure in the Deployable folder. FTP that up to your site.

like image 51
AndyMcKenna Avatar answered Sep 27 '22 15:09

AndyMcKenna


It is quite tricky but will make sense to you after getting used to NopCommerce.

You need to create a subdirectory called 'Administration' and deploy there. Then you copy ALL the files that are inside /Administration/bin to /bin. These files will include Nop.Admin.dll and other dlls used by Admin.

Don't forget to copy all plugin DLLs to /plugins

like image 26
Carlos Martinez T Avatar answered Sep 27 '22 15:09

Carlos Martinez T


If you add Nop.Admin project reference to Nop.Web it will be solved.

like image 24
Özgür Öztürk Avatar answered Sep 25 '22 15:09

Özgür Öztürk


Just move Nop.Admin.dll to folder Nop.web\bin, this error is due to missing DLL Nop.Admin.dll from stuff.

like image 23
Anjan Kant Avatar answered Sep 26 '22 15:09

Anjan Kant


For Publishing the NopCommerce Application website below is the step:

Step : 1 - Publish the Nop.Web project.

Step : 2 - Publish the Nop.Admin project.

Go to the publish folder where your publish created

Here is your answer below (Step :3   is your answer) :

Step : 3 - Cut all dll from the Administration and Paste all dll to bin folder which in main bin folder for whole project.

Step : 4 - Copy two things from your source project and in App_Data folder Settings.txt and InstalledPlugins.txt which is not published in your publish file so paste this two files in your publish folder in App_Data. (You need to change the connection string in Setting.txt as per your database host).

Step : 5 - Now you need to copy whole plugins folder from your source folder (but remember this plugins folder you need to copy from the Presentation folder not from the main source where the solution file are there.)and replace it to with your publish's plugin folder.

Step : 6 - Now your publish have been ready.(now you can deploy on hosting server)

like image 23
Vishvanathsinh Solanki Avatar answered Sep 23 '22 15:09

Vishvanathsinh Solanki


If you're using web deploy via Visual Studio, make sure in your publishing settings you deploy as "RELEASE", else the admin directory will 404. Just thought I'd share after discovering this in version 3.30 myself...

like image 40
Paul Avatar answered Sep 27 '22 15:09

Paul


You need to go to the properties of the Nop.Web project and go to the "Package/Publish Web" tab and under the "Items to deploy" set it to "All files in this project folder".

You need to do this for each "Configuration" you have that you deploy under as it will not set it as this on default for any new configurations you might have created.

The reason for needing this is because the admin project is outside of the Nop.Web scope. So the default setting of "Only files needed to run this application" only includes the Nop.Web files. If you select the "All files in this project folder", it will include the admin project because nop.web has references to it.

Hope this helps.

like image 28
de1 Avatar answered Sep 23 '22 15:09

de1