Content
How to validate XML dataset when hexadecimal invalid character arrives
I am processing some xml document. while reading xml value through dataset, I am getting below error. System.Xml.XmlException: ''', hexadecimal value 0x02, is an invalid character. Line 1, position 989.' How to avoid this...? How to validate and…
Opening pdf file from url
Hi I am using this code to open a pdf file from a url; var DocPath = "http://mydomain.com/Docs/MyDoc.PDF"; Launcher.TryOpenAsync(new System.Uri(DocPath)); However I am getting the 'Cannot display PDF (MyDoc.PDF cannot be opened)' error. Tried…
XAML Designer view is not loading
In Visual Studio 2023 Preview Version System.NullReferenceException Object reference not set to an instance of an object. at Microsoft.VisualStudio.DesignTools.SurfaceDesigner.DesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor…
WPF custom animation thread
Hello, I have a small simple WPF application (I am learing by doing). I made some custom drawing on a Canvas declared in XAML, by using code in the corresponding C# file. Now I want to access the canvas from another thread to be able to apply geometric…
How can I display a PDF file in MAUI?
I plan to display a PDF file on my MAUI app. I tried following the answer at this link (https://learn.microsoft.com/en-us/answers/questions/1310387/how-to-view-the-pdf-file-from-maui), and I have used the…
Windows Forms Designer error : Value cannot be null. Parameter name: instance
I am developing an app using C# Windows Forms with framework DevExpress. My IDE are Visual Studio Community 2022. It is all okay. But after I am updating to Version 17.6.0 the window that I develop cannot load design mode with error message…
The type or namespace name 'Notes' could not be found
Hi, How to resolve such issue, to the line below? using Notes.Models;
SSL connection could not be established with .Net HttpClient
Hi, Attempting to make api calls to Yelp Fusion via .Net 3.1 api but receiving the following error: Error Message: The SSL connection could not be established, see inner exception. Source: System.Net.Http Trace: at…
How can I create a Complex View Like this one in WPF DataGridView C#?
I created this Example and Tried to make it as Simple as Possible so that you can Understand Clearly. I have SQL Server Database Named EmployeesDB that contains 4 Tables as following: 1. Employees Table which is the Parent Table in this Example. 2.…
How to customize everyone Tab in TabBar
For example, I want create Shell with TabBar. BG of TabBar must be blue, and BG of Current Tab in TabBar must be orange. How can I do it?
How to fix XA3007: Could not link native shared library: libxamarin-app.so in Xamarin.Android.
I'm trying to run and build my Xamarin.Android project in Visual Studio 2022 to upgrade Target Framework and API Level to 33 Android 13 but got the next error:(how can I solve it ?any idea please)
ASP.Net Core Identity : Credential Obfuscation
I am new to ASP.Net Core Identity and new to Encryption. I followed the article @ https://learn.microsoft.com/en-us/aspnet/core/security/authentication/identity?view=aspnetcore-6.0&tabs=visual-studio I created a new Web App using ASP.NET Core Web App…
Intune App SDK Xamarin Bindings for Android not support after Android 9.0?
Hi Team, We have a Xamarin Forms app in production that supports Intune. We used MAM policies for Intune support, and they are working. Now it's failing on the Android platform because the device ID isn't retrieving to Intune. Therefore, the…
c# aot try-catch not work
I used c# aot to compile lib for go use. An exception occurs in lib and the process crashes. I hope the process doesn't crash and that bugs can be reported. How can I keep the process from crashing. If it crashes, is there any way to find the location of…
l cannot find the Windows.Devices.Sensors Namespace.
l wish to access the Windows Ambient lights sensors on a windows forms app using C# but l cannot find the reference for system device sensors
How do I find the row index on a button click in a gridview?
I have a gridview with a population of students. If there are reject reasons, a button appears in the last column of the gridview. When the button is clicked, I want to make a call to the database to get the reject reason codes. My button click event…
Populate html table from api
In the Visits controller I want to populate the index page from api and not from entity model https://visitsapi.azurewebsites.net/api/Visits I want to populate the html table with Visit Date and Notes patid is being passed from earlier…
MVC CORE Scaffold view to create api postgressql view
How do I scaffold view in MVC CORE , as it is failing due to lack of primary key I am trying to create api using https://learn.microsoft.com/en-us/aspnet/core/tutorials/first-web-api?view=aspnetcore-7.0&tabs=visual-studio CREATE TABLE public.visit…
Problem in the size of the form and controls at the time of execution
I have created a form in the form of image 1, but at the time of execution, the distance between the controls increases and the size of the form also increases. What is the problem? Image 2 is at runtime. I have also used TableLayoutPanel to place the…