4,815 questions with Developer technologies | ASP.NET | ASP.NET Core tags

Sort by: Updated
2 answers

asp.net core web api using smtp with Oauth2 for gmail as well as outlook

Hi, I am using ASP.NET Core Web API 8. I need to create a sample program for sending emails using Gmail SMTP with OAuth2 (web application flow), as well as Outlook (web application flow). Can you provide any sample code, documentation, and screenshots?

Developer technologies ASP.NET ASP.NET Core
asked 2025-03-24T15:57:27.27+00:00
Rajesh Kola 0 Reputation points
commented 2025-04-04T06:49:38.0733333+00:00
Rajesh Kola 0 Reputation points
2 answers

Asp Net, MVC design patterns

Good afternoon, I'm currently developing in ASP.NET using the MVC 5 framework, and I have SPA applications. I want to migrate or unify my SPA applications into a single project. The project will have charts, reports, forms, and approximately 20 pages.…

Developer technologies ASP.NET ASP.NET Core
asked 2025-03-22T19:20:25.59+00:00
intel intel 0 Reputation points
answered 2025-04-04T03:21:36.15+00:00
Anonymous
2 answers

Sending emails from dotnet8 web application

Hi, I have a dotnet8 web application which I am using to send emails from ******@mydomain.com (which is a google workspace account) via a smtp request using the following configuration: Domain = smtp.gmail.com Port = 465 A generated App Password…

Developer technologies ASP.NET ASP.NET Core
asked 2025-03-29T22:57:05.87+00:00
Daniel Giles 0 Reputation points
edited the question 2025-04-03T01:45:06.73+00:00
Anonymous
3 answers

Gmail Oauth 2 for smtp

I am working on integrating Gmail SMTP using OAuth2 in an ASP.NET Core Web API project. I am looking for a sample project or implementation guide that demonstrates how to configure Gmail's SMTP server with OAuth2 authentication in the context of an…

Developer technologies ASP.NET ASP.NET Core
asked 2025-03-29T06:18:20.99+00:00
Rajesh Kola 0 Reputation points
edited the question 2025-04-03T01:44:40.3466667+00:00
Anonymous
1 answer

Image is getting stored in root folder but while fetching image not displayed on page asp core mvc

Image is getting stored in the root folder but while fetching it is not displayed on page when I inspected img src was also correct and on console 404 error come please can anyone help bcoz I am doing this from long time

Developer technologies ASP.NET ASP.NET Core
Developer technologies Visual Studio Other
Developer technologies ASP.NET Other
asked 2023-11-02T12:22:02.72+00:00
NIKITA HANDE 0 Reputation points
commented 2025-04-02T14:33:00.8733333+00:00
victor otene 0 Reputation points
0 answers

Resovle Dependency Injection in Custom AuthorizationHandler

I speding days try to implement Permission based authorization like this post: Permission-Based Authorization in ASP.NET Core: A Step-by-Step Guide - DEV Community with custom AuthorizationHandler and AuthorizationPolicyProvider. My issue is: after the…

Developer technologies ASP.NET ASP.NET Core
asked 2025-04-01T13:37:09.5233333+00:00
Lam Trường 0 Reputation points
commented 2025-04-02T07:02:52.2233333+00:00
Anonymous
1 answer

Azure is decoding characters in the URL before reaching the application

In our backend API, we have an endpoint with a path variable and we need to be able to support certain special characters. To accomplish this, we are encoding the path variable with UTF-8 before hitting the endpoint. This works for most special…

Developer technologies ASP.NET ASP.NET Core
Developer technologies ASP.NET ASP.NET API
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
asked 2023-01-12T17:17:38.88+00:00
Jkuhl 35 Reputation points
commented 2025-04-01T14:31:33.8533333+00:00
Kunal Bhambhani 5 Reputation points
2 answers

Why is the Identity.IsAuthenticated property false in the new app of an incremental migration with .AddAuthenticationServer()

Hello, I am trying to follow the documentation for the "Incremental ASP.NET to ASP.NET Core update" as demoe'd by Mike Rousos. I have implemented the steps found in this page:…

Developer technologies ASP.NET ASP.NET Core
Developer technologies ASP.NET Other
asked 2024-02-01T22:05:51.8666667+00:00
Michael McGuire 0 Reputation points
answered 2025-03-31T14:52:44.4066667+00:00
Praveen Chandra 20 Reputation points
1 answer One of the answers was accepted by the question author.

how to ALLOW CORS withing my blazor webassembly application

<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <!--<base…

Developer technologies ASP.NET ASP.NET Core
asked 2025-02-25T17:55:09.5266667+00:00
KwebenaAcquah-9104 326 Reputation points
accepted 2025-03-30T00:56:39.3333333+00:00
KwebenaAcquah-9104 326 Reputation points
2 answers

.Net 8.0.10 and 8.0.11 hosting bundle doesn't install components

I have downloaded and installed the .NET Core Hosting bundle for 8.0.10. In the past when installing this bundle it will install the following components: Microsoft .NET Runtime - version (x64) Microsoft .NET Runtime - version (x86) Microsoft ASP.NET…

Developer technologies ASP.NET ASP.NET Core
Developer technologies .NET .NET Runtime
Developer technologies .NET Other
asked 2024-11-13T12:31:16.29+00:00
KAPIL ARORA 5 Reputation points
edited a comment 2025-03-26T13:33:17.24+00:00
Ole Kristian Hustad 0 Reputation points
1 answer

ubuntu下面运行asp.net core 不加载appsettings.json配置文件

我做了一个asp.net core5.0的站点,发布在ubuntu服务器上, 发现如果我不在程序所在文件夹下面运行站点,站点遍不会加载 appsettings.json配置文件 只要不在程序所在文件夹去启动站点,其他任何文件夹都不会加载 appsettings.json配置文件,这是为什么呢??

Developer technologies ASP.NET ASP.NET Core
Developer technologies .NET .NET Runtime
asked 2021-10-25T02:23:56.96+00:00
easy999000 1 Reputation point
answered 2025-03-26T07:21:57.06+00:00
SY LI 0 Reputation points
2 answers

Tracing "SQLite error 19 foreign key constraint" down to what actually causes it?

See screenshots. How do you find out which entity or which record produces this error? Haven't found info in the Internet. Default and test data is added using FluentApi in the configuration classes. The database is EnsureDeleted() first, then when it's…

Developer technologies ASP.NET ASP.NET Core
Developer technologies .NET .NET MAUI
asked 2023-12-12T10:37:23.18+00:00
MSCollege3000 190 Reputation points
edited an answer 2025-03-26T00:19:51.9833333+00:00
Bill Neal 0 Reputation points
2 answers

Blazor Warm Start

I have a landing page and when the user clicks a button it does Blazor.start(); Q. Is there a way that I can do something like Blazor.preload(); where it will preload the *.wasm assemblies into the Wasm runtime while the user is reading the landing page…

Developer technologies ASP.NET ASP.NET Core
asked 2025-03-22T02:16:58.5333333+00:00
Aaron 10 Reputation points
commented 2025-03-25T08:04:09.79+00:00
Anonymous
1 answer One of the answers was accepted by the question author.

Azure Application Gateway WAF blocking some requests with OpenID Connect nonce cookies

The default rules of Azure Web Application firewall sometimes block requests containing a cookie set by Microsoft.AspNetCore.Authentication.OpenIdConnect During challenge redirect the AuthenticationHandler sets a cookie named:…

Developer technologies ASP.NET ASP.NET Core
Azure Web Application Firewall
asked 2021-11-10T08:41:43.057+00:00
Niklas Nielsen 31 Reputation points
commented 2025-03-24T14:21:07.7233333+00:00
Verhaeghe Jan 15 Reputation points
3 answers One of the answers was accepted by the question author.

Unable to Create Session and Cookies in .NET Core

I've been trying to create a session or a cookie to be determine if the incoming parameter passed to call a hook is successfully received. The session is created and accessed when the code is running in the Startup.cs class. Once I try to retrieve the…

Developer technologies ASP.NET ASP.NET Core
Developer technologies ASP.NET ASP.NET API
Developer technologies .NET Other
Developer technologies C#
asked 2023-07-18T17:34:53.1233333+00:00
lesponce 176 Reputation points
answered 2025-03-23T11:35:23.68+00:00
Abd-Alaziz Ale-Abd-Almohsen 0 Reputation points
1 answer One of the answers was accepted by the question author.

this code for upload Image to my web in web API no error list.Trouble with BlazorApp -Blazor Assembly.

.csproj in BlazorApp ==================== <Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly"> …

Developer technologies ASP.NET ASP.NET Core
asked 2025-03-19T03:43:25.57+00:00
MIPAKTEH_1 605 Reputation points
accepted 2025-03-23T05:27:37.7833333+00:00
MIPAKTEH_1 605 Reputation points
12 answers

How to fix this error "warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for redirect."

Good evening , I am trying to build a simple web api using ASP.Net . The app has been showing the error like this after building it - warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for…

Developer technologies ASP.NET ASP.NET Core
asked 2023-06-03T08:29:57.58+00:00
Vaishnavi P 80 Reputation points
commented 2025-03-21T18:58:24.1266667+00:00
Zach Johnson 0 Reputation points
4 answers

Illegal characters in path.

I am trying to create a new project through following procedure but visual studio is throwing exception

Developer technologies ASP.NET ASP.NET Core
Developer technologies Visual Studio Other
asked 2023-03-27T02:41:25.43+00:00
Abdul Rehman 10 Reputation points
commented 2025-03-21T18:14:57.55+00:00
Melton, Tim 5 Reputation points
1 answer

How to Stop and Start a Windows Background Service

I have multiple ASP.NET Core Worker Services that run on my server and want to create another project for database cleanup. How can I turn a Windows background service on and off using C# for this purpose? Good day guys, I have created multiple ASP.NET…

Developer technologies ASP.NET ASP.NET Core
asked 2023-08-14T09:33:22.4966667+00:00
Sphesihle Jamile 5 Reputation points
commented 2025-03-21T17:16:39.7033333+00:00
Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
1 answer One of the answers was accepted by the question author.

Missing file in Learn module

I'm unable to complete the module named "Interact with data in Blazor web apps" because there are one or more files missing in the project files host on GitHub. Where can I find "Services/OrderState.cs" that's referenced in Unit 9 of…

Developer technologies ASP.NET ASP.NET Core
asked 2025-03-14T14:05:39.4133333+00:00
Anonymous
accepted 2025-03-20T09:29:10.6666667+00:00
Anonymous