Direct access to object properties from another window without creating a new window
Hi First and foremost, I apologize for my grammatical errors; my first language is Persian (Iran). In my project (WPF) i have many windows. in window form i have no problem to access object property from Another window With following codes for…
Deserialize json which has a string and complex object
Hi, I am trying to deserialize a json string and write its content into a datatable. I have the following json string with either a string or custom object and not sure how to parse between the string and custom object to write data to the datatable.…
An unhandled exception of type 'Microsoft.UpdateServices.Administration.WsusInvalidServerException' occurred in Microsoft.UpdateServices.Administration.dll
An unhandled exception of type 'Microsoft.UpdateServices.Administration.WsusInvalidServerException' occurred in Microsoft.UpdateServices.Administration.dll
C# remove all new line and blank line
Example of Text file: test1 Test2 Test3 Test4 Expectation: I wanted to first remove all double or more blank line and replace them with a single blank line then register the number shown on the last line as a variable. Test1 Test2 Test3…
What Is The Optimal Solution When There Is Incompatibility Between Google Chrome Driver & Google Chrome Browser
Error - " System.InvalidOperationException : session not created: This version of ChromeDriver only supports Chrome version 85 (SessionNotCreated)" Version Of Google Chrome I Am Using: Version 87.0.4280.66 (Official Build) (64-bit) …
Read the content of zip folder
Hi All, I have a zipped folder called 'Uploadfiles.zp'. This folder contains folders like: 5.6/Proj , 5.6/PDS, 13/Proj, 13/PDS I have to read Uploadfiles.zp folder and check if the folder structure is in the expected format or not. What is the…
UDP Socket wont receive data on android
I have an issue with UdpClient.Receive(ref IPEndpoint) on android devices: for some reason the same code works on PC, but android devices (or emulators) have a 50% chance to get stuck on Receive() method. It doesn't depend on networking type (wired,…
Simple Question : How to retract value from JSON data??
Hi there, I have a JSON sample data as the shown below: {"i:0#.w|my\jeffw":{"DateTime":"/Date(1604906464292)/", "LoginName":"SHAREPOINT\system"}, …
HTTP Error 500.30 - ANCM In-Process Start Failure
Hello everyone, I am struggling with this problem for almost 5 days now. Getting this error as soon as I launch my web api solution in Google Chrome. The solution is built with .NET Core 3.1 . Event Log shows: Application ... with physical…
windows 2016 steps into future for half hour at 23:00 CET and then returns to normal
I have asp.net core 3.1 program with a very basic async socket receiver and a blazor webassembly frontend. Every half an hour a machine sends a report (+/- 1000 bytes) to it, which is then stored to sqlserver and to a file on disk. Al thru the day this…
How to get info from xaml file in C#
Hello. In my C# program I want to know how to read this file: <!-- Info.xaml --> <Credentials Username="UsernameHere" Password="PasswordHere"/> and get the Username's value and put it in a string, how can I do this?
Use Microsoft CNG library to load key from KSP and use it to initiate two-way-ssl mutual authentication
I have to connect to a backend service that is secured using two way ssl. The certificate I use for this handshake resides in an HSM. I've installed the HSM providers KSP software. I'm using Microsoft's CNG library to lookup certificate generated in…
Xamarin.Forms: UWP UI Binding errors that aren't real errors?
In my Xamarin.Forms app every ListView in UWP is rather slow in creating the cells, or entries, or rows, or whatever they're called. On Android and iOS the ListView scrolls as fast as you can make it go, but on UWP after a short fast scroll the list…
Can we use script-src 'self' 'unsafe-inline' in the content security policy of the .net application?
In our asp.net SharePoint application, we have used script-src 'self' 'unsafe-inline' in the content security policy as sharepoint is generating some inline javascript code dynamically at runtime. But CSP validator showed red flag for using…
How do we find very first closest value from the list of values linq C#
I have the list of values. like below. I am struggling to get very first closest values from the list. How do we get this...? For example, i have the list below. list<double> data1 = {1000, 2000, 3000, 4000, 100, 350, 600, 800, 200, 300, 400,…
c# remote development from windows visual studio like c++ linux console?
Is there a way in existing VS2019 to have a dotnet c# project be compiled and debugged on a linux host from a project template in Windows like the template for " c++ linux console"? Project on windows, sources and build copied to linux…
Under what circumstances will Utf8JsonReader.HasValueSequence be true?
I have begun working with raw value spans and sequences inside my JSON converters. I noticed that Utf8JsonReader provides a property to check to see whether the value is a sequence: HasValueSequence. When will this be set to true? I noticed that…
Console Aplication (C#) - Memory Leak
I have a program "Console Aplication" install in Windows that execute every time. Initial consume 32 MB, but grow infinitely. My program execute connection with DB oracle through provider "Oracle.ManagedDataAccess". To Diagnostics…
What are the recommended practices for cross-platform library development with C# 9?
What features of C# 9 could be safely used: in Xamarin (Android/iOS), in "the legacy" .NET Framework (4.8+), in "the obsoleted" .NET Standard 2.0/2.1? Unfortunately, .NET 5 is not "the only one united…
How do find min value based on parameter from excel range column by column using C#
I have below data in my excel table. i am passing parameter value "9050". Here the value should search from column by column of every cell values. for example, Input value "9050", it will come near by column of…