cannot debugg vNext web app in vs 2015 - c#

I cannot debugg Asp.Net 5 project in my Visual Studio 2015. First when I open app I get message box with information:
Cannot find DNX SD version 'dnx-clr-win-x86.1.0.0-beta3'.....'dnx=clr-win-x86.1.0.0-bet5' will be used as the solution DNX SDK version for this session.
Then when I click Start to debbug app I get alert box:
The debugger cannot continue running the process.Unable to start debugging.
Even when I create new project -> Asp.Net 5 preview template -> web application the behavior is the same. When I was using CTP version of VS 2015 everything worked but I had to change to VS 2015. I also cheked PowerShell version and it's 4.0.
I have no Idea what could be the reason. Any help appreciated.

I think you need to install the correct DNVM,
you can read about it here.
Or change versions of packages that you use.
Put in cmd:
dnvm list
look what SDK version is default and then set in global.json and project.json same version.

Related

Process with an Id of XXXX is not running | Visual Studio 2022

I've had this problem since this morning and have tried various options, but haven't found a solution to my problem yet.
The problem is that every time I want to start my Blazor web application I get this error message:
I tried several ways to solve this problem, however all I found was for IIS-Express with this problem.
I use several startup projects, and I don't find any solution for my problem.
I had the same problem this morning after updating the Microsoft packages in my WASM-project. Updating Microsoft.AspNetCore.Components.WebAssembly.DevServer 6.0.8 to 6.0.9 resulted in the error mentioned. Updating to .NET 6.0.109 SDK solved this. So in general: after updating the DevServer package you need to be sure you have the corresponding .NET SDK version (or higher) installed.
I'm using VS 2022 17.4.0 preview 1.0.
After I installed Visual Studio again it worked.
Just do this steps:
Close Visual Studio.
Navigate to the sub-folder of Project's main folder.
Delete .vs folder and open project again in Visual Studio and RUN
if don't work
just click on build button in app bar in visual studio then click on Rebuild Solution and run
This solved it for me
https://www.codeproject.com/tips/1029540/solved-process-with-an-id-of-is-not-running
Open the .csproj file, and remove tags DevelopmentServerPort, DevelopmentServerVPath and IISUrl.
Had an same issue when testing a Blazor app, it fixed after restored the package Microsoft.AspNetCore.Components.WebAssembly.DevServer from 6.0.8 to 6.0.5
Had the same issue. Updating Visual Studio and the .NET SDK fixed it for me. I had SDK version 6.0.302 installed and updated to SDK version 6.0.400.
I had this issue with code I downloaded from GitHub. The projects targetted .NET Core 3.1 which I hadn't installed. To solve, I double-clicked Properties in each project, and changed the Target framework to .NET 6.0.

How to add .Net framework to Visual Studio preview 2019 project

I have downloaded and installed Visual studio .Net Framework 4.8 .
But ,How to add this .Net Framework in Visual studio 2019 Project .
Open the Project menu and select Properties (this menu entry should have a project name in it). In the Application tab of the Properties window, choose your desired framework from the Target framework dropdown.
You do not. Simple.
You claim (title) to use 2019 preview.
That is ANCIENT - like seriously. The trial and free to download pro version are available for a long time and support for more modern technologies got added there over time.
Download, keep updated and it is just there.
We are now in version 16.4 and a LOT of significant updates where pushed out over time.

Visual Studio 2017 Enterprise cannot start ASPNet Core application

I have the latest VS2017 Enterprise.
I have 'ASP.NET and web development' workload installed.
Also I have .NET Core SDK both versions 32/64 bits.
I create new ASP.NET Core Web Application from template.
When I try to 'Start without debugging' I got an error - "The Project doesn't know how to run the profile IIS Express"
At the same time this project can be run successfully from command line
dotnet run
I know that similar question exists but all suggestions from it are not helpful in my case
Visual Studio 2015 can't start IIS Express
I reinstalled my VS from scratch and now it works
try to remove the vs folder and try to run the project
The .vs is a hidden folder so you have to enable the Show hidden files
PS: close visual studio before removing the folder

Visual Studio Express .net framework 4.5.2

What I'm trying to make is an application with browser window in it. I'm trying to make it with CefSharp. This link says it is ok to do it in Visual Studio Express.
And I can't find how to do this point: Please be sure to set the minimum .Net version for the project to be at least .Net 4.5.2.
I have installed developer pack 4.6.1 from here. But I still get an error CefSharp requires .NET 4.5.2 or higher.
I have found, that it can be done when you create a project, but seems like that works only for Visual studio (not express). I have found, that express has it in properties - application tab. But I don't have such tab there, I have just startup project, project dependencies, debug source files and configuration. How can I do this?
This is solved, community edition helped.

C# - Visual studio - Publish prerequisites error

I have an application that uses .net 3.5 (created in C# - Visual Studio 2010). Application runs fine, but if I try to publish and set the prerequisites to use the same location as the application I get this:
Error 2 The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX20\aspnet.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information. Aplication
I have the framework installed and also the kit but I guess I have to put some files somewhere... but I don't know where.
Can any1 help me?
According to this page:
The reason is that we shipped the .NET
Frameworks 3.5 SP1 package as Homesite
Only, i.e. only supports "Install
Prerequisites from Component Vendor's
Website". We did this to keep the
size of VS 2008 SP1 from being too
large.
We did put info in the SP1 readme on
how to get the files put on your
machine to enable the samesite
scenario. Look for "Enable Samesite".
http://download.microsoft.com/download/A/2/8/A2807F78-C861-4B66-9B31-9205C3F22252/VS2008SP1Readme.htm

Categories