25,042 questions with .NET-related tags

Sort by: Updated
1 answer

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…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,874 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,889 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,657 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,002 questions
asked 2024-07-28T01:33:46.62+00:00
Giacomo Raucci 321 Reputation points
commented 2024-07-28T22:25:45.3433333+00:00
RLWA32 43,381 Reputation points
1 answer

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…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,500 questions
asked 2024-07-25T14:02:27.5666667+00:00
Greg Finzer 0 Reputation points
commented 2024-07-28T21:39:18.26+00:00
Greg Finzer 0 Reputation points
1 answer

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…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,234 questions
asked 2024-07-17T12:28:29.27+00:00
Kim Strasser 876 Reputation points
commented 2024-07-28T20:04:02.27+00:00
Kim Strasser 876 Reputation points
1 answer

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 =…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,406 questions
asked 2024-07-28T08:01:00.3233333+00:00
hammad tahir 0 Reputation points
answered 2024-07-28T18:28:39.0133333+00:00
Bruce (SqlWork.com) 61,731 Reputation points
0 answers

How To create new contact in .net MAUI

Hi, I want to add new contact in .NET maui. Can you please help me?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,234 questions
asked 2024-07-28T18:21:37.05+00:00
Pearl 21 Reputation points
2 answers

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…

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
661 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,651 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,406 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,419 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,657 questions
asked 2023-05-04T07:41:45.3766667+00:00
sama clif 5 Reputation points
commented 2024-07-28T15:56:35.02+00:00
Darpan Lunagariya 0 Reputation points
0 answers

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…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,889 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,234 questions
asked 2024-07-25T13:06:09.25+00:00
Kim Strasser 876 Reputation points
commented 2024-07-28T12:45:22.83+00:00
Kim Strasser 876 Reputation points
0 answers

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…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,889 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,234 questions
asked 2024-07-22T14:08:15.7066667+00:00
Kim Strasser 876 Reputation points
commented 2024-07-28T12:39:31.9333333+00:00
Kim Strasser 876 Reputation points
0 answers

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,406 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,411 questions
asked 2024-07-28T10:22:37.7333333+00:00
BrianDev - Median DK 0 Reputation points
0 answers

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!.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,234 questions
Microsoft Advertising
Microsoft Advertising
A platform for Microsoft's advertising efforts designed to manage all advertising and reporting for partner advertisers. Previously known as Bing Ads and adCenter.
63 questions
asked 2024-07-28T08:09:57.4133333+00:00
Liem Nguyen 51 Reputation points
1 answer

Item Template Not Using Data Context

Here is code for WPF window (omitting irrelevant…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,712 questions
asked 2024-07-27T22:51:49.1966667+00:00
RogerSchlueter-7899 1,256 Reputation points
answered 2024-07-28T04:56:04.5766667+00:00
Viorel 114.8K Reputation points
1 answer

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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,651 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,657 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
791 questions
asked 2024-07-28T01:51:58.1333333+00:00
Will Pittenger 281 Reputation points
answered 2024-07-28T02:24:41.22+00:00
Michael Taylor 51,426 Reputation points
2 answers One of the answers was accepted by the question author.

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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,651 questions
asked 2024-05-09T04:28:33.6166667+00:00
zequion 291 Reputation points
edited an answer 2024-07-28T01:34:14.82+00:00
zequion 291 Reputation points
3 answers One of the answers was accepted by the question author.

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,406 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,500 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,657 questions
asked 2023-03-29T18:05:28.51+00:00
Ahmed Salah Abed Elaziz 390 Reputation points
answered 2024-07-28T01:24:31.73+00:00
Jin Kim 0 Reputation points
2 answers

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,406 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,419 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,657 questions
asked 2024-07-27T15:06:16.6233333+00:00
Farid GN 1 Reputation point
answered 2024-07-28T00:57:37.21+00:00
SurferOnWww 2,491 Reputation points
0 answers

Item Template Not Using Data Context

Here is code for WPF window (omitting irrelevant…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,712 questions
asked 2024-07-27T22:55:00.58+00:00
RogerSchlueter-7899 1,256 Reputation points
1 answer

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?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,406 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,419 questions
ASP.NET Core Training
ASP.NET Core Training
ASP.NET Core: A set of technologies in the .NET Framework for building web applications and XML web services.Training: Instruction to develop new skills.
19 questions
asked 2024-07-27T11:53:28.1333333+00:00
Mahadevi Thirumagan 0 Reputation points
answered 2024-07-27T14:33:58.6966667+00:00
AgaveJoe 27,696 Reputation points
0 answers

17:57:58 [Apache] Status change detected: stopped 17:57:58 [Apache] Error: Apache shutdown unexpectedly. 17:57:58 [Apache] This may be due to a blocked port, missing dependencies, 17:57:58 [Apache] improper privileges, a crash, or a shutdown by a

i want to error to operate localhost

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,651 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,406 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
329 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
319 questions
.NET Machine learning
.NET Machine learning
.NET: Microsoft Technologies based on the .NET software framework.Machine learning: A type of artificial intelligence focused on enabling computers to use observed data to evolve new behaviors that have not been explicitly programmed.
155 questions
asked 2024-07-27T12:34:17.0833333+00:00
poojitha donthamsetty 0 Reputation points
0 answers

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…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,234 questions
asked 2024-07-27T10:06:34.74+00:00
Aneetha 65 Reputation points
0 answers

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.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,406 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,657 questions
asked 2024-07-27T08:45:53.02+00:00
merna elzyat 0 Reputation points
commented 2024-07-27T09:58:07.76+00:00
merna elzyat 0 Reputation points