Skip to main content

All Questions

Tagged with
0 votes
0 answers
15 views

InvalidCastException: Unable to cast object of type 'System.String' to type 'System.Guid'. ASP.NET

I have a web app where basically everything works. Today I wanted to extend my IdentityUser with ApplicationUser so the user can have FirstName, LastName and ProfilePicture. The problem comes here. ...
32 denka's user avatar
0 votes
1 answer
540 views

Enable content on row hover in Blazor wasm

I have a Blazor table component with a variable number of rows, based on a collection: <table id="MyTable" class="table table-hover"> <thead> <tr> ...
Divan's user avatar
  • 402
1 vote
0 answers
102 views

Reload AssemblyInfo.cs after RunTime modification in c# Web app

I am working on a c# project, where after runtime, I add dependencys into AssemblyInfo.cs using File, based on elements I retrieve from a database. When i work on local, after the file is modified, ...
Gauthier Adrien's user avatar
7 votes
1 answer
4k views

Method not found: 'Boolean Microsoft.IdentityModel.Tokens.TokenUtilities.IsRecoverableConfiguration

I have a .NET 6 web API that attempts to validate a JWT Bearer token with the following code: objReturn = new JwtSecurityTokenHandler().ValidateToken(strJwtToken, new TokenValidationParameters ...
J Weezy's user avatar
  • 3,865
1 vote
0 answers
40 views

External executables being automatically shut down when Web App is deployed on Azure Web App

I have a Web App / API that lets you run instances of a simple .exe file when you do /api/startnewfleet. This works perfectly on my machine and I can run the command from any other device on my LAN ...
Brandon Zeier's user avatar
0 votes
1 answer
1k views

C# / ASP.NET Core 6 with AngularJS

I want to create an ASP.NET Core 6 MVC web app with AngularJS - it this possible? I tried in Visual Studio 2022 to create such a web app with Angular, but that is a newer version of Angular. Can I ...
Amatour's user avatar
-1 votes
1 answer
162 views

Redirect public ip to domain name

I need that when someone enters my ASP.NET MVC / C# website typing its public ip in the browser, the user is redirected to the domain name. Thanks Regards For example if I write 142.250.0.139, the ...
Cristian Fuentes's user avatar
0 votes
1 answer
257 views

How to display the title instead of the ID in URL in Razor page

How can I use the title instead of displaying the ID at the end of the URL? I have developed a website using .NET 6 and Razor Page. In this website, there is a blog section which can be accessed by ...
Ali's user avatar
  • 5
-1 votes
1 answer
63 views

Cannot increase the counter inside a for loop

<div class="forecast-list"> @for (int i=1; i<13;i++) { <div style="position:relative;left:@onScreenPosition;">@CalcRevenuesChange(Incomes[i]....
Nikita Gelfman's user avatar
0 votes
2 answers
438 views

ASP.NET Core MVC model on next page

0 I have an ASP.NET Core MVC web project with 4 pages. The first page is a kind of login. Two text fields with a Next button. The second page shows data about the logged in person and contains two ...
Kojote's user avatar
  • 15
1 vote
0 answers
90 views

Razor Login page with sqlite and each user having its own session

I want to create a login script for my razor page. The Razor project is using SQLite as a database. I don't know where to store current session users info, to work with it. Right now I have a OnPost ...
Drapys's user avatar
  • 52
0 votes
1 answer
98 views

Pass client COM port data to Web Form on Remote IIS Using C#

I have 3 Digital Wind Readers connected on 3 Windows 11 Machines through COM Port. Using Winforms Application in C#, I was able to read the Wind Speed and show it in a Textbox Control. What I want is ...
HoOb CoMpUtEr's user avatar
1 vote
1 answer
47 views

How to recreate and preserve the data of table is dynamically created in code behind?

I have very simple web page with one text box, two buttons. In text button I write username and by clicking on search button I get all users that match the search parameter and in code behind create ...
pavlenych's user avatar
0 votes
1 answer
62 views

How to change a cshtml web pag dropdwon to a combobox with text input

I have a section of a cshtml web page that has a dropdown box, but I need to use a combobox with a input instead. Here is the code to populate the dropdown box. I am new to web development so any ...
Tom's user avatar
  • 1
-3 votes
1 answer
600 views

Use .NET 6 class library in >NET 4.7 ASP.NET Website [duplicate]

Is that possible that a class library which is created in >NET 6 can be used as reference in ASP.NET Website created in .NET 4.7 framework I didn't try any thing yet
Imran Yaqoob's user avatar

15 30 50 per page
1
2 3 4 5
138