# Create Login and Registration in Your ASP.NET Core MVC App

**URL:** <https://devforum.okta.com/t/create-login-and-registration-in-your-asp-net-core-mvc-app/16991>\
**Category:** Developer Blog Comments\
**Created:** [February 5, 2019, 5:29pm UTC](https://devforum.okta.com/t/create-login-and-registration-in-your-asp-net-core-mvc-app/16991 "2019-02-05T17:29:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [February 5, 2019, 5:29pm UTC](https://devforum.okta.com/t/create-login-and-registration-in-your-asp-net-core-mvc-app/16991/1 "2019-02-05T17:29:34Z")

</div>

[Create Login and Registration in Your ASP.NET Core MVC App](https://developer.okta.com/blog/2019/02/05/login-registration-aspnet-core-mvc)

This tutorial walks you through setting up login and registration with [ASP.NET](http://ASP.NET) Core MVC and Okta.

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [April 3, 2019, 2:51pm UTC](https://devforum.okta.com/t/create-login-and-registration-in-your-asp-net-core-mvc-app/16991/2 "2019-04-03T14:51:06Z")

</div>

**Madhav Phuyel**

Hello Chris, I followed you article, however, when i click in login page ([https://localhost:44366/Account/Login](https://localhost:44366/Account/Login)). I go an error saying "InvalidOperationException: Unable to resolve service for type ‘Okta.Sdk.IOktaClient’ while attempting to activate ‘CrudMVCCodeFirst.Controllers.AccountController’."

As you see here my URL port is “44366” so i did changed in Okta’s dashboard setting like so,  
 [https://uploads.disquscdn.c…](https://uploads.disquscdn.com/images/c2e196878e896307167f7e9403480fc70ab94b7e41d0298f98da8ff31a4e5ced.png "https://uploads.disquscdn.com/images/c2e196878e896307167f7e9403480fc70ab94b7e41d0298f98da8ff31a4e5ced.png")

Do you know what’s going on here?

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [October 20, 2019, 5:17am UTC](https://devforum.okta.com/t/create-login-and-registration-in-your-asp-net-core-mvc-app/16991/3 "2019-10-20T05:17:20Z")

</div>

**Dan McNulty**

This is an issue with the registration of your IOktaClient mate. ‘Registration’ as in the dependency injection. Assuming you are using core you need to make sure you’ve added the bit he suggests into startup.cs
