4,571 questions with ASP.NET Core tags

Sort by: Updated
0 answers

how to fix Common Language Runtime detected an invalid program?

I have a simple API developed with .NET 8, which connects to a postgreSQL DB using Npgsql version 4.0.0. The API opens the connection, queries the database version, and closes the connection. the API was uploaded to 2 servers, running Windows Server 2019…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,877 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,571 questions
asked 2024-10-01T06:40:28.2266667+00:00
DSpada 0 Reputation points
1 answer

I'm having trouble writing the code to downloading the page.

I'm attempting to create a small application that converts image formats to SVG. And bellow comes the code: @page "/" @using System.Drawing @using System.Drawing.Imaging @using System.IO @using System.Threading.Tasks @using…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,571 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,584 questions
asked 2024-09-25T11:59:28.83+00:00
Saeed Pooladzadeh 251 Reputation points
commented 2024-10-01T02:00:15.73+00:00
Ping Ni-MSFT 4,335 Reputation points Microsoft Vendor
1 answer

Error when trying to login using Microsoft Cognitive Services in Public Desktop Client App in Entra External ID tenant

I have an Entra External ID tenant with a registered public desktop app from which I want to call the APIs from an Azure Speech Service resource. Via MSAL I log in like this: var clientId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"; var tenantId…

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,743 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,571 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,962 questions
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,892 questions
asked 2024-09-25T13:18:28.55+00:00
Roman Steiner 0 Reputation points
commented 2024-09-30T18:32:06.2066667+00:00
YutongTie-MSFT 52,091 Reputation points
2 answers

ClientWebSocket Class

In ClientWebSocket Class how to set up Compression? Does we have to set the header "Sec-WebSocket-Extensions" manually for compression? Does the SendAync() method compresses before sending or it has to be compressed manually before…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,877 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,571 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,962 questions
asked 2024-09-28T08:08:35.4333333+00:00
net 6 newbie 121 Reputation points
commented 2024-09-30T15:31:06.7633333+00:00
Bruce (SqlWork.com) 65,576 Reputation points
0 answers

Usermanager generate email confirmation token sometimes returns null

Why is it that sometimes the _userManager.GenerateEmailConfirmationTokenAsync(user); returns null. It's very rare to happen but it is happening and I need to know the reason behind it. This is my current configuration for Identity …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,571 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,962 questions
asked 2024-09-27T16:40:25.5433333+00:00
Alex 0 Reputation points
commented 2024-09-30T13:59:44.1866667+00:00
Tiny Wang-MSFT 2,721 Reputation points Microsoft Vendor
2 answers

Error message while generating a controller in Dotnet ASP.NET Core

I'm trying to generate a controller in Dotnet ASP.NET Core by following the tutorial on https://zcusa.951200.xyz/en-us/aspnet/core/tutorials/first-mvc-app/adding-model?view=aspnetcore-8.0&tabs=visual-studio-code, but when I use the command dotnet…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,571 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,494 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.
336 questions
asked 2024-09-28T08:56:58.08+00:00
PEERAWAT SINGKRAM 0 Reputation points
commented 2024-09-30T02:22:18.2666667+00:00
JasonPan - MSFT 5,796 Reputation points Microsoft Vendor
1 answer

Azure Pipeline Build doesn't fail but stuck on ##[debug]Agent environment resources

I inherited a project, its a Core 8 Asp.Net web app. The build step successfully builds, but then hangs. The next step in the build pipeline never fires and all that is output in the verbose logs are this, the build never stops. Why is the build step not…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,571 questions
asked 2024-08-21T18:01:42.1633333+00:00
Brian 25 Reputation points
answered 2024-09-29T13:07:08.82+00:00
A SIVAGAYATHRI 0 Reputation points
2 answers

WebSockets in .NET Core

The Client WebSocket Object has ReceiveAsync() method with two overloads. One with ArraySegment<Byte> and other one is Memory<Byte>. Which one to use under which scenarios with an example? I have a requirement where I am sending smaller size…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,571 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,962 questions
asked 2024-09-28T04:24:04.84+00:00
net 6 newbie 121 Reputation points
answered 2024-09-28T15:49:15.65+00:00
Bruce (SqlWork.com) 65,576 Reputation points
2 answers One of the answers was accepted by the question author.

Using IDENTITY_INSERT with FK_ChildTable_ParentTable?

Hello, Wrapping SaveChanges with ON and OFF works fine with individual tables. But not in case of a parent-child relationship where a foreign key exists. Microsoft.Data.SqlClient.SqlException (0x80131904): Cannot insert explicit value for identity column…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
743 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,571 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,865 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,962 questions
asked 2024-09-16T22:33:43.8366667+00:00
Joyce 100 Reputation points
edited a comment 2024-09-27T09:47:13.0733333+00:00
Joyce 100 Reputation points
1 answer One of the answers was accepted by the question author.

Assistance Required for Accessing Microsoft Graph API Delegated Permissions Without User Interaction

Hi Guys, Previously, we utilized a console application to access users' mail content within our application (registered as a confidential client in Azure Active Directory). However, we now require the ability to access Microsoft Graph API's delegated…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,571 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,113 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,902 questions
asked 2024-09-27T05:46:58.1766667+00:00
Naresh kumar 40 Reputation points
accepted 2024-09-27T08:08:44.9566667+00:00
Naresh kumar 40 Reputation points
3 answers

How to fix this " Error There was an error running the selected code generator: 'startIndex cannot be larger than length of string. (Parameter 'startIndex')' "

Hello I got this error issue. When I tried to create New Scaffolded Item > Selected ' MVC Controller with views, using Entity Frame Work I use Microsoft Entity Frame work version 8.0.8 Version and the Frame Work Design I use 8.05 Window 11 Net 8.0…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,571 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,494 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,142 questions
asked 2024-09-25T06:18:44.01+00:00
NADA KETMEK 0 Reputation points
commented 2024-09-27T07:56:27.77+00:00
JasonPan - MSFT 5,796 Reputation points Microsoft Vendor
0 answers

System.Runtime.CompilerServices.AsyncTaskMethodBuilder

Hi, I am getting the below mentioned error. Don't know why it was showing. I guess this comes due to I migrate the dotnet version from 6 to 8. can you resolve my issue? { "error": "Error getting value from 'Context' on…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,571 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,494 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.
336 questions
asked 2024-09-25T13:47:25.9333333+00:00
Stivin 0 Reputation points
commented 2024-09-27T05:50:17.7+00:00
Stivin 0 Reputation points
2 answers

MSIS7012 : The same client browser session has made '6' requests in the last '1' seconds. Contact your administrator for details

We have a .Net application which we implemented ADFS WSFED in it. Its working fine in local but when we deployed we are facing this error. For Dev in URL I see Realm is HTTPS but wreply is HTTP. But for local I see Realm is HTTPS but wreply is HTTPS.…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,571 questions
Active Directory Federation Services
Active Directory Federation Services
An Active Directory technology that provides single-sign-on functionality by securely sharing digital identity and entitlement rights across security and enterprise boundaries.
1,261 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,902 questions
asked 2024-09-16T02:49:42.47+00:00
rody 0 Reputation points
commented 2024-09-26T20:36:14.1033333+00:00
James Hamil 24,841 Reputation points Microsoft Employee
0 answers

How to fix An operation was attempted on a nonexistent network connection. (0x800704CD)

Hi guys I got an exception error like the below stack trace. I suspect the problem is when reading the response data, or reading the data for the request. Could you tell me why this exception occurred and how to fix it? Exception Type :…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,571 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
999 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.
30 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,807 questions
asked 2024-06-20T10:15:45.9166667+00:00
Sejune Oh 10 Reputation points
commented 2024-09-26T13:22:09.4966667+00:00
Ermolaev, Nikita 0 Reputation points
1 answer One of the answers was accepted by the question author.

Why am I getting this Content Policy error?

Hi all; I have added the following to my Blazor Interactive Server app using NWebSec: app.UseHsts(options => options.MaxAge(days: 30)); app.UseXContentTypeOptions(); app.UseXXssProtection(options =>…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,571 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,584 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,962 questions
asked 2024-09-15T14:37:02.18+00:00
David Thielen 3,121 Reputation points
edited the question 2024-09-25T19:29:52.3666667+00:00
IoTGirl 3,126 Reputation points Microsoft Employee
1 answer

Infinite Redirect Login Loop with Keycloak OIDC in ASP.NET Core 8.0 Blazor (Radzen) Application

Hello everyone, I'm currently facing an infinite redirect loop issue when integrating Keycloak for OpenID Connect (OIDC) authentication in my ASP.NET Core Blazor Server application using Radzen. Technologies Involved: Keycloak (24.0.4) as the Identity…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,571 questions
asked 2024-09-25T13:39:57.89+00:00
Julian M 0 Reputation points
answered 2024-09-25T16:39:21.11+00:00
Bruce (SqlWork.com) 65,576 Reputation points
1 answer One of the answers was accepted by the question author.

Cognitive Services - Text to speech REST API - not all words are converted when selecting ogg as output format

calling text to speech API selecting ogg-16khz-16bit-mono-opus not synthesizing all the words. For Example: Text: "First Floor" It is converting only first word, and the word Floor is not getting synthesized.

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,743 questions
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,183 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,571 questions
asked 2024-08-08T07:18:46.1233333+00:00
edited the question 2024-09-25T12:19:54.3166667+00:00
Teddy Gyabaah 0 Reputation points Microsoft Employee
3 answers

Illegal characters in path.

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

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,571 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,142 questions
asked 2023-03-27T02:41:25.43+00:00
Abdul Rehman 5 Reputation points
answered 2024-09-25T10:44:29.9366667+00:00
Martijn Coppoolse | DGMR 0 Reputation points
1 answer One of the answers was accepted by the question author.

Migration from .NET 6.0 to .NET 8.0: Compatibility and Considerations

Hello everyone, We have a solution with a vast number of projects, and we are aiming to migrate some of the components to .NET 8.0. Before proceeding with the migration, we want to ensure that we will have full compatibility and support for it. Our App…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,877 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,571 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,494 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,807 questions
asked 2024-09-19T01:46:58.35+00:00
Juan-4116 20 Reputation points
commented 2024-09-25T09:35:07.6866667+00:00
ajkuma 26,216 Reputation points Microsoft Employee
3 answers One of the answers was accepted by the question author.

How to Update-Database in PM console when getting "Could not load assembly..." error?

Hello, I cannot apply migrations to database by Package Manager Console command Update-Database. On every attempt I get error: Could not load assembly "My_Project". Ensure it is referenced by the startup project 'My_Project'. Before mentioned…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
743 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,571 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,865 questions
asked 2024-09-13T13:56:24.9266667+00:00
Filip Veselý 20 Reputation points
edited the question 2024-09-25T03:15:06.13+00:00
Jack J Jun 24,506 Reputation points Microsoft Vendor