MS-ASPNETCORE-TOKEN error hosting an ASP.NET Core 2.0 Web API on IIS 8 #448
Comments
That's a first. This check is to prevent the application from accepting requests from anywhere but the IIS reverse proxy. It sounds like something is trying to access the app directly via localhost. Is this error for requests you are making or are you only seeing these in your logs? |
Ok I fixed it. |
@AdrienTorris Having a similar problem, only with IIS Express; what was your solution? |
@geirsagberg I just ran into this issue because I disabled the option "Launch browser". This results in an address being printed in the output window, but that address is actually incorrect. You have to use the address that is configured in the "App URL" field. You can get to these settings through Project Properties > Debug |
This is quite an old issue, however I wonder if anyone here knows if I this "validation" can be disabled. |
No it can't. |
I have some trouble hosting an ASP.NET Core 2.0 Web API on IIS 8.
I have this error : fail: Microsoft.AspNetCore.Server.IISIntegration.IISMiddleware[0]
'MS-ASPNETCORE-TOKEN' does not match the expected pairing token 'SOME_GUID_HERE', request rejected.
The text was updated successfully, but these errors were encountered: