How to create a local tenant for the development environment.

Note

Don't forget to add the new tenant in the Tenant table in common database

Step-by-step guide

1. Find application.config (Solutions/.vs/config/applicationhost.config) - (Solutions/.vs/OneDealer/config/applicationhost.config for 3.x+)
2. Find related record to OneDealer (44321:localhost)
3. Add new alias record (44321:ΧΧΧΧΧ)
4. Add to your host file the new tenant record
5. Normaly you don't need to restart the vs, but if you want to be sure restart it. (You should definitely kill the IIS Expess process from task tray)
6. Run solution by calling the new tenant
7. A certification error appears. Select accept. If continues to appear run the following command in cmd.

Run these commands in cmd:

cd C:\Program Files (x86)\IIS Express

IisExpressAdminCmd.exe setupsslUrl -url:https://[tenant:port]/ -UseSelfSigned


Write a comment…