# Getting Could not Create Type 'ASP.LoginCallback' error with ASP.NET SDK

**URL:** <https://community.auth0.com/t/getting-could-not-create-type-asp-logincallback-error-with-asp-net-sdk/6958>\
**Category:** Get Help\
**Tags:** error, aspnet\
**Created:** [June 7, 2017, 11:30pm UTC](https://community.auth0.com/t/getting-could-not-create-type-asp-logincallback-error-with-asp-net-sdk/6958 "2017-06-07T23:30:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nick2](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@nick2](https://community.auth0.com/u/nick2)\
**Post date:** [June 7, 2017, 11:30pm UTC](https://community.auth0.com/t/getting-could-not-create-type-asp-logincallback-error-with-asp-net-sdk/6958/1 "2017-06-07T23:30:03Z")

</div>

After attempting to integrate our ASP .NET C# application with Auth0 and after installing the package and taking care of all of the steps I am left with a compile error of:

```
Could not create type 'ASP.LoginCallback'

```

Any Idea what could be wrong here?

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [June 9, 2017, 9:34pm UTC](https://community.auth0.com/t/getting-could-not-create-type-asp-logincallback-error-with-asp-net-sdk/6958/2 "2017-06-09T21:34:54Z")

</div>

I’m assuming you followed this [quickstart](https://auth0.com/docs/quickstart/webapp/aspnet/01-login) which as part of the installation of the `Auth0-ASPNET` package creates a `LoginCallback.ashx` handler with associated code behind in your project.

The package creates the class by default under the root namespace of your project and also points the handler to that class (also within the same root namespace). Given that at install time both handler `*.ashx` and code-behind `*.cs` assume the same namespace I could not reproduce this error.

However, if for example you change the namespace on the code-behind file but fail to update the handler definition file then you’ll indeed get an error similar to the one you shown. You should ensure that both the code-behind and handler definition file refer to the same namespace.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:54am UTC](https://community.auth0.com/t/getting-could-not-create-type-asp-logincallback-error-with-asp-net-sdk/6958/3 "2018-03-02T05:54:28Z")

</div>


