4,815 questions with Developer technologies | ASP.NET | ASP.NET Core tags
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
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
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
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
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
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
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
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
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


.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
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
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
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
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
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#
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
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
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

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
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…