Error: mixed mode assembly is built against version v2.0.50727 of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information
I working in a solution containing a VB and a C# project. It runs well from Visual Studio (2013)development environment and as an executable in the development PC. When deployed to another PC I keep getting this error: "mixed mode assembly is built…
Ignoring UIAutomation ArgumentException
I'm getting an exception only in the output window in debug mode of the Element.FindAll: Exception thrown: 'System.ArgumentException' in UIAutomationClientsideProviders.dll The application keeps running and i'm getting the right element. I can't…
Using directive works...and doesn't.
I am using core 3.1 and am writing a WPF application. Visual Studio Community 2019 with all updates applied. All project are using core 3.1 and in the csproj files I have <UseWPF>true</UseWPF> I am also using a nuget package called…
How to enable a textbox and wait for criteria to be entered before delete operation in WPF
I am having trouble with deleting a record from my programme. I have a textbox which is disabled by default by the ReadOnly property which is bound to a boolean property of my ViewModel. The textbox permits the user to enter the ID as criteria for the…
understanding api
Hello everybody This is a very basic and stupid question, but I have been staring at this API for a while now, and I have been checking the dock, I want to get all the YUGIOH cards from a specific Set (https://db.ygoprodeck.com/api-guide/) but…
C# endless list is filled and taken - concept with BlockingCollection<T> Class and xml messages
Hello, system.collections.concurrent.blockingcollection-1 I am looking for an example of C# WPF. The data XML is permanently added to and taken from a list. This is done asynchronously. Several messages XML can be added than taken. …
Increasing Size Problem When Handling WM_NCCALCSIZE
Hello, When I process the WM_NCCALCSIZE message, after minimizing and restoring the window, the window gains some size each time. I know it is caused by the function RestoreBoundsIfNecessary called in the WM_WINDOWPOSCHANGED message handler. And a…
C# insert List<List<object>> in datatable and then to sql
Background story: I want to get data from influxdb and copy this data to SQL table and I want to do this with a datatable. structure of the JSON file: public class Series { public string name { get; set; } public List<string> columns…
Use UTF8Encoding.GetBytes get some error
My netcore version is 2.0.0 I run it as a server,and I get a error when I write my log: Unable to translate Unicode character \uD83C at index 267 to specified code page. however it happen just only once,I find the uD83C mean the signal � first,I…
C# lock - the opportunities
Hello, What is the difference. When do I need my own object? When can I just lock the object? The list? Is that enough if I am in the same application, and an object like a list of two or more functions could be changed? Can someone explain it…
additional logs are treated as error during build of C/C++/CSharp code
anything that prints on visual studio command line is treated as error (such has logs/warnings from integrated thirdpatry tool) how to make visual studio not treat that as error and ignore it to continue to build.
SqlDataAdapter.Fill method is throws SqlException when the BUILTIN/Administrators language in Sql server is British English
Our c# application uses SqlDataAdapter to fetch data from the DB(from an rdlc file) to present in a report. For some reason the SqlDataAdapter.Fill method is throwing below SqlException when the BUILTIN/Administrators language is British English. When it…
Where to put the code?
I following the book "C# Tutorial" (https://video2.skills-academy.com/en-us/dotnet/csharp/tutorials/default-interface-methods-versions). Since the book doesn't mention where the code should be placed, I just paste the code on a new tab…
Count JSON's Result
Hi, I have below json code and I want to know how can I get the count of the json's result, something like: int total_found = data.Count; Here is the code I am currently using: var client = new HttpClient(); client.BaseAddress = new…
NetworkStream.Read() from 2 threads?
so i am making a chatting program and stuff, and the user can create his own group to chat in with people, now, here is the thing, i have a different thread that listens any data from the server. but the thing is, i am worried because if the server…
Migrate to Microsoft JSON
Hi, I want to migrate all my newtonsoft json's to Microsoft's JSON. Can you helo with below sample and how to migrate it please? var client = new HttpClient(); client.BaseAddress = new Uri("https://www.mydomain.com/pin.php"); var content…
How to create a multi-factor authentication (MFA) app?
I want use multi-factor authentication for my apps. However, I don't want to use Microsoft Authenticator app. I want to create an app desktop instead of Microsoft Authenticator to use in the authentication step. So, do have any way for me do it? …
In ASP.NET Application,I can't add a local webmethod to my project preferences
First, I create a default Web Service(ASMX).And It has a default webMethod.just like: public class WebService1 : System.Web.Services.WebService { [WebMethod] public string HelloWorld() { return "Hello…
Error CS1061: 'Target' does not contain a definition for 'transform'
So in the Collector.cs class CS0161 is triggered at the first word "transform", but not the second. Error CS1061 'Target' does not contain a definition for 'transform' and no accessible extension method 'transform' accepting a first argument…
Programmatically get the list of excel files by authenticating from SharePoint URL move that files to Local path in C#?
Authenticate the SharePoint URL with UserName, Password(Without using MFA) using c# code and Get the list of files from that SharePoint URL and move those files to the Local path of the computer?