Skip to main content

All Questions

Tagged with
0 votes
1 answer
51 views

Local ASP.NET Core application running on iis

I have a laptop that is connected to an access point running on it local ASP.NET Core application on IIS server. When I specify the gateway as 192.168.0.4, the server can be accessed (the application) ...
Husam Mazen Saba's user avatar
0 votes
1 answer
58 views

DriveItem Patch method with error in Graph Api

I'm creating an API with ASP.NET Core that accesses a list/drive with the graph api and at some point I need to update an item that was created in the drive library to add an ID (which is a custom ...
Bruno Bispo's user avatar
0 votes
0 answers
114 views

Unable to create a 'DbContext' of type ''. EF Core 8.0 migration

I got this error when Entity Framework Core tools attempt to instantiate my DbContext at design time. Despite having a proper constructor and registering the context correctly in Program.cs, the tools ...
moongazing's user avatar
0 votes
0 answers
80 views

EF Core 8 - Load many-to-many relationship results in NullReferenceException

I have an ASP.NET Core web application with a SQL Server database using EF Core 6. This works fine. Today I've tried to upgrade the application to .NET 8 but I'm experiencing problems in EF Core. I've ...
Pieterjan's user avatar
  • 3,556
0 votes
0 answers
43 views

How to make efficient algorithm that I can use to display posts for a user, similar to how Facebook does it

i'm working on a project that that will work similar to facebook, in my app i have a Posts Entity that a user can add. Those posts are available for other users on thier wall (a page where user can ...
Mateusz Rosiński's user avatar
0 votes
1 answer
45 views

NavigationManager.NavigateTo ignores base URI

I have an website developed in .net 8.0 blazor server side model. In my app i have specified base href in app.razor file <base href="/myapp/" /> it does append the myapp in images and ...
Saurabh's user avatar
  • 1,579
0 votes
2 answers
102 views

How to change localhost to local ip for a .NET 7 web application?

I've built a small web application using .NET 7. It works fine locally with https://127.0.0.1:1234 or https://localhost:1234. It uses the GET/POST API calls to get data from other computers and send ...
tyinde's user avatar
  • 5
0 votes
1 answer
61 views

.NET unable to make outbound connection (timeout)

On Linux, I've been having a really weird issue lately. This .NET code fails with a timeout. Using .NET 8.0.6 using var client = new HttpClient(); client.Timeout = TimeSpan.FromSeconds(5); var request ...
Etienne Charland's user avatar
0 votes
1 answer
95 views

Why is it imposible call a Length method on Tuple or ValueTuple instanses [duplicate]

When I try to call Length method it does not exist on 'Tuple' instanse Tuple<int, string> tuple = Tuple.Create(1, "1"); var l = tuple.Length; And i receive default error like ...
eeevance06's user avatar
0 votes
0 answers
75 views

Docker: exec format error, how to fix it?

I created dockerfile, ran it, but catched this exception: exec /usr/bin/dotnet: exec format error Dockerfile: FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base USER $APP_UID WORKDIR /app EXPOSE 8080 ...
zitiret's user avatar
2 votes
1 answer
216 views

HttpContext returning null on Blazor Login page

Last week I was working on my blazor web app .net 8 project and everything was working fine. Now I come back and I can't login anymore. My login page is throwing an error. Login.razor: @page "/...
Jeremy's user avatar
  • 165
-1 votes
2 answers
79 views

Universal way of extracting tag values out of XML document to a List<string> [duplicate]

I have a XML document being loaded into a webpage representing a single client looking like this: <!--?xml version="1.0" encoding="UTF-8" ?--> <html> <head&...
Matěj's user avatar
  • 95
0 votes
2 answers
56 views

Form in foreach in Razor view: Validation is shown to all the elements

Consider the following Razor code foreach(Person p in Model.Persons){ <form> @Html.TextBoxFor(m => p.Name) @Html.ValidationMessageFor(m => p.Name) @Html....
Alessandro's user avatar
0 votes
2 answers
84 views

Parsing data with a varying structure from XML to a List<string>

I have a XML data representing a single client loaded into a web browser such as this: <!--?xml version="1.0" encoding="UTF-8" ?--> <html> <head></head> <...
Matěj's user avatar
  • 95
0 votes
2 answers
71 views

web page needs to ignore mouse clicks

I created a blazor page to test proficiency. Imagine a typing program. But occasionally, the student will bump the mouse or trackpad causing the edit box to lose focus, invalidating the test. I think ...
BWhite's user avatar
  • 817

15 30 50 per page
1
3 4
5
6 7
428