How to modify .Aspnetcore.Identity.Application Cookie name?
I wanna hide that i use ASP.NET Core. How to do this?
Paging Issue in asp.net MVC
I am trying to add paging but get the error: CS1061: 'IEnumerable<Subject>' does not contain a definition for 'PageCount' and no accessible extension method 'PageCount' accepting a first argument of type 'IEnumerable<Subject>' could be…
Sporadic System.Net.Http.HttpRequestException: Error while copying content to a stream.
Hi, I receive this sporadic error in subject while calling HttpClient.PostAsync(url, content). I want to make sure that this is not related to my code. public async Task<HttpResponseMessage> UploadPhotoAsync(string productId, MediaGallery…
The type initializer for 'Microsoft.Data.SqlClient.SqlAuthenticationProviderManager' threw an exception.
Getting error while connecting db with .net core Application
My aurhorization shows fore alittle my mainlayout and then redirect to unauthorizedpage
<Router AppAssembly="@typeof(Admin).Assembly"> <Found Context="routeData"> <AuthorizeRouteView RouteData="@routeData"…
How do I override the default Blazor scaffolding template in Visual Studio 2022
I want to edit the scaffolding template for Blazor CRUD pages, but my changes to the template are not being reflected in the output. I tried researching this issue, and the closest answers I could find are how to edit Razor templates, or MVC component…
ASP.NET azure hosted app / sql server Works on localhost only
When I run my simple CRUD app on localhost it works really good. Hint: It is using SQL server to insert data and server is hosted on my Azure Subscription inside same Resource Group Deployed app : myAzureWebsitesLink.net Not working route : School -…
Not able to Insert Image data for two images Postgresql
[HttpPost] [ValidateAntiForgeryToken] public async Task<IActionResult> Create([Bind("Sno,No,Topic,QuestionTitle,Opt1,Opt2,Opt3,Opt4,Answer,Time,Correct,Solution,Imagedata,Imagesol")] Question question, IFormFile…
The package Microsoft.AspNetCore.SignalR is deprecated. May I know the latest package for the same.
The package Microsoft.AspNetCore.SignalR is deprecated. May I know the latest package for the same.I am panning to work with .Net 6.
StackOverflowException after upgrading from .Net 6 to .Net 8
Hi, I have upgraded 5 projects in my solution from .Net 6 to .Net 8 using upgrade assistant in Visual Studio. When I run the solution, StackOverflowException is being thrown and Swagger is not loading. Looks like onchangetokenfired() method is being…
How to add a different CSS to a razor page in Blazor WASM?
I am working on a Blazor WASM e-commerce application using the .NET 6 old version with a default template. I want to add a new razor page with a different look while keeping the old ones in the project. How can I achieve this? Specifically, I want to add…
In .Net 8 Blazor web app template application how I can use azure active directory authentication
Hello, As we know when we create an application using Blazor Web App Template in .Net 8, we get project one for Server and another one for Client. so how azure authentication will apply/configure in this application. More simply I just wanted know…
Use WWF - Windows Workflow Foundation or Similar Workflow tools in current latest .NET CORE application?
Dear Team - WWF - Windows Workflow Foundation in current/latest .NET CORE application My current project is much secured and contains NATIONAL SECURE DATA, so customer is bit hesitant to go with Workflow tools like ELSA Workflow etc as those are…
How to call another view from one view in MVC?
In my main MVC project (Proj1) form's menu (Shared_Menu,cshtml), I've added a new menu item to open up a view from another project (proj2) that has been added to the solution. How do I call the proj2's view when the menu item in proj1 is clicked?
How to Github azure/publish action fails to start app?
Hello, I've spent 3 days going around in circles. have a repo that contains a SOURCE/ folder within which is a *.sln that in turn references an App.Host/App.Host.csproj which is a .net 8.0 asp.mvc app, which locally it builds and runs. …
Databricks Simba Spark ODBC .NET8 C# Driver Parameters in SQL Queries
Hello, I'm using Simba ODBC driver v2.8.0 in order to query data from my azure databrick sql warehouse into a .net 8 Asp.net Api App. The ODBC driver works fine using plain text query but i need to parametrize the query. Searching around I found that it…
What is a good way of track link clicks in Asp.Net Core 7 MVC app in Application Insights?
I have an MVC app with several <a> tags, and I want to have a way of tracking link clicks, preferably without doing redirects (i.e., without changing link addresses). Is there any way this can be done? and the link clicks are tracked on Application…
When running the webserver, "System.Net.Sockets.SocketException (97): Address family not supported by protocol" message is displayed.
Hi experts: I use asp.net core 8 write a web server app in visual studio 2022, when running on some embedded Linux system, will report the error "System.Net.Sockets.SocketException (97) : Address family not supported by protocol.". The whole…
Confused about how to use Microsoft.AspNetCore.SystemWebAdapters while trying to port from old ASP.NET website to new ASP.NET Core web app
https://stackoverflow.com/questions/78589165/confused-about-how-to-use-microsoft-aspnetcore-systemwebadapters-while-trying-to Can some one tell me how to approach this?
Unable to get access token for microsoft store service
Hi, I am building an app for the Microsoft Store. I require the app's server to connect to the microsoft store to validate purchases. I'm using the Microsoft.StoreServices API provided at: https://github.com/microsoft/Microsoft-Store-Services Basically…