Remote Desktop Server always showing login screen
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
Related videos on Youtube
H. Pauwelyn
Updated on September 18, 2022Comments
-
H. Pauwelyn over 1 year
I've a problem with sending data form the browser to an
API
on my server by anajax
request to the server (method isPUT
). Here is myJavaScript
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:
Can anyone help me?
-
Admin over 8 yearsYour stringifying the object so include the
contentType: "application/json",
option -
Camo over 8 yearsOr just don't stringify it.
-
-
Ion Todirel almost 11 yearsI'm running Windows 7, how does that actually look like?
-
Ryan Babchishin over 8 yearsHe 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.