23,937 questions with .NET-related tags

Sort by: Updated
1 answer

How do I add a CAPTCHA to a web site written with ASP.NET/VB

A bot seems to be using my web site to send out emails via AmazonSES. I want to add a CAPTCHA to it to prevent this. I came across https://stackoverflow.com/questions/71515717/how-to-add-captcha-in-asp-net-project which appears to be what I want, but…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,263 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,575 questions
asked 2024-04-27T05:08:50.44+00:00
Robert Barnes 71 Reputation points
commented 2024-04-30T02:09:05.0966667+00:00
Robert Barnes 71 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,385 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,176 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,263 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,396 Reputation points
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,385 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,394 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,885 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,385 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,264 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
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,385 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,614 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,176 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,526 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,154 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,526 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,394 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,900 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,394 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,526 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,176 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,264 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.
297 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,885 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,281 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,385 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,394 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
766 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,526 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,385 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,530 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,497 questions
asked 2024-04-29T07:02:22.5866667+00:00
masterjodi 20 Reputation points
accepted 2024-04-29T15:31:57.8+00:00
masterjodi 20 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,614 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,263 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 6 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,614 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,885 questions
asked 2022-11-02T16:15:23.34+00:00
Lloyd Sheen 1,381 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,176 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,385 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,264 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.
333 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