23,919 questions with .NET-related tags

Sort by: Updated
1 answer

Upgrading to .Net 8 results in errors when referenced by a project targeting '.NetFramework=4.61'

I am using the upgrade assistant to upgrade the framework, but it's resulting in many errors. Is there any documentation available that explains step-by-step how to fix the errors that occur during the framework upgrade process?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,380 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,175 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
323 questions
.NET Training
.NET Training
.NET: Microsoft Technologies based on the .NET software framework.Training: Instruction to develop new skills.
3 questions
asked 2024-04-29T22:40:37.7233333+00:00
Ziya Ganjili 0 Reputation points
answered 2024-04-30T02:08:21.9+00:00
Michael Taylor 48,311 Reputation points
0 answers

How to fix StackOverflowException after upgrading from .Net 6 to .Net 8

Hello,   I have upgraded 5 projects in my solution from .Net 6 to .Net 8 using upgrade assistant in Visual Studio. When I run the solution, StackOverflowException is being thrown and Swagger is not loading. Looks like onchangetokenfired() method is being…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,380 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,175 questions
asked 2024-04-26T06:39:38.71+00:00
Abhishek, Burra 0 Reputation points
commented 2024-04-30T02:07:42.6266667+00:00
Ping Ni-MSFT 2,165 Reputation points Microsoft Vendor
1 answer

*.net referenced dll is not seen with a using statement

Hi, I have a project called MBSAnalysisMVCWebApp which is a web app. I reference MBSAnalysisMVCWebApp from my main MVC project called Mbsa. But when I try a using statement, It says MBSAnalysisMVCWebApp cannot be seen?  The MBSAnalysisMVCWebApp.dll…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,261 questions
asked 2024-04-29T15:37:56.6+00:00
iqworks Information Quality Works 216 Reputation points
answered 2024-04-30T01:59:39.2033333+00:00
Michael Taylor 48,311 Reputation points
1 answer

how to use signalr in minimal api?

can not use AddSignalR and I can use AddSignalRCore but there will be error. I created the ASP.NET Core Web API (native aot).

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,175 questions
asked 2024-04-29T13:33:56.15+00:00
mc 3,681 Reputation points
commented 2024-04-30T01:58:13.96+00:00
Ping Ni-MSFT 2,165 Reputation points Microsoft Vendor
1 answer

Application exception when trying to get response from server

Register.cshtml 1. ``````xml <button type="submit" class="btn btn-outline-primary btn-sm ml-4 mt-4" asp-page-handler="GenerateOtp" style=" width: 150px;"…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,175 questions
asked 2024-04-29T07:21:39.1033333+00:00
Surya Chandra Mohan 0 Reputation points
edited an answer 2024-04-30T01:27:49.32+00:00
Ping Ni-MSFT 2,165 Reputation points Microsoft Vendor
0 answers

why pushModalAsync not full ?

I use PushModalAsync the page is not full of the whole screen.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,880 questions
asked 2024-04-30T01:15:51.47+00:00
mc 3,681 Reputation points
2 answers

How to view/show image from file server path on button click

i am developing asp.net application. i am uploading many image documents in file server path like example (\server2\prj1\picture1.png) At the same time, i want to view/show the same file (image document) on button click event. How to show this image…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,261 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,257 questions
asked 2024-04-27T18:06:29.1133333+00:00
Gani_tpt 1,526 Reputation points
commented 2024-04-30T01:08:36.34+00:00
Gani_tpt 1,526 Reputation points
0 answers

Using ApplyQueryAttributes Method with Constructor

How can I use the ApplyQueryAttributes Method of IQueryAttributable to retrieve a value for a parameter in my viewmodel? The problem is that the method I want to use the parameter for is in the constructor and ApplyQueryAttributes has not executed before…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,880 questions
asked 2024-04-29T21:43:57.18+00:00
Tom Meier 80 Reputation points
edited the question 2024-04-30T01:00:53.4733333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,656 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Microsoft.Maui.Essentials packages

I have an razor class library and want to use Microsoft maui SecureStorage. In visual studio , NuGet interface, when select the latest Microsoft.Maui.Essentials packages, get the following…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,380 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,393 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,880 questions
asked 2024-04-27T08:45:34.1866667+00:00
Qun Shen 60 Reputation points
accepted 2024-04-29T23:34:55.8866667+00:00
Qun Shen 60 Reputation points
2 answers

Localize application display name of iOS developed with .NET MAUI?

Display name is localized on android in "Resources\values" folder and it works as expected. However, I can't make it work with iOS. What has been done: My solution : In info.plist : In InfoPlist.strings : In csproj : When I…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,880 questions
asked 2024-04-25T23:11:33.74+00:00
Omar H 0 Reputation points
edited a comment 2024-04-29T23:01:10.4133333+00:00
Omar H 0 Reputation points
1 answer One of the answers was accepted by the question author.

MailKit fails to authenticate properly with passwords containing certain characters

I have the following block of code to send an email using MailKit: using (var smtp = new MailKit.Net.Smtp.SmtpClient()) { smtp.Connect("mail.somedomainname.com", 587, SecureSocketOptions.StartTls); …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,380 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,257 questions
asked 2024-04-29T22:19:47.19+00:00
Richard Rosenheim 46 Reputation points
commented 2024-04-29T22:53:12.64+00:00
Richard Rosenheim 46 Reputation points
2 answers

Will Visual Studio upgrade project files accordingly?

I may have an old .NET Framework app dumped into my lap. I've been looking at it for a while, to try and wrap my head around it. It's got 18 projects in the solution file, comprised of 5 different .NET Frameworks. Everything from .NET Framework 2, to…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,611 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,120 questions
asked 2024-04-29T20:26:12.4766667+00:00
Falanga, Rod, DOH 60 Reputation points
answered 2024-04-29T22:40:08.2566667+00:00
Bruce (SqlWork.com) 56,286 Reputation points
4 answers

Visual Studio 2022 error: [nuget.org] Failed to retrieve metadata from source

I am having trouble using NuGet in Visual Studio. I selected "Managed NuGet packages for solution..." and tried using NuGet browser by entering a string in the Search field. I get the following error: [nuget.org] Failed to retrieve…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,380 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,611 questions
asked 2022-07-27T16:36:32.867+00:00
Irek Zawadzki 11 Reputation points
commented 2024-04-29T22:26:42.84+00:00
dumbEngineer 0 Reputation points
1 answer

Xamarin.ios integration with native ios sdk

Is it possible to integrate a native ios sdk (xcframework - swift) with xamarin.ios ?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,294 questions
asked 2024-04-09T13:45:47.11+00:00
Luis Bernardo 0 Reputation points
edited a comment 2024-04-29T21:53:53.01+00:00
Rob Caplan - MSFT 5,412 Reputation points Microsoft Employee
3 answers

Using SQL Server Read/Write Image Ever Day With A Table

I've a case that need to save Image in database, than user can search/upload site(DB) to site(DB) ever day from winform. Every image size average 250kb - 350kb, The total usage with image perhaps growth 110GB/year without delete form database. I'll…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,830 questions
asked 2024-04-25T12:58:15.02+00:00
LRC1006 0 Reputation points
commented 2024-04-29T20:57:40.3133333+00:00
Erland Sommarskog 101K Reputation points MVP
1 answer

An unhandled exception occurred while processing the request. ApplicationException:

Register.cshtml 1. 1. xml @page @model FaceAdminApp.Pages.Auth.RegisterModel @{ ViewData["Title"] = "Register"; } @if (Model.IsPhoneNumberPresent) { <div…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,175 questions
asked 2024-04-29T07:34:13.99+00:00
Nandini S 20 Reputation points
answered 2024-04-29T20:03:50.9266667+00:00
Bruce (SqlWork.com) 56,286 Reputation points
1 answer

Request are stucking in AuthenticateRequest State on IIS

We're facing a critical issue with our API server. It's built on C# .NET 4 with a C++ backend. The problem manifests as certain requests hitting the IIS of the backend server some instances, these requests remain stuck in the AuthenticateRequest state,…

Internet Information Services
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,144 questions
.NET Internet of things
.NET Internet of things
.NET: Microsoft Technologies based on the .NET software framework.Internet of things: A concept that aims to extend the benefits of the regular internet, including constant connectivity, remote control ability, and data sharing, to goods in the physical world.
28 questions
asked 2024-04-22T07:01:24.13+00:00
Parmeshwar Kale 0 Reputation points
edited an answer 2024-04-29T19:48:22.27+00:00
Bruce (SqlWork.com) 56,286 Reputation points
1 answer

Visual Studio Designer Copy With Name

I created a new label. It came with "label1" name. I changed the name "label1" to "myLabel1". I'm copying this: "myLabel1" When I paste it comes as: "label1" It wasn't like this before. When I paste must…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,830 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,611 questions
asked 2024-04-27T05:37:43.91+00:00
Doğukan Topaloğlu 0 Reputation points
commented 2024-04-29T19:19:39.1+00:00
Viorel 112.1K Reputation points
0 answers

Asp.net MVC renders 2 "form action" statements for the same form when in responsive mode

ASP.Net MVC VS 2022 Windows 11 App runs fine in desktop mode. This line: <@using (@Html.BeginForm("SubmitForm", "Home", FormMethod.Post, new { id = "subform", verify = "Y" }))> is generated correctly…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,261 questions
asked 2024-04-29T18:06:54.7466667+00:00
Jean Vallee 21 Reputation points
edited a comment 2024-04-29T18:44:39.9166667+00:00
AgaveJoe 26,206 Reputation points
1 answer

Multi-Tenant Blazor Server Side app Hosted in Azure

I am working on a new project to host a Multi-Tenant Application using the following technologies: Blazor Server Side, Hosted on an Azure App Service, Using Azure SignalR, using Feature Toggles in Azure App Configuration and Secured with Azure Active…

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,393 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,895 questions
asked 2024-04-29T13:06:10.9633333+00:00
Tom McCartan 5 Reputation points
commented 2024-04-29T18:23:35.3033333+00:00
Tom McCartan 5 Reputation points