skip to Main Content

Javascript – Web API With AJAX problem /Failed to load resource: the server responded with a status of 400 ()

[HttpPost("Login")] public async Task<IActionResult> Login([FromBody] SigninViewModel formData) { MemberCredential membercredential = await db.MemberCredential.FirstOrDefaultAsync(t => t.MemberAccount.Equals(formData.memberAccount)); if (membercredential == null) { var test = new { success = false, message = "無此帳號,請重新輸入。" }; Console.WriteLine(test); return BadRequest(new { success = false, message…

VIEW QUESTION

Asp.net – Need to update .NET Core version for 6.0

I update my.NET Core Version from the previous version to .NET Core Version 6.0 in visual studio 2022 & update the required packages for my project. But in Program.cs I got the below warning. Warning:'ApplicationInsightsWebHostBuilderExtensions.UseApplicationInsights(IWebHostBuilder)' is obsolete: 'This method is…

VIEW QUESTION

How to deserialize SignalR messages from Redis backplane

I need to read published messages by SignalR from Redis backplane. But they have strange format for me. Example: "x92x90x81xa4jsonxc4x83{"type":1,"target":"ReceiveGroupMessage","arguments":[{"senderId":null,"message":"hello","sentAt":"2023-07-22T16:48:08.7001126Z"}]}x1e" Most of content is JSON, but what about start and the end? What is this, what it means and how…

VIEW QUESTION
Back To Top
Search