# ASP Core MVC SDK

**URL:** <https://community.auth0.com/t/asp-core-mvc-sdk/72781>\
**Category:** Get Help\
**Tags:** aspnet-mvc, aspnet-core\
**Created:** [November 8, 2021, 9:23pm UTC](https://community.auth0.com/t/asp-core-mvc-sdk/72781 "2021-11-08T21:23:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![svenmarien](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/svenmarien/32/11561_2.png) [@svenmarien](https://community.auth0.com/u/svenmarien)\
**Post date:** [November 8, 2021, 9:23pm UTC](https://community.auth0.com/t/asp-core-mvc-sdk/72781/1 "2021-11-08T21:23:12Z")

</div>

I have used the Auth0 SDK for ASP NET Core to add Auth0 authentication to my MVC application.  
(I’ve followed the quickstart here: [Auth0 ASP.NET Core MVC SDK Quickstarts: Login](https://auth0.com/docs/quickstart/webapp/aspnet-core))  
This works fine on my development machine. However after deploying the MVC application as a docker container in the cloud (google appEngine), sometimes the authentication fails.  
This happens during the callback from Auth0 to my application (via the callback uri). That request then suddenly returns a 500 status code. Is there any way I can debug this to find out the reason for the login failure ? (or any alternative ways to implement this authentication)  
Thanks for the help.

- **Which SDK this is regarding:** Auth0.AspNetCore.Authentication
- **SDK Version:** e.g. 1.0
- **Platform Version:**.NET (core) 5
- **Code Snippets/Error Messages/Supporting Details/Screenshots:**  
 ![image](https://global.discourse-cdn.com/auth0/original/3X/d/2/d2b897df3381b514d13abdc06b476f50550b750f.png)

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [November 9, 2021, 2:40pm UTC](https://community.auth0.com/t/asp-core-mvc-sdk/72781/2 "2021-11-09T14:40:10Z")

</div>

Hey there @svenmarien!

Can I ask to raise it in a GitHub issue in the quickstart repo here:

> **[auth0-aspnetcore-mvc-samples/Quickstart/Sample at master ·...](https://github.com/auth0-samples/auth0-aspnetcore-mvc-samples/tree/master/Quickstart/Sample)**
>
> master/Quickstart/Sample

so we can address that with quickstart maintainers? Thank you! Once you have a link to it you can share it here so we can ping them.

---

<div class="post-metadata">

**Author:** ![svenmarien](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/svenmarien/32/11561_2.png) [@svenmarien](https://community.auth0.com/u/svenmarien)\
**Post date:** [November 10, 2021, 11:21am UTC](https://community.auth0.com/t/asp-core-mvc-sdk/72781/3 "2021-11-10T11:21:08Z")

</div>

Hello, the issue has been resolved. It had nothing to do with the Auth0 SDK, but with the fact that in the cloud, applications can run on multiple instances, where each should be capable of handling (authenticating) any of the incoming requests. This was not the case. Only 1 instance could handle the requests from 1 client, the other instances rejected the request. That is why sometimes the authentication failed.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [November 10, 2021, 11:47am UTC](https://community.auth0.com/t/asp-core-mvc-sdk/72781/4 "2021-11-10T11:47:27Z")

</div>

Perfect! Thanks for sharing it with the rest of community!

---

<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:** [November 25, 2021, 11:47am UTC](https://community.auth0.com/t/asp-core-mvc-sdk/72781/5 "2021-11-25T11:47:45Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
