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…
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…
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…
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…
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"…
export a gridview to a pdf or to excel file
in aspx page and i am using vb.net how can i export a gridview to a PDF or to Excel file thamks in advence
How to fix "Operation is not valid due to the current state of the object."
When I use aspnet-codegenerator I get this error even though I could use it normally before. How can I fix it? Thank you everyone !!
How to invalidate ".AspNet.Cookies" cookie on logout?
I have a .net application deployed to Azure. A penetration test finding called "Session Not Invalidated After Logout" is found. When an API Get request is sent along with .AspNet.Cookies while user is logged in, a successful response is…
Visual Studio 2022 Enterprise cannot create an ASP.NET using .NET8
I use Visual Studio 2022 Enterprise. Try to create an ASP.NET Web application using .NET8 framework. However, .NET8 is not listed in "Targeted framework drop list". How to create an ASP.NET Web Applicaiton using .NET8 framework? How to…
How to setup and access an ftp server in Windows Server 2019 with vb.net code?
I have written an app using webforms in visual studio 2019. I have setup a Windows Server 2019 on a server. With IIS, I am able to access my WebForms.aspx from the internet ok. I made an FTP server website, and also added ftp services to my first website…