Can i use a same license key for local development and for live server (domain)?

Muhammad Kaleem asked on February 28, 2019 17:55

Can i use a same license key for local development and for live server (domain)? also i want to ask is it possible to develop a kentico 12 mvc site without local development environment (direct in online server)?

Recent Answers


vasu yerramsetti answered on March 1, 2019 05:05 (last edited on March 1, 2019 05:05)

  1. Yes, You can use the same license for both local development as well as production environments. For local development you need add domain name in hosts entry file. Like 127.0.0.1 domain name.

  2. No, You need to develop first MVC website in local environment.

Refer this url for MVC development architecture. https://docs.kentico.com/k12/developing-websites/mvc-development-overview

Hope this helps.

0 votesVote for this answer Mark as a Correct answer

Muhammad Kaleem answered on March 1, 2019 08:14

thanks vasu yerramsetti, my question is that a single license key can be use for local development environment and for the domain where my site will be host?

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on March 1, 2019 09:36

Hi,
If you have a time unlimited license key for some domain, this also covers localhost and 127.0.0.* - so you can use this key for these local domain and IPs without the need of extra key. However, if your local instance is using different IP or some e.g. computer name as the domain, then you need to have a license key for each domain/IP you want to run Kentico on.

0 votesVote for this answer Mark as a Correct answer

vasu yerramsetti answered on March 1, 2019 10:17

"My question is that a single license key can be use for local development environment and for the domain where my site will be host?"

Yes, In case you want to be able to run and debug the site on your local machine with the same domain name as the live site. You will add host entry file.

  • When running the domainname site from local instance the above host file configuration would work.

  • When wanting to access the live version(After deploying the latest code into live) of the site running from your actual hosting environment, please remove the host file entry.

0 votesVote for this answer Mark as a Correct answer

Muhammad Kaleem answered on March 1, 2019 14:34

getting exception "Object reference not set to an instance of an object." while getting current page from an interface as working in dancing goat sample project i have created an interface and declare a property as "LandingPage GetLandingPage(string pageAlias);" and create a parametric constructor and create object of interface in constructor parameter. while getting landingPage it says null reference exception, my pageAlias is not null,

public ActionResult Index(string pageAlias) { var landingPage = mRepository.GetLandingPage(pageAlias); if (landingPage == null) { return HttpNotFound(); } HttpContext.Kentico().PageBuilder().Initialize(landingPage.DocumentID); return View(); }

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.