How to publish nopcommerce 3.2 admin site from source code?

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

How to publish nopcommerce 3.2 admin site from source code?

when I tried to publish the Nop.Admin project to C:\nop_3.20\Administration (I created an IIS website for c:\nop_3.20), the publish is fine, but I can't access the page localhost:8000/admin, it returned error HTTP 403.

Note: localhost:8000 works fine for Nop.web publish.

If I download 3.2 without source code, and kick off installation from that website. After installation, the /admin link is working.
10 years ago
There's no need to publish Nop.Admin. Publish only Nop.Web, it includes everything
10 years ago
Hello,
I have pretty much the same problem:
1. I am deploying to IIS (localhost) on development machine.
2. Publishing only Nop.Web .
3. The Public store works fine, but when I login as Admin user, and click on Administration (http://[mysite]/admin URL),
the user friendly message is shown:
"PAGE NOT FOUND
The page you requested was not found, and we have a fine guess why."

Please advise!
Thank you!
10 years ago
Please see the Deploying.Readme.txt file in the solution:

1. Open the solution in Visual Studio
2. Re-build the entire solution
3. Publish the "Nop.Web" project from Visual Studio
P.S. When publishing ensure that configuration is set to "Release"


this point 2 will ensure that your plugins are Nop.Admin libraries are compiled
10 years ago
Thanks. It works now after I built everything correctly.

Previously the built had problem but I did not notice. I did the following to fix them:

1. Install VS 2012 Update 4
2. Follow the steps below to unblock the files (I am on win2012): https://www.nopcommerce.com/boards/t/18232/installing-260-latest-changeset-nopcommerce_bf4461a7fd76.aspx
10 years ago
Indeed the problem was that:
1. I have not built in Release mode.
2. In Release mode there were some exceptions related to some DLLs in 'packages' folder being blocked by the OS.

Thanks for the help!
10 years ago
There's no need to build it in Release mode. Re-building in ANY mode is enough
10 years ago
Having the same problem. Have followed the instruction on page 6 of the Nop Commerce manual. I have rebuilt the solution using the "Build | Rebuild Solution" menu with Release configuration selected and platform is "Any CPU" . I have created a deployment profile to deploy to the file system. When settign up the publish profile I select the "Release - Any CPU" option.

I am usign VS2012 with update 4 installed.

What am I doing wrong?
10 years ago
I've just gone back to the original, untouched 3.20 source download and tried to deploy. It works as expected. Must be somethign I've done to my version. Sorry.
7 years ago
For those that come to this post looking for a solution to this without going back to the base nop code...

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.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.