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

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

OAuth implementation in web api
Hi Community members, How can I create oauth in web api where validation is not in cloud
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
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"…