1

I'm trying to implement HealthChecks to a .net core 3.1 project. The endpoint works fine and returns a valid json.

The problem is when trying to add a ui to the health checks using AspNetCore.Diagnostics.HealthChecks.

It also works fine until I change the settings of the project to windows authentication. When I do that I get the following error:

Unexpected character encountered while parsing value: <. Path '', line 0, position 0.

How can I get the UI to work with windows authentication?

mxmissile
  • 11,464
  • 3
  • 53
  • 79
Naphtali Davies
  • 227
  • 1
  • 9
  • How are you changing your project to windows auth? This error is usually related to a `web.config` slipup. – mxmissile Jan 04 '21 at 17:54
  • Debug tab in the properties of the project in visual studio 2019 – Naphtali Davies Jan 04 '21 at 17:57
  • Did you host your application on IIS or Self-Host? I found that if you start application in Visual Studio with `windows authentication` you need to do the following steps in [disscussion](https://stackoverflow.com/questions/17043140/windows-authentication-doesnt-work-when-i-run-project-from-visual-studio) – DarkSideMoon Jan 05 '21 at 11:07
  • windows authentication works fine, Health checks ui with windows authentication doesn't work – Naphtali Davies Jan 11 '21 at 05:11

0 Answers0