Skip to main content

All Questions

0 votes
1 answer
133 views

404 when launching ASP.Net core web applications from Visual Studio 2022

This is the first time installing VS2022 on this computer. Any new projects I have tried launching from Visual Studio seems to launch without error but when I try to load the application through the ...
Jason Carr's user avatar
0 votes
1 answer
76 views

When i open or create a new Project, the path is not the project directory Visual Studio ASP.NET Core 6

As the title says, when I open an existing project or create a new project in Visual Studio the default path open is not the project directory. I only have tested with a console application project ...
LittleCat27's user avatar
0 votes
1 answer
235 views

VS Community 2022 cannot install dotnet-ef when i try to publish

When I clicked on publish in VS 2022, it gives a dialog to choose specifications of my release when I click on show all settings the EF migrations gives this error. Entity Framework Migrations X ...
RoOx's user avatar
  • 3
0 votes
0 answers
30 views

Visual Studio only has .NET 4 templates available

When I create a .NET project Visual Studio only gives me .NET 4 supported templates I've tried re-installing Visual Studio and .NET as well as updating and modifying the installations. I'm using the ...
TheHollyRoller's user avatar
0 votes
0 answers
38 views

Error when loading Nuget packages in ASP.NET projects "Unable to load the service index for source https://api.nuget.org/v3index.json"

Im trying to follow the steps to make the ContosoUniversity project on https://learn.microsoft.com/fr-fr/aspnet/core/data/ef-rp/intro?view=aspnetcore-6.0&tabs=visual-studio. When i try to scaffold ...
Mich95194yet's user avatar
0 votes
0 answers
75 views

Visual Studio can run any individual microservice but fails with multiple startup projects

I have a solution of .NET 5 microservices. If I select any microservice as the startup project it runs fine, opening Swagger UI in my default browser. However, I need to run two microservices ...
Simon Elms's user avatar
  • 18.9k
0 votes
2 answers
384 views

Why SqlConnection is not directly available in .NET Core [duplicate]

I can use SqlConnection in .NET Framework but not in .NET Core framework. Why? SqlConnection conn = new SqlConnection("connection_string"); I tried this on .NET Core framework and I get an ...
Nimesh Kavindu's user avatar
0 votes
0 answers
17 views

Unable to add 'SlickGrid9.19.17/lib/jquery-1.11.2.min.js' (File Name) to the Web site

When I'm publishing my ASP.NET project using Visual studio. I'm getting this which results in Publishing error. 1>Publishing folder SlickGrid9.19.17/lib... 1>Unable to add 'SlickGrid9.19.17/lib/...
Dhruve Sharma's user avatar
1 vote
2 answers
739 views

Problem with running .NET Core 3.1 application in Visual Studio 2022

I installed Visual Studio 2022 and created a new ASP.NET Core 3.1 Web API application. The app builds fine however when I try to run it on kestrel throws an error: System.IO.FileNotFoundException: '...
tylkonachwile's user avatar
0 votes
1 answer
374 views

How to run ASP.NET Core 3.1 web application on Visual Studio 2022? [duplicate]

I developed an ASP.NET Core 3.1 web application using Visual Studio 2019 and it is working fine, but when I'm trying to work with the same project in Visual Studio 2022, I get this error : HTTP Error ...
Mariam Sultan's user avatar
-1 votes
1 answer
205 views

Why I am unable to render this image in my ASP.NET Core website?

Why I am unable to render this image in my ASP.NET Core website? Most of the time it is only partially rendered, I mean it is truncated at some point at a percent of full height. View: <img src=...
abenci's user avatar
  • 8,583
0 votes
2 answers
474 views

How do I load an local ASP.NET Core website into WebView2?

From what I can see, I need to run an exe file, somehow guess the localhost port number and use http://localhost:<port_number> URL in the WebView2 control. Is there any more straightforward ...
abenci's user avatar
  • 8,583
1 vote
2 answers
153 views

Below code is giving error : Error CS1503: Argument 1: cannot convert from 'Child1' to 'Test<bool, object>'

The blow code is not running giving the error: "Error CS1503: Argument 1: cannot convert from 'Child1' to 'Test<bool, object>'", I am creating the abstract class, which takes the Same ...
Anshul Khandelwal's user avatar
0 votes
2 answers
1k views

Create NextJS with .Net Core

I need to create a solution that has its frontend in NextJS and its backend in .NET6. I need them to be created in one solution, so they can be hosted in one website using IIS10. I see that visual ...
Hasan Shouman's user avatar
1 vote
1 answer
222 views

dotnet publish in Visual Studio 2022 adds CodeCoverage folder

I have a .NET 7 application which contains one Unit Test project also in the solution. When I'm trying to publish the project, the output folder adds "CodeCovergae" folder which I don't want ...
Sahil Sharma's user avatar
  • 1,879

15 30 50 per page
1
2 3 4 5
10