#  Visual Studio authentication error

**URL:** <https://forum.radzen.com/t/visual-studio-authentication-error/2205>\
**Category:** Blazor Server\
**Created:** [December 14, 2019, 6:19am UTC](https://forum.radzen.com/t/visual-studio-authentication-error/2205 "2019-12-14T06:19:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gonzalo\_Andres\_Zapat](https://forum.radzen.com/letter_avatar_proxy/v4/letter/g/8c91f0/32.png) [@Gonzalo\_Andres\_Zapat](https://forum.radzen.com/u/Gonzalo_Andres_Zapat)\
**Post date:** [December 14, 2019, 6:19am UTC](https://forum.radzen.com/t/visual-studio-authentication-error/2205/1 "2019-12-14T06:19:07Z")

</div>

![Captura](https://forum.radzen.com/uploads/default/original/2X/d/dc2429405e6479e44c8f83ad9b5d70da2e48af11.png)

why does it give me that error (SecurityService.Principal.get returned null.) when running it with Visual Studio?

pd: sorry for the translation on google

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [December 14, 2019, 7:02am UTC](https://forum.radzen.com/t/visual-studio-authentication-error/2205/2 "2019-12-14T07:02:39Z")

</div>

Make sure you are running the application using IIS Express with Debug configuration:

 ![image](https://forum.radzen.com/uploads/default/original/2X/7/7c6a9ce1d6d816c40095d32e076b498570a4cce3.png)  
 ![image](https://forum.radzen.com/uploads/default/original/2X/c/ce92a13f662948debca07a4f25bd2e4520bb8f79.png)  
 ![image](https://forum.radzen.com/uploads/default/original/2X/7/7d7f5bf017c811e91b40b8c867bd6d9043bfb88f.png)

---

<div class="post-metadata">

**Author:** ![Gonzalo\_Andres\_Zapat](https://forum.radzen.com/letter_avatar_proxy/v4/letter/g/8c91f0/32.png) [@Gonzalo\_Andres\_Zapat](https://forum.radzen.com/u/Gonzalo_Andres_Zapat)\
**Post date:** [December 15, 2019, 6:59pm UTC](https://forum.radzen.com/t/visual-studio-authentication-error/2205/3 "2019-12-15T18:59:24Z")

</div>

![Screenshot_Seleccionar%20%C3%A1rea_20191215155459](https://forum.radzen.com/uploads/default/original/2X/2/2cda57de272fcbabeb1c55e5b7cd4b66aa45c74d.png)

That's right but it doesn't work for me.

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [December 16, 2019, 8:59am UTC](https://forum.radzen.com/t/visual-studio-authentication-error/2205/4 "2019-12-16T08:59:32Z")

</div>

This code looks as an older version of the SecurityService component that Radzen generates. Make sure you are using an up-to-date version and SecurityService.cs isn't in Radzen's code generation ignore list.

---

<div class="post-metadata">

**Author:** ![Gonzalo\_Andres\_Zapat](https://forum.radzen.com/letter_avatar_proxy/v4/letter/g/8c91f0/32.png) [@Gonzalo\_Andres\_Zapat](https://forum.radzen.com/u/Gonzalo_Andres_Zapat)\
**Post date:** [December 16, 2019, 1:05pm UTC](https://forum.radzen.com/t/visual-studio-authentication-error/2205/5 "2019-12-16T13:05:12Z")

</div>

OK I am updating and generating the application again. Another fact is that if it works for me by visual studio code.

---

<div class="post-metadata">

**Author:** ![Gonzalo\_Andres\_Zapat](https://forum.radzen.com/letter_avatar_proxy/v4/letter/g/8c91f0/32.png) [@Gonzalo\_Andres\_Zapat](https://forum.radzen.com/u/Gonzalo_Andres_Zapat)\
**Post date:** [December 16, 2019, 9:26pm UTC](https://forum.radzen.com/t/visual-studio-authentication-error/2205/6 "2019-12-16T21:26:31Z")

</div>

Thank you very much, I updated to the latest version and it worked perfect.
