System.NullReferenceException: 'Object reference not set to an instance of an object.'
Hi guys if i uncomment code below it will error with System.NullReferenceException: 'Object reference not set to an instance of an object.' lvOrders was null . If i comment its ok , i started debug and every thing run ok and i check if i…
RegistryKeyPermissionCheck.ReadWriteSubTree vs boolean Writable
Hello, When using Registry OpenSubKey, I can set either RegistryKeyPermissionCheck.ReadWriteSubTree or Writable boolean property = True. Using MyKey As RegistryKey = Registry.LocalMachine.OpenSubKey("App.Blah\DefaultIcon",…
Exporting and Importing PowerApp Forms for SharePoint Lists Using C# .NET Core
Hi Team, I have a custom PowerApp form for one SharePoint site list. I need to create a new PowerApp form similar to the previous one for a new site list. How can I export the previous list PowerApp and import it to the new list using a C# .NET Core…
How to resolve strange problem with DialogBox containing PictureBox?
I have a Windows Forms application with a number of dialog boxes that are opened when clicking on a menu item. I recently added a new DialogBox called Sierpinski whose OnClick event handler is as follows: // Event handler for selecting the…
What Does ProvisioningTransportHandler Do
When using the Device provisioning service with Azure a client is created with var provClient = ProvisioningDeviceClient.Create(_global_provisioning_endpoint, dpsScope, security, transportHandler); There are 3 choices for transport handler, why would I…
![](https://learn.microsoft.com/en-us/media/profile/user-copilot.png)
Azure Functions - Logging not working correctly in local
I have a simple dotnet-isolated Azure function written in .Net 8 which has 1 Http trigger function. I have another custom database logger which is added to this function to enable database logging. When I am executing the function, none of the Microsoft…
![](https://techprofile.blob.core.windows.net/images/isBby8y0i0CxOcfLjA5gRQ.png?8D930E)
Best Practices for Implementing Search and Other Operations in a Blazor Server App
Hi, I'm a beginner working on a Blazor Server application using Blazor 8. I have used scaffolding to generate basic CRUD operations for a model, and the auto-generated code works well for these operations. I would like to expand my application by adding…
.NET 6 Core Web App Returns web page not found
I am copying over from Stack: I have searched around here and other places to figure out the issue, but I can't find a good solution. I created a new .NET Core Web App targeting .NET6. I created the project without authentication and without Docker…
How to get a particular column from table and display in in label and not in the list in sqlite database in mvvm model
In MVVM model using async connection, I want to retrieve just one column from my async table to a label not to list. all sample I am seeing put all column in the list . I want only one mesa1 column to be displayed in a label.text. public async Task
adding model based controller gives me an error in MVC 5
I am trying to add model based controller, according to a tutorial: https://learn.microsoft.com/en-us/aspnet/mvc/overview/getting-started/introduction/accessing-your-models-data-from-a-controller I tried reinstalling Visual studio, tried deleting…
I am using the MVVM pattern and I want to get the value of the property in the OnPropertyChanged event
I want to get the value of the property in the OnPropertyChanged event. I would rather not use reflection.
How to fix an exception: Could not load file or assembly 'Microsoft.DirectX.AudioVideoPlayback, Version =1.0.2902.0....'
I was writing a C# WinForm which can play videos. I'd add the reference, 'Microsoft.DirectX.AudioVideoPlayback.dll' and compile was ok, but it failed when running with the mentioned exception. I'd searched the question through internet and I found that…
How to troubleshoot the exception, Could not create TLS secure channel?
Hello there, I have this C# code that consumes a SOAP WS and it was working properly for years. However, since recently it started to throw the following exception: The request was aborted: Could not create SSL/TLS secure channel. Basically it imports…
Why is the blazor css isolation not working?
I have an AppLogin.razor component and its css file is AppLogin.razor.css. They are working fine. I have a UserLogin.razor component and its css file is UserLogin.razor.css. The working mechanism is as follows When you login from the AppLogin.razor…
How to read pdf,jpeg,gif document using tesseract OCR with C# asp.net MVC
Currently we have one page and this page contains one file-upload and one submit button, then the user will select a file from file-upload and submit the pdf,jpeg,gif file. Now my requirement is the user will upload pdf,jpeg,gif read the content of the…
Number of references to class variable is incorrect
I created a class level variable in the Program.cs file and use it 27 times within that file. I can do a search for the variable name and make sure spelling isn't an issue. If I go look at the number of times the variable has a reference as stated where…
Visual Studio find text in code editor auto jumps from the current line to another one
Hello, Does someone knows how to fix an annoying behaviour in the code editor of Visual Studio.? I have a .cs file with 10 000 lines of code. I am positioned within the file to see the lines from 920 to 950 I am trying to find a specific text…
I created a SSIS package to fetch data from an API to store in the Data Warehouse. But I am getting the runtime error in my script task. I even used try/catch to figure out the error, but nothing is working.
Additionally, I am using a variable 'Token' which I declared in ReadWriteVariables. The error - at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at…
How to migrate KafkaTrigger from in-process to isolated when using schema registry and AVRO
Microsoft is recommending migrating Function apps from in-process to isolated which I am doing in dotnet8. The in-process KafkaTrigger is returning KafkaEventData<byte[]>. With dotnet-isolated it uses…