25,265 questions with .NET-related tags

Sort by: Updated
1 answer

Blocked on migrating to Maui for App Widgets: Not able to start activity for configuring the app widget

Some widgets which need a configure activity started, they fail to get created because the activity does not start. In Xamarin, the line to trigger the configure activity was AppWidgetHost.StartAppWidgetConfigureActivityForResult(this.MainActivity,…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,296 questions
asked 2024-08-16T20:23:08.46+00:00
khatauli 21 Reputation points
answered 2024-08-17T02:28:05.15+00:00
khatauli 21 Reputation points
1 answer

C# Program can't find XAML page in DLL

I have a program with a window declared as StartWnd (in the main assembly) derived from a class, WzdBase in a DLL which in turn is derived from System.Windows.Window. StartWnd doesn't provide its own XAML page. Rather that's in the DLL and provided by…

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,735 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,728 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.
796 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,218 questions
asked 2024-07-31T16:13:28.4066667+00:00
Will Pittenger 301 Reputation points
commented 2024-08-16T22:53:29.1266667+00:00
Will Pittenger 301 Reputation points
1 answer

How control on view height when soft keyboard appears because it covers typing message

when I type message, the keyboard covers the typing message box and can't see or control input area because it not.NET MAUI Control it's related to WebView Component, how I can control in this view? C# Code: MenuCurve.Source = new UrlWebViewSource {…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,296 questions
asked 2024-08-10T15:06:35.7133333+00:00
Ibrahim El Aidi 0 Reputation points
commented 2024-08-16T22:13:33.16+00:00
Ibrahim El Aidi 0 Reputation points
1 answer

Unable to load assembly on Azure Sql that uses HttpClient object

Hi Team, We have developed a UDF in C# that sends a request to Http rest endpoint. For that we have used HttpClient object in our code. Getting below error while creating assembly using our dll.   Msg 10301, Level 16, State 1, Line 1   Assembly 'Mydll'…

Azure SQL Database
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,731 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,728 questions
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,615 questions
asked 2024-08-16T08:04:49.2966667+00:00
Rajesh Patel 0 Reputation points
answered 2024-08-16T21:36:27.1733333+00:00
Erland Sommarskog 108.6K Reputation points MVP
0 answers

Cannot insert data into table UserClaims

I am using ASP.NET Core 6, and when I try to add Claims into table UserClaims I get this error: Cannot insert the value NULL into column UserId table UserClaims column does not allow nulls UPDATE fails var user = await…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,455 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,728 questions
asked 2024-08-16T18:10:17.24+00:00
mostafa ahmed 41 Reputation points
commented 2024-08-16T21:02:43.1533333+00:00
AgaveJoe 27,931 Reputation points
2 answers One of the answers was accepted by the question author.

How to Print a PDF File in C# WPF

Hello everyone , I have a PDF file with several pages and I need to print it using C# and WPF technology. Can someone provide some guidance on how to achieve this and customize the settings, such as page size, orientation, and margin? Thank you.

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,735 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,728 questions
asked 2024-08-12T03:03:17.3833333+00:00
Kamyab Faghih 20 Reputation points
commented 2024-08-16T20:35:36.3333333+00:00
Kamyab Faghih 20 Reputation points
1 answer One of the answers was accepted by the question author.

What is the replacement of Android.Support.V7.Graphics.palette in Maui world

Hi Maui experts, I have a following piece of code in Xamain app, which I want to port over to Maui, but don't seem to find the alternative. The intent is to extract the main theme color from the bitmap image. Any ideas? palette =…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,296 questions
asked 2024-07-26T16:13:10.8666667+00:00
khatauli 21 Reputation points
accepted 2024-08-16T20:14:21.7066667+00:00
khatauli 21 Reputation points
1 answer One of the answers was accepted by the question author.

What is the replacemet of WindowInfoTracker in Mauii

I am using WindowInfoTracker in Xamarin to detect if the device is foldable or not, and if it is foldable, I want to know if it is folded or half folded itc. I don't see any replacement of this in Maui. If there is any alternative, I would like to know…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,296 questions
asked 2024-07-23T01:18:00.68+00:00
khatauli 21 Reputation points
accepted 2024-08-16T20:11:19.76+00:00
khatauli 21 Reputation points
3 answers One of the answers was accepted by the question author.

Which nuget package to use for Android billing Library

I got this email from Google: From Aug 31, 2024, all apps must use version 6.0.1 or later. I am migrating my Xamarin app to Maui. Which nuget package should I use to qualify the above requirement while using Maui. Is this the correct one:…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,296 questions
asked 2024-07-24T04:50:16.03+00:00
khatauli 21 Reputation points
accepted 2024-08-16T20:08:29.0966667+00:00
khatauli 21 Reputation points
0 answers

Why wouldn't an app recognize a Certificate with a CSP of "Microsoft Software Key Storage Provider"...

...but will recognize the same Cert with the CSP set to "Microsoft Enhanced RSA and AES Cryptographic Provider"? In other words, the app fails when I import the certificate into the server's local key store like this: certutil.exe -importpfx…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,455 questions
asked 2024-08-16T18:05:38.0333333+00:00
David Gursky 0 Reputation points
28 answers One of the answers was accepted by the question author.

How I can do raw query in jquery datatable to acces to the files from sqlserver file table?

Hi, I have an asp.net core 5 application that displays the entire sqlserver file table content. My question is : How can open the file in colunm Name? I would like to modify the code below (extract from jquery-datatable-in-aspnet-core …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,455 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,728 questions
asked 2022-06-09T16:31:23.507+00:00
sblb 1,171 Reputation points
commented 2024-08-16T16:37:29.87+00:00
Christopher Garcia 0 Reputation points
1 answer

How to include PDF Viewer in WPF Application

Hi I have to include the pdf viewer in my wpf application. It should have ability to navigate to other pages of pdf. It should should pdf in fullscreen mode. Currently i found no support in wpf . Please help in this case.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,731 questions
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,735 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,728 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,731 questions
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,735 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,728 questions
asked 2024-08-16T10:51:35.4633333+00:00
Vishal2 Bansal 105 Reputation points
answered 2024-08-16T15:48:50.1766667+00:00
Bruce (SqlWork.com) 62,546 Reputation points
1 answer

How to include PDF Viewer in WPF Application

Hi I have to include the pdf viewer in my wpf application. It should have ability to navigate to other pages of pdf. It should should pdf in fullscreen mode. Currently i found no support in wpf . Please help in this case.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,731 questions
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,735 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,728 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,731 questions
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,735 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,728 questions
asked 2024-08-16T10:51:35.4633333+00:00
Vishal2 Bansal 105 Reputation points
answered 2024-08-16T15:48:50.1766667+00:00
Bruce (SqlWork.com) 62,546 Reputation points
1 answer One of the answers was accepted by the question author.

Strict Transport Security header missed in API response

Hi Team, We are using the .Net core 8.0(long term support version) for our .Net Core services , we enabled the HSTS at service level by using the // HSTS Security Headers services.AddHsts(options => { options.Preload =…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,455 questions
asked 2024-08-14T17:15:35.89+00:00
Kumar, Vipin [ext] 20 Reputation points
commented 2024-08-16T14:41:40.8933333+00:00
Michael Taylor 52,546 Reputation points
1 answer

.NET MAUI ios Application Crashes When Published. Can Someone Guide me?

I maintaining .NET MAUI application that are created using .NET MAUI Blazor hybrid application project. now wwe need to publish it on Apple Appstore and there also some platform specific codes for android as well. so what i did is create .NET MAUI multi…

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,525 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,435 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,296 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
332 questions
asked 2024-08-15T03:17:51.58+00:00
Gayantha Anushan 0 Reputation points
commented 2024-08-16T14:33:18.12+00:00
Bruce (SqlWork.com) 62,546 Reputation points
2 answers

How to create dynamic report depend on user input by ASP.NET Core?

I want to build a dynamic report by Asp.net core -EF-, I searched for many ways and ideas, but it doesn't support my idea, I am so disappointed, the core idea of my project is to get tables and columns names from the database and displays them for the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,455 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,435 questions
asked 2023-02-26T09:52:23.6+00:00
Arwa Sami 20 Reputation points
edited an answer 2024-08-16T14:27:59.16+00:00
Bruce (SqlWork.com) 62,546 Reputation points
0 answers

After I upgrade Visual Studio 2022 from 17.11 preview 7 to 17.12 just now, my WPF project not functioning properly

It stuck at the the following code: public partial class MainWindow : Window { public static MainWindow? Current { get; private set; } public MainWindowViewModel ViewModel { get; private set; } public MainWindow() { …

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,735 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,958 questions
asked 2024-08-15T07:41:54.2266667+00:00
Smith Tom 5 Reputation points
commented 2024-08-16T13:37:52.1933333+00:00
Smith Tom 5 Reputation points
0 answers

ContosoPizza.http file not being created

When following the tutorial for creating a web API project, on page 3, part 4, i enter the following command: dotnet new webapi -controllers -f net8.0 however it does not create the ContosoPizza.http file as the guide states it should. Please advise…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,435 questions
Azure Training
Azure Training
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Training: Instruction to develop new skills.
1,397 questions
asked 2024-08-16T10:34:33.8166667+00:00
Bowie, Aidan 0 Reputation points
edited a comment 2024-08-16T13:19:02.98+00:00
JasonPan - MSFT 4,976 Reputation points Microsoft Vendor
1 answer

Using Enity Framework 6.1 and initial query VERY slow.

When performing the initial query using EF, it can take up to 9 mins. Though if you rerun it again and again it takes seconds. If I capture the query from the profiler, it always runs in seconds. If I wait about 10 / 15 mins the slow initial process…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
729 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,731 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
729 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,731 questions
asked 2024-08-07T19:04:09.36+00:00
Gary Paquette 0 Reputation points
commented 2024-08-16T13:11:11.6566667+00:00
Gary Paquette 0 Reputation points
1 answer

Using Enity Framework 6.1 and initial query VERY slow.

When performing the initial query using EF, it can take up to 9 mins. Though if you rerun it again and again it takes seconds. If I capture the query from the profiler, it always runs in seconds. If I wait about 10 / 15 mins the slow initial process…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
729 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,731 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
729 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,731 questions
asked 2024-08-07T19:04:09.36+00:00
Gary Paquette 0 Reputation points
commented 2024-08-16T13:11:11.6566667+00:00
Gary Paquette 0 Reputation points