Remote Desktop Server always showing login screen

125

Solution 1

I had a wrong setting enabled: Session Host Configuration -> Select the connection -> properties -> Credentials tab.

Here you can choose where to always ask for credentials or take the credentials provided by the client.

Solution 2

We have that enabled on our of our machines through a GPO. Take a look at this setting: Windows Components/Remote Desktop Services/Remote Desktop Session Host/Security under Computer Configuration/Administrative Templates and look for this setting: Always prompt for password upon connection Enabled

Share:
125

Related videos on Youtube

H. Pauwelyn
Author by

H. Pauwelyn

Updated on September 18, 2022

Comments

  • H. Pauwelyn
    H. Pauwelyn over 1 year

    I've a problem with sending data form the browser to an API on my server by an ajax request to the server (method is PUT). Here is my JavaScript code:

    var json = JSON.stringify({
        StemType: {
            ID: parseInt(this.dataset.id),
            Type: this.dataset.type,
            GebruikerID: "@(Model.DeTopic.Gebruiker.Id)"
        },
        Punten: parseInt(this.dataset.punten),
        GestemdeGebruikerID: "@(Model.AangemeldeGebruiker)"
    });
    
    $.ajax({
        url: "../Stem/Toevoegen",
        type: "PUT",
        data: json,
        success: function (returnData) {
            // my code
        }
    });
    

    This is the json code in the variable json:

    {
        "StemType": {
            "ID": 24731,
            "Type": "Topic",
            "GebruikerID": "539e6078"
        },
        "Punten": 1,
        "GestemdeGebruikerID": "3aedefab"
    }
    

    And here is the C# code on the server.

    public class StemController : ApiController
    {
        [HttpPost]
        [Authorize]
        [Route("Stem/Toevoegen")]
        public void Toevoegen([FromBody]Stem stem)
        {
            Console.WriteLine(stem.ToString());
        }
    }
    

    Here is the class Stem:

    public class Stem
    {
        public StemType StemType { get; set; }
        public int Punten { get; set; }
        public string GestemdeGebruikerID { get; set; }
    }
    
    public class StemType
    {
        public int ID { get; set; }
        public Type Type { get; set; }
        public string GebruikerID { get; set; }
    }
    

    But if I debug my code on the server, I've got this:

    StemType value is null, punten value is zero, GestemdeGerbuikerID is also null

    Can anyone help me?

    • Admin
      Admin over 8 years
      Your stringifying the object so include the contentType: "application/json", option
    • Camo
      Camo over 8 years
      Or just don't stringify it.
  • Ion Todirel
    Ion Todirel almost 11 years
    I'm running Windows 7, how does that actually look like?
  • Ryan Babchishin
    Ryan Babchishin over 8 years
    He was asking how to provide credentials before connecting via RDP and why one server was different than the others and why it was prompting for authentication a second time.