24,073 questions with .NET-related tags

Sort by: Updated
2 answers

How to design patterns from scratch using C# asp.net MVC

I am new to building design pattern using factory design pattern, its C# asp.net mvc application which i am going developing my new web application, please can you help me how to start from scratch. I have worked one design pattern application which is…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,415 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,288 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,306 questions
asked 2024-04-19T14:27:10.4633333+00:00
coder rock 196 Reputation points
commented 2024-04-30T02:54:25.35+00:00
Lan Huang-MSFT 25,876 Reputation points Microsoft Vendor
1 answer

Why WebBrowser doesn't show up in toolbox?

I want to make an own custom web browser so i looked for tutorial, when i at the insert WebBrowser extension, it's not shown up. I tried to reset and added it again, but it shows up "Added sucessfully but can't see or use in designer". I tried…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,838 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,643 questions
asked 2024-04-19T08:05:06.3166667+00:00
Ocean 0 Reputation points
commented 2024-04-30T02:44:34.6+00:00
Tianyu Sun-MSFT 27,431 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,415 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,403 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,922 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
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,415 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,306 questions
asked 2024-04-29T22:19:47.19+00:00
Richard Rosenheim 66 Reputation points
commented 2024-04-29T22:53:12.64+00:00
Richard Rosenheim 66 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,415 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,643 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,297 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,422 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,838 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 101.8K 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,207 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,931 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,205 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,931 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,403 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,956 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
1 answer

Blazor web app net 8 rendermode auto with API

I am creating a web application with blazor web app and net 8 with rendermode Auto. I have an api created in .net hosted on another server different from where the blazor web application will go. The api needs a token in each call, I am having problems…

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,403 questions
asked 2024-04-24T15:40:36.8+00:00
Ángel Rubén Valdeolmos Carmona 586 Reputation points
commented 2024-04-29T17:28:07.4933333+00:00
Bruce (SqlWork.com) 56,931 Reputation points
1 answer

Customize the EmailConfirmation and 2FA token expiration in .NET 8.0

Is there a way to extend the 2FA and Email confirmation token expiration timespan with email in .NET 8.0? I am using the Microsoft.AspNetCore.Identity and Microsoft.AspNetCore.Authentication classes to use the 2FA with…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,207 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,306 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.
302 questions
asked 2024-04-27T00:03:30.5266667+00:00
Francisco A. Henríquez N 0 Reputation points
accepted 2024-04-29T17:04:38.0533333+00:00
Francisco A. Henríquez N 0 Reputation points
1 answer

MAUI app crashing with release mode. Works fine with debud mode ?

MAUI app crashes with release mode. Works fine with debug mode. Targeting .net run time is .net 7.0. We are using a few syncfusion controls in our application. Those nuggets were up to date till now. Here are the crash…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,922 questions
asked 2023-12-13T16:27:12.44+00:00
KallemSandeep-8232 31 Reputation points
answered 2024-04-29T17:04:17.7066667+00:00
Chuck C Giddens 5 Reputation points
4 answers

Azure Static Web App function API refusing connection from web app

I have a Blazor WASM app deployed to an Azure Static Web app with a managed .NET 8 isolated Azure Function API. When calling the API directly from Postman using the auto-generated web app URL + the API route I receive the expected response and can see a…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,321 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,415 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,403 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
770 questions
asked 2024-03-10T19:43:13.2+00:00
Beau 0 Reputation points
answered 2024-04-29T16:08:17.1466667+00:00
Bruce (SqlWork.com) 56,931 Reputation points
2 answers One of the answers was accepted by the question author.

COM aggregation, "stabilization" AddRef/Release pair, necessary? (Don Box book)

To the excellent members of the COM team:   I have one question with the “stabilization” technique introduced in Don Box’s book.   In functions like FinalConstruct(), the outer object might create inner aggregation objects. These inner objects in turn…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,415 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,544 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,532 questions
asked 2024-04-29T07:02:22.5866667+00:00
masterjodi 40 Reputation points
accepted 2024-04-29T15:31:57.8+00:00
masterjodi 40 Reputation points
5 answers One of the answers was accepted by the question author.

Using MS Graph to send email from singe predefined/pre-set mailbox within .net web application

We need our application to send emails via MS Graph using a set single mailbox. I have the following, but this is not working, with the following: 'Exception of type 'Microsoft.Graph.Models.ODataErrors.ODataError' was thrown'. Digging into the details…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,715 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,288 questions
asked 2023-06-05T11:36:52.11+00:00
Julian Cram 25 Reputation points
edited a comment 2024-04-29T15:27:38.1266667+00:00
Trevor Westin 26 Reputation points
0 answers

Visual Studio is now in a screw you mode

So I add a new tab to the Maui project. It has a load of a collection in the constructor of the view. I had put a breakpoint of the statement loading the collection and it would stop for about 10 secs and then the project would stop. Finally…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,643 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,922 questions
asked 2022-11-02T16:15:23.34+00:00
Lloyd Sheen 1,386 Reputation points
commented 2024-04-29T14:21:36.93+00:00
David 0 Reputation points
0 answers

An unhandled exception occurred while processing the request. ApplicationException:

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

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,207 questions
asked 2024-04-29T10:37:59.57+00:00
Nandini S 20 Reputation points
commented 2024-04-29T13:13:20.7033333+00:00
Jerry Fu - MSFT 561 Reputation points Microsoft Vendor
1 answer

C# Generate token console for Intune datawarehouse

Using .NET 4.8.1 and the code snippet below from Microsoft Learn (https://learn.microsoft.com/en-us/mem/intune/developer/data-warehouse-app-only-auth-). I am unable to get this module to work. It seems the line with AuthenticationContext,…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,415 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,306 questions
Microsoft Intune Security
Microsoft Intune Security
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
345 questions
asked 2024-03-07T16:46:48.8866667+00:00
Chaumette Garcia 0 Reputation points
answered 2024-04-29T12:36:04.6966667+00:00
Catherine Kyalo 570 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

how do I uninstall Microsoft.NETCore.App 6.0.25 and Microsoft Microsoft.WindowsDesktop.App 6.0.25

I have remove .net using Add or Remove program but when I do dotnet --list-runtimes I still see and I am not sure how to uninstall them. Microsoft.NETCore.App 6.0.25 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.25…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,207 questions
asked 2024-04-27T21:26:07.1366667+00:00
David Ghoussoub 41 Reputation points
accepted 2024-04-29T12:17:33.64+00:00
David Ghoussoub 41 Reputation points