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…
Blazor hangs when debugging with authentication
Am I the only one who experience that 9 of 10 times Blazor hangs with this message when I use authentication, and after I have logged in? Any hints on how to get past this issue?
How to fix Expression: m_pAccessor != 0 Debug Assertion Failed!
Debug Assertion Failed! Program: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll File: C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.39.33519\atlmfc\include\atldbcli.h Line: 5198 Expression: m_pAccessor != 0 For…
How to register device on Entra ID programatically
Hi , I want to register my local device to Entra ID using c#. I have gone through the Microsoft Graph API documentation as well but didn't get any information related to this topic please help me.
getting error- The request is invalid. Details: Cannot dynamically create an instance of type 'Microsoft.Azure.Search.DataIdentity'. Reason: Cannot create an abstract class.
I am trying to create a custom web api skillset to connect to document intelligence directly. Created a skillset definition but it throws below error - The request is invalid. Details: Cannot dynamically create an instance of type…
System.Exception: 'Days between ViewStart and ViewEnd should be between 1 and MaximumViewDays' in c#
I want to select multiple days in my monthView1, but the error message say."System.Exception: 'Days between ViewStart and ViewEnd should be between 1 and MaximumViewDays'" and here my code. private void monthView1_SelectionChanged(object…
System.ArgumentException: Value does not fall within the expected range.
I am making an Excel Addin in C# in Visual Studio. I have already made another simpler Addin and installed it with no problem. But on this one I am getting the following error: “Name: ExcelAddin_RSMeansV.2 From: file:///C:/Users/jstebbins/Desktop/Excel…
unusual loading of page
Link where event occurred: https://learn.microsoft.com/en-gb/learn/modules/csharp-write-first/2-exercise-hello-world Line due to which event occurred: /Console.WriteLine("Hello World!"); Suggestion: Editor should show a error…
NullReferenceException: Object reference not set to an instance of an object.
I'm using ASP.net mvc. I think there's something wrong with my controller and view. I can't move on with my crud since i'm stuck at the index action. Some help from anyone would be very much appreciated!
Nuget package creation and file removal on uninstall
Hi, I am creating a package for use in dotnet core web applications. Specifically Umbraco 9 CMS. As of recent, it would appear that Powershell scripts are no longer used to populate and remove files on Nuget package installation/ uninstallation with…
XmlDocument to XmlReader?
Hello I used to load an XML file into an XDocument and keep it intact in memory, then pass it to another object when needed, since it only accepts XmlReader, I was using XDocument.CreateReader. Now am moving from XDocument to XmlDocument, just no idea…
Help Needed: Errors in Initial .NET MAUI Project
I have created my first .NET MAUI project several times, but to my surprise, errors appear without changing any line of code. Although the application runs fine, the lines remain underlined. I have captured a screenshot so you can see the issue and guide…
I dont understand why OnPropertyChanged is not firing in neither my Model or ViewModel
I am using the MVVM Community Tollkit and below is the generated code. I also included my Model code and the OnPropertyChanged Method. I put a breakpoint in the generated code on the property Spousessn and it was fired and OnPropertyChanged in the…
Saving and reading data in Binary Format
Hello I am developing a Firebase supported project. What I want to do is to take the current data and keep it in a file in Binary format so that it cannot be read easily. I thought of such a method because the data does not contain very sensitive data. I…
How to detect a device
Hi, I'm currently working on .net core web API project . There is a moment that I can't figure out. I had to detect the device which user used when signed in. I used "user-agent" first but this only says if its smartphone, Desktop etc. And only…
The data specified for the media type is invalid inconsistent or not supported by this object
Hi, I have an windows form application which is recording video by using Media Capture. This app is taking hundreds of record in a day but in a few days getting(once in 500-550 record) an error which below; "The data specified for the media type is…