How to fix error CS0246 (AxMSInkAuTLib) missing
After copying all of the Winforms from 1 project to another, I was not able to compile the 2nd project. Getting error CS0246 for AxMSInkAutLib.AxInkPicture (see below for the detailed error description). I think I am missing a Reference, but am unable to…
How to maintain Authentication State with Blazor 8 Server Interactive?
I have a setup a full example project here with a kludge where I have to manually call it to grab the state on every page. The problem is if the user refreshes the page then it will redirect to login because the Authorize will hit before the…
How can I use the Android Exoplayer to play videos?
Currently I use the Xamarin MediaManager to play videos: https://github.com/Baseflow/XamarinMediaManager Is it possible to use the Android Exoplayer instead to play videos? I want to find out if the black screen that appears before a video is played will…
System.InvalidCastException: Unable to cast object of type 'System.String' to type 'System.Int32'.
public async Task UpdateEmployeeAsync(int id, Employee model) { var employeee = await _appDbContext.Employees.FindAsync(id); if (employeee == null) { throw new Exception("Employee not found"); } employeee.Name =…
How To create new contact in .net MAUI
Hi, I want to add new contact in .NET maui. Can you please help me?
ASP.NET MVC Core default layout page not loading if I navigate to any razor page in Identity area e.g login, register etc
I am currently working on an ** MVC Core project using .Net8 preview**. Everything on the project works fine except the pages included after scaffolding identity. i.e Login, Register etc. When I navigate to login\Register page for example, the default…
Why are GestureType.Tap and afterwards GestureType.DoubleTap executed when I make a doubletap?
In my game the player needs to tap on the iOS/Android display screen to make a gameplay action. If the player taps once then I want to make a gameplay action. But when the player makes a doubletap then I want to make a different gameplay action. The…
How long has the player tapped on the iOS/Android display screen? How can I measure the time?
In my game the player needs to tap on the iOS/Android display screen to make a gameplay action. I want to find out how long the player pressed his finger against the display screen. For example, if the player pressed his finger 1 second on the screen…
Deploying from GitHub Actions suddenly stopped working - now my webApp is "running and waiting for yout content"
I have a long running ASP.NET Core 8 web app that have been running for 6 months without problems. Now it is not working the temp url shows the message: "Your web app is running and waiting for your content" My GitHub action builds and deploys…
How to put Ads Banner in Windows App via NET MAUI?
Hi all, have a good day! I'm using NET MAUI to build app. How to put ads banner in Windows app? Thank you!.
Item Template Not Using Data Context
Here is code for WPF window (omitting irrelevant…
Mysterious XAML “The name "X" does not exist in the namespace” error won't go away
I'm working on a XAML/C# project. I have a custom abstract class derived from `System.Windows.Controls.UserControl`: `PageBase`. Visual Studio 2022 keeps telling me it can't find `PageBase` in the namespace. The…
System.Data.SqlClient conflict between versions
In a Dll project in C# .Net Framework 4.8 with the latest version of VS I have installed the Nuget package System.Data.SqlClient 4.8.6 but when checking it in the solution explorer, "References", "Properties" appears as 4.6.1.6 and…
How to display and hide drop down lists based on condition drop down list ?
I work on blazor server side I have drop down list condition have 3 option server and database and owner . every option from these three options have one drop down list only so server have drop down list database have drop down list owner have drop down…
Pagination not working properly in ASP.NET Core 2.1 app
Hi guys, I had implemented pagination using IPagedList with model which was successful for my ads classifieds website. This time I needed to apply with ViewModel as several models needed in this view and used StaticPagedList as it wasn't working with…
Item Template Not Using Data Context
Here is code for WPF window (omitting irrelevant…
alternative method for database connection in .net core web api
In .NET Core Web API, linking to and managing an existing database is more complex than in .NET Framework. I need a way to add existing tables to models and a simple method to connect, update, and alter tables. Any straightforward approach?
MAUI .NET 8 iOS - Method not found: SkiaSharp.SKMatrix SkiaSharp.SKMatrix.MakeTranslation(single,single)
I have created a new MAUI .NET 8 project and migrated the Xamarin forms project code. I am facing an exception as below when loading the SVG image, Unhandled Exception: System.MissingMethodException: Method not found: SkiaSharp.SKMatrix…
Troubleshooting Issues with .NET Project Packages
I am encountering errors with all my packages in my .NET project, even after trying to restore NuGet and clearing the cache. Can anyone provide guidance on troubleshooting and resolving this issue? Thank you.