locked
JetBrains rider run issue - not present in Visual Studio 2017 RRS feed

  • Question

  • User1352447851 posted

    I have been developing my asp.net core project in Visual Studio 2017 using both IIS Express and the local IIS server. I tried to run this in Rider with (what should be) the same configuration, but I am getting the error:

    Unable to cast object of type 'System.Security.Claims.ClaimsIdentity' to type 'System.Security.Principal.WindowsIdentity'.

    var wi = (WindowsIdentity)context.User.Identity;

    I do not get this when launching it with VS2017. Does anyone know what could cause it? I don't want it to become and issue later on.

    In the code I am using:

    using Microsoft.AspNetCore.Authorization;
    using
    System;
    using
    System.Collections.Generic;
    using
    System.Security.Principal;
    using
    System.Threading.Tasks
    ;

    To create an AuthorizationHandler

    Wednesday, February 27, 2019 3:20 PM

Answers

  • User1352447851 posted

    This was the response:

    Thanks for contacting us. Unfortunately, Rider 2018.3 cannot run ASP.NET Core applications on IIS/IIS Express. However, Rider 2019.1 will have support for running such applications on IIS Express, see RIDER-11638. We are planning to open EAP for Rider 2019.1 this month. The stable release is planned for April-May.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, March 4, 2019 12:30 PM

All replies