26,955 questions with .NET-related tags

Sort by: Updated
1 answer

I'm experiencing problems with EF and SQL Server when running on Azure Webservice. The same code runs fine from VS with same db.

If I turn debugging on and connect my VS to the process, the error doesn't occur. Also I can run the code just fine from Visual Studio towards the same database. I do not Lazy Load. All Queries ens with ToFirstAsync() or ToListAsync() and has a Select to…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
779 questions
Azure SQL Database
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,352 questions
Azure Startups
Azure Startups
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Startups: Companies that are in their initial stages of business and typically developing a business model and seeking financing.
594 questions
asked 2025-02-15T10:00:46.1533333+00:00
Tomas Ekenman 0 Reputation points
edited an answer 2025-02-24T11:17:49.85+00:00
Siva Nair 395 Reputation points Microsoft Vendor
1 answer

How to Detect Stylus Pen Sides (Pen Tip vs. Eraser) in WPF (C#)

Hello, I’m developing a WPF application in C# that interacts with a stylus pen on a Windows device. I need to detect which side of the stylus is being used—whether it’s the pen tip or the eraser side. Could someone guide me on how to achieve this…

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,829 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.
11,308 questions
asked 2025-02-06T04:36:22.5+00:00
Manjunath PM 0 Reputation points
commented 2025-02-24T10:40:12.23+00:00
Manjunath PM 0 Reputation points
0 answers

Web App taking high CPU when I am loading a particular web page.

My web app CPU going high when I am uploading a web page while the copy of uploading page working fine without any issue of CPU. Actual Page = mpn Page Copy = mpn1 I don't know what's going on

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.
381 questions
asked 2025-02-22T08:41:17.0033333+00:00
jasmeet ghai 0 Reputation points
commented 2025-02-24T10:10:53.5566667+00:00
XuDong Peng-MSFT 11,336 Reputation points Microsoft Vendor
1 answer

Points displaying wrong

Hello I am sorry or not putting the framework correctly, but I cannot find WinUI The problem is that in the canvas my points are displaying correctly but when I go into guided mode to select my points they dont correspond I don't have point 1,…

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,829 questions
asked 2025-02-23T21:52:58.61+00:00
Eduardo Gomez Romero 1,255 Reputation points
commented 2025-02-24T10:01:17.1566667+00:00
Hongrui Yu-MSFT 4,370 Reputation points Microsoft Vendor
2 answers

Ram consuption above Threshold

Hi, In maui version 8 there is a problem when moving pages the memory not release. I would like to ask how to observe the RAM and if it pass threshold x it will be presanted in UI label in red color, otherwise in green color. Use MVVM…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,944 questions
asked 2025-02-12T10:20:18.47+00:00
Dani_S 4,091 Reputation points
commented 2025-02-24T09:56:12.68+00:00
Dani_S 4,091 Reputation points
2 answers One of the answers was accepted by the question author.

How can I see why a project cannot use "Application Timeline"

I have two startup projects in a solution - both are WPF applications that produce an .exe output tied to an xaml application. I would like to use the Application Timeline feature to analyze my app and for one project I can select the feature, but for…

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,829 questions
asked 2025-02-18T12:29:03.24+00:00
cbra-caa 0 Reputation points
accepted 2025-02-24T09:51:44.0966667+00:00
cbra-caa 0 Reputation points
0 answers

Is there a sample MAUI application to call c/c++ libraries that can be built from Windows and used on Windows, iOS and Android?

I am trying to convert my Xamarin.Forms mobile applications to MAUI. My applications depend on C libraries developed by government agencies (NOAA and USNO). For Xamarin.Forms I found a very good example for building a NuGet package from C library code…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,944 questions
asked 2025-02-21T16:50:34.97+00:00
Brian Johnson 0 Reputation points
edited a comment 2025-02-24T09:50:38.1+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 35,836 Reputation points Microsoft Vendor
1 answer

Not Working SetWindowPos for "On Screen Keyboard". Is there a way to fix this?

I want to always open the on screen keyboard in the secondary screen when there are two screen. I tried the "SetWindowPos". But it didn't change the position of on screen keyboard. Is there a way to fix this?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,105 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.
11,308 questions
asked 2025-01-28T11:25:58.6166667+00:00
Tharindima Sudasinghe 0 Reputation points
commented 2025-02-24T08:57:30.5066667+00:00
Jiale Xue - MSFT 48,966 Reputation points Microsoft Vendor
1 answer

Whenever i try to run my game program i get this error

See the end of this message for details on invokingjust-in-time (JIT) debugging instead of this dialog box.************** Exception Text System.OutOfMemoryException: Insufficient memory to continue the execution of the program.at…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,105 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,788 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,944 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,195 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,105 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,788 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,944 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,195 questions
asked 2025-02-10T01:45:00.67+00:00
Shorya Yadav 0 Reputation points
commented 2025-02-24T08:57:08.1866667+00:00
Jiachen Li-MSFT 33,536 Reputation points Microsoft Vendor
1 answer

Whenever i try to run my game program i get this error

See the end of this message for details on invokingjust-in-time (JIT) debugging instead of this dialog box.************** Exception Text System.OutOfMemoryException: Insufficient memory to continue the execution of the program.at…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,105 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,788 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,944 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,195 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,105 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,788 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,944 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,195 questions
asked 2025-02-10T01:45:00.67+00:00
Shorya Yadav 0 Reputation points
commented 2025-02-24T08:57:08.1866667+00:00
Jiachen Li-MSFT 33,536 Reputation points Microsoft Vendor
1 answer

WPF Cannot see SelectedItem in TreeView

I'm using WPF .Net 9.0, I cannot see the SelectedItem element of the TreeView. Anybody would know why ?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,105 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,829 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,105 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,829 questions
asked 2025-02-17T00:51:57.6933333+00:00
Bernard Lessard 1 Reputation point
edited a comment 2025-02-24T08:51:08.1833333+00:00
Hongrui Yu-MSFT 4,370 Reputation points Microsoft Vendor
1 answer

WPF Cannot see SelectedItem in TreeView

I'm using WPF .Net 9.0, I cannot see the SelectedItem element of the TreeView. Anybody would know why ?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,105 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,829 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,105 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,829 questions
asked 2025-02-17T00:51:57.6933333+00:00
Bernard Lessard 1 Reputation point
edited a comment 2025-02-24T08:51:08.1833333+00:00
Hongrui Yu-MSFT 4,370 Reputation points Microsoft Vendor
4 answers

How to invalidate .AspNet.ApplicationCookie Cookie in ASP.NET MVC 4.6.2

Hi Sir/Madam I have web application using ASP.NET MVC 4.6 version. In Startup, I am creating ApplicaitonCookie like below app.UseCookieAuthentication(new CookieAuthenticationOptions { AuthenticationType = "ApplicationCookie", ExpireTimeSpan =…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,598 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.
11,308 questions
asked 2024-09-16T07:36:43.33+00:00
Srinivas Balanagu 0 Reputation points
commented 2025-02-24T08:42:42.9066667+00:00
Geeta Sharma (IN) 0 Reputation points
2 answers One of the answers was accepted by the question author.

Change the width of scrollbar in MAC

Hi, How to change the width of scrollbar in MAC ? Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,944 questions
asked 2025-02-23T12:23:31.51+00:00
Dani_S 4,091 Reputation points
accepted 2025-02-24T08:09:59.1+00:00
Dani_S 4,091 Reputation points
1 answer

Facing an issue with cookieless Forms Authentication in an ASP.NET sub-application that is integrated with a main application built in Python

Hello, We are facing an issue with cookieless Forms Authentication in an ASP.NET sub-application that is integrated with a main application built in Python. The main application (Python) and sub-application (ASP.NET) work together.The ASP.NET…

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.
33 questions
asked 2025-02-21T05:57:30.9833333+00:00
Akshayaa Kalyanavenkatesh 0 Reputation points
edited a comment 2025-02-24T07:48:58.61+00:00
Akshayaa Kalyanavenkatesh 0 Reputation points
0 answers

.NET for Android on new SDK style

I moved my android app form the original android style to the new SDK style, it compiles fine. However, this call no longer works: HttpClient webclient = new HttpClient(); webclient.MaxResponseContentBufferSize =…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,944 questions
asked 2025-02-23T23:06:17.92+00:00
Phunction 301 Reputation points
commented 2025-02-24T07:20:03.35+00:00
Shailu Kathi 0 Reputation points
1 answer One of the answers was accepted by the question author.

Maui version 9.0.30

Hi, Maui version 9.0.30 does not come with Visual Studio updates, I have to manually set it to the project. <ItemGroup> <PackageReference Include="Microsoft.Maui.Controls" Version="9.0.30" /> Can you explain this ? …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,944 questions
asked 2025-02-21T07:43:57.16+00:00
Dani_S 4,091 Reputation points
accepted 2025-02-24T05:41:44.3966667+00:00
Dani_S 4,091 Reputation points
1 answer One of the answers was accepted by the question author.

ML.NET Time Series algorithms to predict future forecasts

I got the suggestion from github copilot , SSA timeseries algorithm from ML.NET I got NIFTY BANK csv from the below file and tried to run forescast. https://www.nseindia.com/reports-indices-historical-index-data The last record is Last Record:…

.NET Training
.NET Training
.NET: Microsoft Technologies based on the .NET software framework.Training: Instruction to develop new skills.
18 questions
asked 2025-02-23T15:10:24.8666667+00:00
Kalyan A 360 Reputation points
accepted 2025-02-24T05:36:24.49+00:00
Kalyan A 360 Reputation points
1 answer

How to fix a cryptographic keys error

I have recently upgraded the my web app to .Net9. I am now getting this error message from a call to CosmosDB to get a specific record... System.Security.Cryptography.CryptographicException: The key {92c2f09a-14ff-4cea-8f15-e09dcec74987} was not found in…

Blazor Training
Blazor Training
Blazor: A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.Training: Instruction to develop new skills.
18 questions
asked 2025-02-22T18:17:25.01+00:00
Raymond Starkey 0 Reputation points
answered 2025-02-24T03:51:17.44+00:00
Pradeep M 6,240 Reputation points Microsoft Vendor
0 answers

.NET application not showing images after server updates on windows 2022

After server updates, .NET application running in IIS is not showing any images and unable to connect to any js, css resources

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.
381 questions
asked 2025-02-21T14:01:44.59+00:00
Sushil Biswas 0 Reputation points
commented 2025-02-24T03:01:15.9466667+00:00
XuDong Peng-MSFT 11,336 Reputation points Microsoft Vendor