|
My untouched React-Redux/ASPCore project went from working fine to getting this error.
I upgraded all core components to 3.1.16 but still have the issue.
Two temporary solutions work:
1. It works if I disable SSL, but of course that is not a solution. , but want to stay with core so can not update to .NET 5 as one solution suggested.
2. If i uninstall KB5003637, the error goes away and everything works fine. However, I have to keep uninstalling the security patch after other updates and it is annoying.
Hopefully someone has found a better solution.
I have read that upgrading to .NET 5 solves it, but I need to stay on Core.
|
|
|
|
|
.NET 5 is .NET core. It's not the .NET Framework, rather it is the combination of .NET Core and the .NET framework into one single entity.
|
|
|
|
|
Thank you. for some reason i thought going to 5 eliminated the cross platform support. i now see this is newest combined version as you say and continues the cross platform support.
After I updated to 5.0 the issue with KB5003637 goes away for me.
|
|
|
|
|
|
I have an ASP Net Core Web app which uses Razor pages, on one of the pages I use a datepicker as part of a data entry form, I have a problem where the date I select is somehow changing to the day before by the time it hits the database ( Postgresql ). In my controller action the date value received is correct - I'm using npgsql as the data provider - any idea what could be causing this ?
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
I have seen this before and I don't recall where it was. But what is likely happening is the value 2021-06-11 00:00:00 is getting passed but somewhere it is then getting translated into your time zone, which I am guessing is -x from UTC. And so then it becomes, for example, 2021-06-10 20:00:00, if you were on the East Coast in the US.
You'll have to keep tracking it until you find where it changes.
|
|
|
|
|
Hi and thanks for replying. So you have a better understanding I list out below what is happening..
The data is input and posted using a Razor page.
The Web app Controller action issues a TryUpdateModelAsync which populates an instance of my class with the form data - at this point the date in the class is correct.
I then pass my class object to an API running on my local LAN which pushes the data to a database , at this point the date in the class object has changed.
So on it's journey to the API it is somehow changing the date.
Both the Web app and the API are hosted on a Linux box.
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
pkfox wrote: So on it's journey to the API it is somehow changing the date. Are you using a JSON serializer? That can do it.
|
|
|
|
|
Yes the API uses the NewtonSoft serialiser / deserialiser - weird that the date is always a day out. But as I said in another reply - I called the API from Postman ( hard coded JSON in the body ) and it worked as expected.
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
pkfox wrote: I called the API from Postman ( hard coded JSON in the body ) and it worked as expected. Precisely. JSON sees 2021-06-14 00:00:00 AS UTC time and converts it for you. I don't remember how to get around it but if you google it, you should find it.
|
|
|
|
|
I use RestSharp in my API which I believe uses a JsonSerialiser / JsonDeserialiser - do you think this is where the problem lies ?
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
I do. I think the Json serializer is expecting the datetime to be in UTC format.
|
|
|
|
|
I think I've got things working. After your suggestion that it could be a serializing problem I googled and found a post written by one of the RestSharp developers regarding the use of custom serializers, he gave some sample code which I duly cut'n pasted and it seems to have done the trick. Thanks very much for pointing me in the right direction.
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
No problem. Glad you got it working.
|
|
|
|
|
While I have your ear - how can I set the datepicker to the date value in my model when I'm editing - I've tried the code below but it just shows a text box with the string dd-mm-yyy in until I click in it and then it pops up
@Html.TextBoxFor(m => m.DateUsed, new { @class = "datepicker", Type = "date", Value = Model.DateUsed }) -- DateUsed is my DateTime property
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
|
Is it a "Timestamp"?
Quote: Note: The SQL standard requires that writing just timestamp be equivalent to timestamp without time zone, and PostgreSQL honors that behavior. (Releases prior to 7.3 treated it as timestamp with time zone.) timestamptz is accepted as an abbreviation for timestamp with time zone; this is a PostgreSQL extension.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
The table column is of type date
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
"date" has a "one day resolution". Perhaps a (internal) rounding thing going from one representation to another.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
Hi Gerry I just called my API using postman and everything worked as expected so it's not the database.
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
Good day,
I have the following problem:
I want to launch a specific application through a program I developed (C# .NET/C++). Unfortunately, this program cannot be started through the usual ways like Process.Start, Shell, etc, because it refuses to be started automatically. I already tried to start a .lnk file or to do the whole thing via cmd, unfortunately the program always knows that it was not started by hand. I also tried to open it via the web browser, but even there it recognizes the difference between a manual and automated start.
I am now looking for a way to start a .lnk file (this contains the parameters), but just as if I double-click on it, so that this program does not realize that it was started automatically.
I don't want to use something like AutoHotkey because I want the program to work the same on every computer. Is there any way to disguise the call so that the program doesn't notice.
I would be very grateful for any help.
Programming language and way doesn't matter to me in principle, as long as I can integrate it into my C#/C++ project by a call.
|
|
|
|
|
|
No idea why this is so easy. But I really have to thank you! I have already tried it with start, but the idea to use explorer I would never have come.
It works now! Thank you very much!
|
|
|
|
|
I've spent many years with WinForms and have concluded learning UWP is long overdue. I'm doing OK so far, but the one thing I'm having trouble finding info about is the UI Element properties. Namely, the Brush, Layout, Appearance, Common, Automation, etc. properties you see in one form or another for all UI elements in the design view.
I realize this is not a very specific question and I did search, but found nothing.
What I'm looking for is some documentation/link describing in detail all of these properties and what they have in common to the UI Elements. Understanding is key to better programming.
Thanks for any recommendations.
Regards,
R. Wey
|
|
|
|
|
For what it's worth, you've identified the most obscure properties; even "Brush" shows up as Foreground, Background and Fill (and not as a "brush" per se) in "UI Elements".
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|