Use of git with Visual Studio 2022 and C#
Maybe someone can help? I've create a little .Net core C# desktop project in VS2022 and save it to git. When I then clone this repo onto another PC, the designer has disappeared and I get errors when I try to build (project.assets.json is missing). For…
How to get free data hosting for C# desktop application?
Hello I want to design an application with multiple users in my C# wpf project. In short, with the application, users will be able to send and receive some non-large-scale data. Since I don't have the budget, I want to do this for free. I thought of…
Reflection
Hello, I try to inject this service in serviceprovider with two parameters. At the end, it will be generic but for this exemple, I put the parameters. Could you help me ? List<ConstructorInfo> ctors; Type[] genericArguments =…
How to add a different CSS to a razor page in Blazor WASM?
I am working on a Blazor WASM e-commerce application using the .NET 6 old version with a default template. I want to add a new razor page with a different look while keeping the old ones in the project. How can I achieve this? Specifically, I want to add…
Getting error while search name in the textbox using bootstrap in ASP.NET C#
I am using gridview for reports and it contains more than 10000 (ten thousands) records. i am using one textbox for searching and multiple column values such as (CustNo,CustName,Department,MaterialName,Salary and DateofJoining) All search has to be done…
convert letters increase by step
Hello, Is there another simple solution if I want to specify the step size? Example + 4 or + 7 Step 4, I will do this. Convert letters increase by step string ret =…
The sign-in name or password does not match one in the Microsoft account system
This is my console app project. Previously it was running perfectly but last week it suddenly cannot run. When I try locally, it shows me this error: "The sign-in name or password does not match one in the Microsoft account system". What I…
How to fix mediaInitializationFailure: Media platform failed to initialize and 'Could not find a matching certificate for thumbprint'
Hi I am trying to run https://github.com/microsoftgraph/microsoft-graph-comms-samples/tree/master/Samples/PublicSamples/EchoBot locally using ngrok free account. Since we need to tunnel both HTTP and TCP ports so used cloudfare. Using cloudfare created…
Object cannot be cast from DBNull to other types.
Good day, I want to check my DB connection and here's my code. private void Button2_Click(object sender, EventArgs e) { string mysqlcon =…
Unable to get access token for microsoft store service
Hi, I am building an app for the Microsoft Store. I require the app's server to connect to the microsoft store to validate purchases. I'm using the Microsoft.StoreServices API provided at: https://github.com/microsoft/Microsoft-Store-Services Basically…
Varchar() datatype and C# SqlDataReader truncates string
When I try and read into my C# program using an SQLDataReader, the Discrepency field above defined above as varchar(512) gets truncated to 255 characters. I verified that the ColumnSize is 512 with the following C# code: SqlDataReader = dr2 =…
My ViewModel Constructor is executed before my property is set. So I am having to put my method ( RefreshData )that I want to execute in the Constructor in the ApplyQueryAttributes method.
My ViewModel Constructor is executed before my property is set Id = myPackage.packageId; . So I am having to put my method ( RefreshData ) that I want to execute in the Constructor in the ApplyQueryAttributes method. Otherwise, My parameter value is…
How to disconnect a BLE device after successful connection
I have successfully connected to BLE device by using BluetoothLEDevice.FromIdAsync(deviceInfo.Id) and bluetoothLeDevice.GetGattServicesAsync(BluetoothCacheMode.Cached) API's in unpaired mode over Windows 10 with .NET Framework 4.7.2 but I was…
Control Flow guard
Hello Team, Control flow guard is only for visual c++ based application or for all c++ compilers or it will works for all like c#, .net based application.
What is the best way to show the loader while uploading the file in gridview
I am using gridview for displaying and inserting new records. i'm using loader wherever it is required in the gridview. it is working fine. i'm trying to use animation loader for specific upload column in gridview. will it possible to show the loader…
VirtualizingStackPanel Scrollviewer height
I am working a uwp app where i used ListView with VirtualizingStackPanel . In my case i am trying create an alternatives for CVS ListView so each item has a ItemsControl (choosen this because it consume less memory and ScrollViewer). Now if i want…
async Task method with await Task.Run make application crash shutdown without any errors/exceptions. how to solve?
when running the application, it starts doing the code in the method but then after few seconds the application crash shutdown without showing any errors or exceptions and it's never reaching any of the catch places. maybe there is a deadlock? not…
Task Timeout Not Asign IsCompletedSuccessfully
In the url: https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task.delay?view=net-8.0 say "After the specified time delay, the task is completed in the RanToCompletion state". Once "Timeout = true", I checked that…
SAS Token not working for FileUpload IoTHub
I'm trying to replicate this https://github.com/Azure/azure-iot-sdk-csharp/blob/main/iothub/device/samples/getting%20started/FileUploadSample/FileUploadSample.cs example to upload a file. This part works: `// Note: GetFileUploadSasUriAsync and…
Azure.Search.Documents vector search successful, but response is null
I am currently performing vector search according to the code guide that can be found here:…