nopCommerce 4.0, Nop.Web source code with IIS on local machine with out publish

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 years ago
I have one question regarding Nopcommerce 4.0 to 4.2.
can we run nop 4.0 project  from iis on local machine with out publish like 3.9 version?
there is no any solution in forum. I have try but not getting success. I have refer this link https://www.nopcommerce.com/en/boards/topic/51654/how-to-map-nopcommerce-40-nopweb-source-code-with-iis-7-on-local-machine-with-out-publish

Can you suggest me how to run nop 4.0 project with source code from iis?

Please help me this is very critical issue.
3 years ago
Yidna's reply to that post seems accurate
You should be able to point your IIS server Physical path to your development directory
For example D:\websitedevelopment\Presentation\Nop.Web


Note, though, that you're not actually running the source code.  The VS compile/build creates the executable in the \Presentation\ folders, so that's what your IIS points to.  So, be sure you Build your solution.

If you'r getting errors you can't resolve, then post the messages here.
3 years ago
Hi Yinda

Thanks for your reply.

I have already set path like this way  IIS D:\websitedevelopment\Presentation\Nop.Web  and set some changes in web config
<aspNetCore requestTimeout="23:00:00" processPath="dotnet" arguments=".\Nop.Web.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" startupTimeLimit="3600">
But still getting error. I have installed .Net runtime core also.

Can you guide full step of setup?
3 years ago
"If you're getting errors you can't resolve, then post the messages here."
3 years ago
Hello Yinda

I have Setup as you mention and getting error which is show below.
1)Setup in IIS As you mention. Please See image in below link
   https://www.screencast.com/t/zWxETY1Eba

2) Set processPath="dotnet" arguments=".\Nop.Web.dll" in webconfig file like below.. Please See image in below link
   https://www.screencast.com/t/ywAZP1XBsP

3)Getting error on Browser when run url. Please See image in below link
   https://www.screencast.com/t/ahZjvict

4)When I have checked in log file then It show below error. You can see error in below link also.
Error: No executable found matching command "dotnet-.\Nop.Web.dll"
  https://www.screencast.com/t/rJuGW0QL9Ioq

Please check and let me know that where I am wrong.
Thanks.
3 years ago
You are using the source code version - just confirming - you are trying to run v4.2 ?
As far as I know to run in IIS without publish you need to be debugging in Visual Studio and you point the IIS to your Nop.Web directory as you have done
Otherwise to run without Visual Studio you need to publish to a local directory
and you point the IIS to the Nop.Web in the local directory

I have the following in my hosts file
127.0.0.1  localtest42.myworkstation.com.au

Then I bind this address localtest42.myworkstation.com.au to my web in IIS

I run Visual Studio in Adminsitrator mode (right click on the desktop icon)
In Nop.Web properties (right click to get to properties)
Debug Tab > Web Server Settings  >
Select Launch: IIS
App URL: http://localtest42.myworkstation.com.au/
When I run the debugger it starts the browser with  address  http://localtest42.myworkstation.com.au/
3 years ago
Ya I am using 4.2 version.

Thank you very much Yinda. I can run on domain name like mention by you.
But when we have to setup multiple store at that time we have to change domain name in debug => Webserver setting  tab for each store. Right?
3 years ago
Iam using version 4.10
I want to deploy to local IIS . I have pointed in IIS to D:\Codes\nopCommerce-release-4.10\nopCommerce-release-4.10\src\Presentation\Nop.Web.

Once i run it is giving below error
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
3 years ago
ritul wrote:
when we have to setup multiple store at that time we have to change domain name in debug => Webserver setting  tab for each store. Right?


Well you can setup multiple stores without having to change the setting
Setup the main domian in VS as above
https://localtest43.testdomain.com/

And map multiple domains in the DNS to IIS
127.0.0.1    https://localtest43.testdomain.com/
127.0.0.1    https://localtest43-1.testdomain.com/
127.0.0.1    https://localtest43-2.testdomain.com/

Then you can setup multiple stores in nopCommerce
V43 demo Store      https://localtest43.testdomain.com/
V43 demo Store 1      https://localtest43-1.testdomain.com/
V43 demo Store 2      https://localtest43-2.testdomain.com/
3 years ago
Thanks Yinda for great help.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.