7,879 questions with ASP.NET-related tags

Sort by: Updated
0 answers

Entity Framework v8, on SaveChangeAsyc() intserts record twice

public async Task AddAsync<T>(T entity) where T : class { await _dbContext.Set<T>().AddAsync(entity); // use only context and test await _dbContext.SaveChangesAsync(); } On SaveChangesAsync() 1 duplicate record is inserted.

ASP.NET Core Training
ASP.NET Core Training
ASP.NET Core: A set of technologies in the .NET Framework for building web applications and XML web services.Training: Instruction to develop new skills.
41 questions
asked 2025-03-12T13:41:09.5866667+00:00
Reema George Dass 0 Reputation points
2 answers

Unicode and ASCII may not be encoding correctly

Hi, I am using visual studio 2022 to host a .NET 8 MVC web application project. I am trying to read a text file and write it to another text file.    This is the code I am using: string wdata = System.IO.File.ReadAllText(file);            // This is the…

ASP.NET Core Training
ASP.NET Core Training
ASP.NET Core: A set of technologies in the .NET Framework for building web applications and XML web services.Training: Instruction to develop new skills.
41 questions
asked 2025-03-06T22:35:01.11+00:00
iqworks Information Quality Works 316 Reputation points
commented 2025-03-12T06:42:26.65+00:00
Ping Ni-MSFT 4,890 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

Angular, ASP.NET CORE, SQL SERVER, API and DB hosted on Azure 500 error

Hi, I have my ASP.NET CORE hosted on Azure, the SQLServer DB is also hosted on Azure. Before deploying the Angular front end I decided to test it to see if it would hit the deployed backend and database. I was getting a CORS error but, now that I have…

ASP.NET Core Training
ASP.NET Core Training
ASP.NET Core: A set of technologies in the .NET Framework for building web applications and XML web services.Training: Instruction to develop new skills.
41 questions
asked 2025-03-06T03:07:25.9466667+00:00
hpbcrowe 51 Reputation points
commented 2025-03-12T04:16:04.6+00:00
hpbcrowe 51 Reputation points
1 answer One of the answers was accepted by the question author.

Event ID 1309 Source: ASP.NET 4.0.30319.0: Event code: 3005 Event message: An unhandled exception occurred. How to solve it?

工程师您好: AD环境中每台mail服务器上都有warning告警事件id 1309。具体信息如下: 消息 : Event code: 3005 Event message: 发生了未经处理的异常。 Event time: 2025/2/28 7:12:52 Event time (UTC): 2025/2/27 23:12:52 Event ID: 2d12345aeaf1234c8be12d60a123456f Event sequence: 144 Event occurrence: 143…

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.
395 questions
asked 2025-03-11T09:19:15.65+00:00
冉凡瑞 1,140 Reputation points
accepted 2025-03-12T02:14:55.6066667+00:00
冉凡瑞 1,140 Reputation points
2 answers One of the answers was accepted by the question author.

Microsoft.Bcl package dependency issue

Hi, I recently came to know that Microsoft.BCL NuGet package is deprecated. We have been using this package as a dependency with other NuGet packages in our product. While I was upgrading the installed NuGet packages in our project there I…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 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.
395 questions
asked 2022-12-30T19:07:35.16+00:00
Bhupinder Singh 26 Reputation points
commented 2025-03-11T20:14:30.41+00:00
Bruce (SqlWork.com) 72,276 Reputation points
1 answer

Web App taking high CPU when I am loading a particular web page.

My web app CPU going high when I am uploading a web page while the copy of uploading page working fine without any issue of CPU. Actual Page = mpn Page Copy = mpn1 I don't know what's going on

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.
395 questions
asked 2025-02-22T08:41:17.0033333+00:00
jasmeet ghai 0 Reputation points
commented 2025-03-11T19:05:07.6466667+00:00
Siva Nair 735 Reputation points Microsoft External Staff
2 answers

Visual Studio Angular template will not publish correctly

When trying to publish an Angular project the wwwroot folder does not get created and published. This happens with a completely new unmodified project using the template "Angular and ASP.NET core". I'm on Visual Studio 17.13.2. I've tried…

ASP.NET Core Training
ASP.NET Core Training
ASP.NET Core: A set of technologies in the .NET Framework for building web applications and XML web services.Training: Instruction to develop new skills.
41 questions
asked 2025-03-09T12:37:30.3666667+00:00
Gareth Walker 26 Reputation points
commented 2025-03-11T15:46:17.3133333+00:00
Bruce (SqlWork.com) 72,276 Reputation points
0 answers

Trying to run a Crystal Report from my vb.net website

I have written a website using Visual Studio 2022, vb.net. I am trying to run a Crystal Report from an .aspx file. When I publish the page locally or on the server, all I get is a blank browser window. No errors, no messages. I don't know how to get…

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.
395 questions
asked 2025-03-11T13:36:05.9233333+00:00
Sherry R 0 Reputation points
edited the question 2025-03-11T14:39:48.2666667+00:00
Jiachen Li-MSFT 33,781 Reputation points Microsoft External Staff
1 answer

httpcontext Class giving path as /:undefined in Asp.Net Core Web API Project

We have an Web API (.Net Core) application installed in Test and PROD server, we are logging incoming request paths, using httpcontext Class. But this class is giving path as /:undefined, sometimes as…

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.
395 questions
asked 2025-03-07T11:12:27.09+00:00
Ali basha Syed 20 Reputation points
commented 2025-03-11T09:55:52.7033333+00:00
JasonPan - MSFT 6,696 Reputation points Microsoft External Staff
1 answer

Facing an issue with cookieless Forms Authentication in an ASP.NET sub-application that is integrated with a main application built in Python

Hello, We are facing an issue with cookieless Forms Authentication in an ASP.NET sub-application that is integrated with a main application built in Python. The main application (Python) and sub-application (ASP.NET) work together.The ASP.NET…

ASP.NET Core Training
ASP.NET Core Training
ASP.NET Core: A set of technologies in the .NET Framework for building web applications and XML web services.Training: Instruction to develop new skills.
41 questions
asked 2025-02-21T05:57:30.9833333+00:00
Akshayaa Kalyanavenkatesh 20 Reputation points
edited a comment 2025-03-11T07:28:20.3733333+00:00
Pradeep M 6,420 Reputation points Microsoft External Staff
2 answers

how to set date format in eval asp.net

Hello this is my date eval <%#Eval("Date", "{0:dd/MMM/yyyy}")%> when i convert to excel i want excel filter to be look like this so what to change my eval so that it can look like as below

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.
395 questions
asked 2025-02-25T08:36:02.3033333+00:00
RAVI 1,056 Reputation points
edited a comment 2025-03-08T11:39:16.8133333+00:00
AgaveJoe 29,871 Reputation points
4 answers One of the answers was accepted by the question author.

problem of aspnetcore-browser-refresh.js connection failed.

The version of my browser is Chrome 98.0.4758.102(The newest version of Chrome). Every time I debug my asp.net 6 projects with VS 2022(The newest version of VS 2022), the browser always reports the error as below: This problem occurs even I…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,793 questions
asked 2022-02-18T03:34:15+00:00
melon NG 291 Reputation points
answered 2025-03-07T21:09:35.6033333+00:00
Werner Van Aswegen 0 Reputation points
1 answer

https://onedrive.live.com/embed iframe shows to much space around the document

Hi, I am glad to see a way to show my formatted MS word docs inside of my web pages. But Onedrive shows to much space around the document when I display it in a iframe.     I am not sure about the CSS I need to close the space here.   Or maybe there are…

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.
395 questions
asked 2025-02-27T02:08:02.0233333+00:00
iqworks Information Quality Works 316 Reputation points
commented 2025-03-07T08:14:32.8533333+00:00
XuDong Peng-MSFT 11,656 Reputation points Microsoft External Staff
2 answers

Which IIS Host Module should I use for .Net 8 Core Web Api?

I have .Net Web Api that has been running for some time on client Windows 2022 Sever under IIS10. It uses AspNetCoreModuleV2 host module. Now client has uninstalled ASP NET Core 2.2 Host bundle that provided AspNetCoreModuleV2 due to End Of Life…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,793 questions
asked 2023-12-21T01:06:47.42+00:00
Shastri, Shrinivas 0 Reputation points
commented 2025-03-07T06:50:10.1333333+00:00
Balraj J 0 Reputation points
1 answer One of the answers was accepted by the question author.

I cant see a component which i added as MyButton.razor

I added a component like this: Right-click on pages>add > razor component and this the code: @page "/MyPage" <h3>My Page</h3> <p role="status">Current Time: @currentTime</p> <button class="btn…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,793 questions
asked 2025-02-03T15:30:22.7266667+00:00
Nafim 25 Reputation points
edited the question 2025-03-07T05:37:14.51+00:00
Zhi Lv - MSFT 33,161 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

I have a question about server side rendering of Blazor web app.

Hi, I am a GUI application developer. Our company is using Blazor web app. We are enthusiastic about using the attractive framework you provide and would like to ask some question. Does the code block (@code) created in the .razor file work by creating…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,793 questions
asked 2025-02-20T00:59:01.8933333+00:00
john yoon 20 Reputation points
edited the question 2025-03-07T05:34:04.29+00:00
Zhi Lv - MSFT 33,161 Reputation points Microsoft External Staff
2 answers One of the answers was accepted by the question author.

Why are the tags related to ASP.NET and C# not shown?

Why are the tags related to ASP.NET and C# not shown? Result:

ASP.NET Core Training
ASP.NET Core Training
ASP.NET Core: A set of technologies in the .NET Framework for building web applications and XML web services.Training: Instruction to develop new skills.
41 questions
asked 2025-03-06T03:33:19.4933333+00:00
SurferOnWww 3,906 Reputation points
commented 2025-03-07T04:01:44.3433333+00:00
Pradeep M 6,420 Reputation points Microsoft External Staff
1 answer

OAuth implementation in web api

Hi Community members, How can I create oauth in web api where validation is not in cloud

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.
395 questions
asked 2025-03-06T15:38:41.3166667+00:00
90036475 0 Reputation points
commented 2025-03-07T03:46:30.2266667+00:00
XuDong Peng-MSFT 11,656 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

aspx how to to format a column as Currency

i am working on aspx page it is connected to sql my code is vb.net in a GridView column payment how can i format in code this column as Currency Thanks in advence

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.
395 questions
asked 2025-03-04T20:46:22.15+00:00
Simon 426 Reputation points
accepted 2025-03-06T13:48:30.8266667+00:00
Simon 426 Reputation points
2 answers One of the answers was accepted by the question author.

to use Tag like windows desktop software

i am working on a aspx page translet a windows desktop ssoftware using vb.net is it posible to use use tag like in like in windows desktop software by design the aspx page <asp:TextBox ID="Txt1_0"…

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.
395 questions
asked 2025-03-05T19:41:04.2233333+00:00
Simon 426 Reputation points
answered 2025-03-06T13:41:44.36+00:00
Simon 426 Reputation points