How to publish and deploy in IIS step by step

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 years ago
I have set up a https binding and I get an error now at least.
I checked the installed .net core files and it seems they are okay.  (I have uninstalled/instelled them again without any issue.)



Any idea please!

Zoltan
3 years ago
Ok at least you have an error now - See this info for Error Checking
https://www.selectsystems.com.au/checking-for-errors-on-a-new-installation-of-nopcommerce
3 years ago
Hi Yidna,

This goes to the logfile when I click on the link in IIS.
#Software: Microsoft Internet Information Services 10.0
#Version: 1.0
#Date: 2020-10-16 15:32:19
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32-status time-taken
2020-10-16 15:32:19 ::1 GET / - 448 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/86.0.4240.80+Safari/537.36+Edg/86.0.622.43 - 500 21 64 87
2020-10-16 15:32:19 ::1 GET / - 448 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/86.0.4240.80+Safari/537.36+Edg/86.0.622.43 - 500 21 64 11
2020-10-16 15:32:19 ::1 GET / - 448 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/86.0.4240.80+Safari/537.36+Edg/86.0.622.43 - 500 21 13 4
2020-10-16 15:32:19 ::1 GET /favicon.ico - 448 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/86.0.4240.80+Safari/537.36+Edg/86.0.622.43 https://localhost:448/ 500 21 13 0

Not much info. (for me)
3 years ago
Hello All,

First of all, thank you for all your help.
I don't have any luck with nopCommerce 4.3 on Windows 2016 Server.
I my sadness, I just set up a PC with Windows 10 and the necessary things and I installed nopCommerce 4.3 on it without any problem. The settings are the same like on the server.
The server doesn't happy with something. (I don't have time to figure it out.)

Anyway the purpose of this installation is, I want to do an experiment with multiple nop 4.3 in subfolders.
The point of this, we want to target the audience country specific offers, logos, (might be design) and let alone the price. We want fixed prices.

Is there anybody with this experience?

Many thanks
Zoltan
3 years ago
Re your server error - there should have been something in the stdout log or the windows events logs
I am running Windows 2016 no problems

Re: subfolders - you cannot use multiple installations in subfolders of another website
It is a limitation of .netcore
You just use different stores - each store can have different themes, languages, products, etc most elements can be individualised on a store basis all using the one database
See https://docs.nopcommerce.com/en/getting-started/advanced-configuration/multi-store.html
3 years ago
Did you also install the ASP.NET Core Module in addition to the Core Runtime?

Reference: https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-3.1

If the Hosting Bundle is installed before IIS, the bundle installation must be repaired. Run the Hosting Bundle installer again after installing IIS.

If the Hosting Bundle is installed after installing the 64-bit (x64) version of .NET Core, SDKs might appear to be missing (No .NET Core SDKs were detected). To resolve the problem, see Troubleshoot and debug ASP.NET Core projects.
3 years ago
Thank you af1racing,

I installed everything on a Windows 10 PC. And it is working fine. This is just a test purpose.
Doesn't matter where it is at the moment.
It will be challenge again, if we have to put on our live server. That one is also Windows 2016 Server.

Thanks again
Zoltan
3 years ago
Hi Yidna,

I think I have figured out the subfolder question.
I am using ngrok to share my local webserver on the internet.
You can try this link https://1ad2a6153c87.ngrok.io/
The pictures are missing. You can make the logo visible if you delete the "http://nop43.com/" and just leave the
<img alt="NOP43" src="/images/thumbs/0000005_en-logo.png">
.
(in browser developer tools - F12)
You cannot use the flags to change website, I think it is kind of issue like the pictures.
You can change between sites if you change the URL from https://1ad2a6153c87.ngrok.io/en/ to
https://1ad2a6153c87.ngrok.io/hu/ This is a separated nopCommerce website with separated database. You can check if you make the logo visible again.

In local circumstances I can change the website by the flag nicely.

If you are interested in how I solved it, I am happy to explain.

Zoltan
3 years ago
Hi Yidna,

I just removed the "http://nop43.com", not need the exercise with it.
@model LogoModel
<a href="@Url.RouteUrl("Homepage")">
    <img title="" alt="@Model.StoreName" src="@Model.LogoPath.ToString().Replace("http://nop43.com","")">
</a>


Zoltan
3 years ago
Today the link is
https://8e1988eb6ae0.ngrok.io
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.