24,558 questions with .NET-related tags

Sort by: Updated
1 answer

HttpClient.Send not supported in mac

Hi, HttpClient.Send(request. HttpCompletionOption.ResponseHeaderRead) => not supported in mac why? it work on windows.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,065 questions
asked 2024-06-17T12:39:02.6033333+00:00
Dani_S 3,086 Reputation points
answered 2024-06-18T21:10:23.4466667+00:00
Michael Taylor 50,106 Reputation points
1 answer

Calling an Action to Render View located in a Different Top Level Folder - MVC 5

I use something like this if controllers and views are in the same top level folder. <li>@Html.ActionLink("Classroom", "Index", "MyViewFolder")</li> How do achieve the same if controllers and views are in…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,291 questions
asked 2024-06-18T14:06:09.7233333+00:00
Malam Malam 226 Reputation points
commented 2024-06-18T20:54:46.3333333+00:00
Michael Taylor 50,106 Reputation points
2 answers One of the answers was accepted by the question author.

How to Run Asp.net website project as a web Application Project

Hello, I have just assumed a duty to take over development of a asp.net project. It happened that the project is a asp.net website project, and I discovered the the former developer did not create App_code folder, when I brought the solution to my VS…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,371 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,497 questions
asked 2024-06-17T13:06:17.44+00:00
Emeka Okoye 86 Reputation points
accepted 2024-06-18T20:47:40.9+00:00
Emeka Okoye 86 Reputation points
1 answer

Is controller suffix is mandatory in .NET Core (.NET 6)

public class Home : controller { public IActionResult Index() { return view(); } } I created above class without controller suffix. And below is my routing in startup.cs class .NET 6: app.UseEndpoints(endpoints => { …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,291 questions
asked 2024-06-18T16:11:45.6+00:00
Amit 671 Reputation points
answered 2024-06-18T20:29:40.5933333+00:00
Bruce (SqlWork.com) 59,131 Reputation points
2 answers One of the answers was accepted by the question author.

How read excel file and save into database

Hello guys, Is there any tutorial reading excel files and inserting them into a database with a .net core console application? Thanks in advance.

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
324 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,137 questions
asked 2021-11-07T16:43:33.453+00:00
Cenk 981 Reputation points
commented 2024-06-18T20:10:20.5066667+00:00
Elento, Richard 0 Reputation points
1 answer

How to use AddScope in Blazor .NET 8

I am currently learning Blazor in .NET 8 (server) and I'm having trouble understanding a key concept. I need to have a persistent service per user, so I can't use a singleton. The thing that makes sense is a scope, from all the stuff I've read online…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,456 questions
asked 2024-06-18T13:29:52.3533333+00:00
Gabriel 0 Reputation points
answered 2024-06-18T19:31:48.9066667+00:00
Bruce (SqlWork.com) 59,131 Reputation points
1 answer One of the answers was accepted by the question author.

Access and read all SMS on Android phone with .NET MAUI

For an application that, as a part of its functionality, can read all stored SMS on an android phone, can you give general directions what to read exactly to learn and implement it in a .NET MAUI project? I'm a beginner. I've only worked with MVC, WPF…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,065 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,497 questions
asked 2023-11-21T03:48:09.5466667+00:00
MSCollege3000 120 Reputation points
commented 2024-06-18T19:28:16.64+00:00
Gene Magpayo 0 Reputation points
3 answers One of the answers was accepted by the question author.

What do the "/" and "~" signs mean in file path usage?

Hi, If you allow, I would like to ask a question. I want to access "b5.jpg" in CoreBlogTema from About/Index. Which one should I start with "/", "./", "../", "~/" in the file extension? Can you explain…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,291 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,497 questions
asked 2024-06-15T11:01:15.27+00:00
Yalçın Mete 20 Reputation points
commented 2024-06-18T19:16:57.34+00:00
Yalçın Mete 20 Reputation points
0 answers

Hamburger menu freezing on one view only in Release build

I have a view in my AppShell that works totally fine in the Debug build. When I navigate to that view in the Release build using the hamburger menu, the application freezes on the screen that I was on prior to navigation. I can still use the hamburger…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,065 questions
asked 2024-06-18T19:09:03.39+00:00
Fred Kozlowski 0 Reputation points
1 answer

IIS will not recognize the default document for an ASP.NET Core Web App (Razor Pages)

I created an ASP.NET Core Web App (Razor Pages) app in Visual Studio 2022. The site works when debugging on my local machine. It starts, redirects to my AAD login screen, and then forwards the user to the Index.cshtml page as expected. However, when I…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,291 questions
asked 2024-06-18T13:43:10.6+00:00
Dyllan Jones 0 Reputation points
commented 2024-06-18T19:03:33.44+00:00
Bruce (SqlWork.com) 59,131 Reputation points
1 answer

Save All GridView PageIndex Rows showing Duplicate rows in Database

Please help. How to Browse all 3 GridView Pages above and INSERT all rows into DB on Save Button click. Using below code is showing Duplicate row on last gridview page which is having only one record in its page 3. Thanks public void SaveButton(int…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,371 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,497 questions
asked 2024-06-18T15:39:35.17+00:00
Imoleayo Emmanuel 20 Reputation points
answered 2024-06-18T18:59:30.0266667+00:00
Albert Kallal 5,221 Reputation points
2 answers

How do you set the default document programmatically in the Program.cs file of an ASP.NET Core Web App (Razor Pages)

I have created a new app using the ASP.NET Core Web App (Razor Pages) template in Visual Studio 2022. I have the app linked up to Azure AD so when a user goes to the site it redirects them to authenticate through AAD before directing them back to the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,291 questions
asked 2024-06-17T19:45:33.41+00:00
Dyllan Jones 0 Reputation points
commented 2024-06-18T17:58:58.4566667+00:00
AgaveJoe 26,676 Reputation points
0 answers

¿Cómo soluciono el problema "Índice fuera de los límites de la matriz."?

Me encuentro realizando un modelo de clasificación de imagenes con dimensiones de aproximadamente 200x460 en escala de grises por imagen, dónde utilizo como dataset 4 clases de imagenes distintas con cerca de 250 imagenes cada una divididas por carpetas.…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,532 questions
.NET Machine learning
.NET Machine learning
.NET: Microsoft Technologies based on the .NET software framework.Machine learning: A type of artificial intelligence focused on enabling computers to use observed data to evolve new behaviors that have not been explicitly programmed.
153 questions
asked 2024-06-18T17:14:26.28+00:00
Alonso Guevara 0 Reputation points
0 answers

Perform basic operations on numbers in C# .net editor not working

I am working on some of the trainings in the "Perform basic operations on numbers in C#". Yesterday the editor was working just fine but today it is taking 10-15 minutes and when its done thinking it just give errors even though i have tried…

.NET Training
.NET Training
.NET: Microsoft Technologies based on the .NET software framework.Training: Instruction to develop new skills.
5 questions
asked 2024-06-18T15:35:10.8633333+00:00
Bradley 0 Reputation points
edited the question 2024-06-18T16:31:32.2566667+00:00
Pradeep M 1,055 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Deletion from a datagridview on the second attempt returns null exception if the column is hidden, but works fine if vissible.

my program loads a table from sqlite3 and displays the content in a datagridview form with c#. I am sorting the table entries according to name and some values which gives out of order ID's to display in the datagridview. The program works fine if the ID…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,864 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,497 questions
asked 2024-06-17T16:30:40.47+00:00
George Panayiotou 0 Reputation points
answered 2024-06-18T16:16:52.3933333+00:00
George Panayiotou 0 Reputation points
0 answers

how to upgrade sqlproj,dtproj file to SDK style?

The solution has csproj and sqlproj (dtproj) files. Projects targetframework is 4.6.2 want to upgrade it .net8.0. Using upgrade-assistant upgrade csproj file . Should I upgrade sqlproj file also ? and if yes How I can do that? Any documentation .…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,532 questions
asked 2024-06-18T16:01:18.62+00:00
namiq genciyev 0 Reputation points
2 answers

How to eliminate if end user open the same ASP.NET page in another tab

This is simple question. I am developing ASP.NET application and sharing the hosted URL to end user. some times end user opens the same page in multiple tab. i want to control, either should not allow the same page in another tab or redirect some…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,371 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,497 questions
asked 2024-06-18T14:39:10.5133333+00:00
Gani_tpt 2,046 Reputation points
answered 2024-06-18T15:49:27.65+00:00
Bruce (SqlWork.com) 59,131 Reputation points
0 answers

Web app with Entra authentication got 403 error

Webapp1 is a asp.net 8.0 app with Entra as authentication provider. The registered app is app1. Webapp1 used to work but I got the 403 app after a deployment. The error page showed "Access to webapp1.azurewebsites.net was denied. You don't have the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,291 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
815 questions
asked 2024-06-17T20:06:33.8233333+00:00
Ben Wilson 0 Reputation points
commented 2024-06-18T15:42:48.8166667+00:00
Ben Wilson 0 Reputation points
2 answers One of the answers was accepted by the question author.

Save file from somebody to my web Blazor.I try browse in internet but not found how to start write the code.Let said put that file int TextBox and then need to upload,,How

@page "/" @rendermode InteractiveServer @inject NavigationManager Navigation <PageTitle>Home</PageTitle> <h1>Hello, world!</h1> Welcome to your new app. <p></p> @foreach (var image in images) { <div…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,456 questions
asked 2024-06-18T10:04:36.0633333+00:00
MIPAKTEH_1 220 Reputation points
commented 2024-06-18T14:48:06.76+00:00
MIPAKTEH_1 220 Reputation points
1 answer

How to publish a WASM app for offline use

I have a Blazor WASM app in VS 2022 Community v 17.10.1 that I am trying to run offline, but am getting several "failed to load resource" and one "failed to register a Service Worker" exceptions as shown below. I followed these…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,456 questions
asked 2024-06-16T17:06:09.7833333+00:00
Steve Rehling 65 Reputation points
edited the question 2024-06-18T14:38:43.4066667+00:00
Steve Rehling 65 Reputation points