Unable to launch the configured Visual Studio development web server - c#

I'm using VS2017 and when I tried to run my app just standard noting extra with IIS express it fails.
Error:
An error occurred launching IIS Express. Unable to launch the configured visual studio development web server. Uncaught exception thrown by method called reflection.
I've set the port to 8080 instead of 56000.
Any ideas how what is wrong? Yes I installed IIS Express but it's not running in the background. I've tried to start VS in Administrtor mode but no luck. I've also deleted the .vs folder and restarted but again no luck.

According to this blog, the following steps should fix the issue:
close all Visual Studio instances
go to your ASP.NET project/solution folder, delete “.vs” hidden folder
click “Start”, search IISExpress, go to IISExpress folder, go upper level and delete whole IISExpress folder
start Visual Studio with Administrator privilege
create a fresh new ASP.NET project
run this project, this time you should see IIS Express is launched by Visual Studio correctly
close this solution but not close Visual Studio, open the ASP.NET project which you have problem with, and run it now, you should see IIS Express is launched correctly

Related

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

Error while browsing deployed projects in iis

Using Visual studio 2013 , ASP.NET
i tried deploying in my local PC and browsing it. It works perfectly!
But when i tried to browse the deployed program on the server PC,
The same program with same settings, it gave me this error (in the form of a messagebox).
Visual studio Just-In-Time-Debugger
An unhandled Win32 exception occurred in w3wp.exe[4992].
Possible Debuggers:
New instance of Microsoft Visual Studio 2010
i tried everything i can think of. Thanks in advance.

When debugging website in Visual Studio, Directory Listing --/ is shown instead of default page

I have an asp.net website set up on my localhost on port 88 using IIS(IIS 7.5), it works fine when I navigate to http://localhost:88/default.asp but when I attempt to debug this website using the debug tool in Visual Studio(Visual Studio 2012) I get a Directory Listing --/ with the contents of the source folder of the website listed.
When one of the script is then clicked a further Server Error in '/' Application occurs. ]2
I have tried rebuilding the whole solution and enabled server side and client side debugging in IIS to no avail. The website makes use of a COM application, however I don't think that's where the issue is as the website works when I navigate to http://localhost:88/default.asp. I'm at a loss on what to do next to solve this issue. Thanks.
The fact that Visual Studio is loading localhost:55285 means that it is configured to debug using the Visual Studio development server, not IIS. It seems like you're better off debugging with IIS instead.
To do that, in Visual Studio:
Open the Project menu
Click '[project name] Properties' (second from bottom)
Click 'Web' on the left
Select 'Use Local IIS Web Server'
For 'Project URL' put "http://localhost:88"
Save, then try debugging again.

Why does IIS Express shut down the Application and restart it all the time?

I'm debugging an application in Visual Studio 2013 and IIS Express. I noticed that certain cache values and static variables are lost all the time. To investigate it, I put breakpoints into global.asax's Application_Start and Application_End, and I saw that they frequently get fired.
Is there any way to see the reason of a Application_End event in IIS Express?
EDIT: To be clear, the Application_Start and Application_End events are fired multiple times in the same debugging session. The breakpoints in these events are hit multiple times without me stopping or restarting the debug session.
IIS Express is designed to emulate IIS for development purpose, it is provided with Visual Studio 2012, and 2013.
Is there any way to see the reason of a Application_End event in IIS
Express?
Since it is used for development, it starts when a web project is executed in Visual studio and stops when it terminates.
See: Web Servers in Visual Studio for ASP.NET Web Projects
IIS Express starts automatically when you run a project in Visual
Studio, and it stops when you close the web site project or web
application project in Visual Studio.
EDIT:
To address your edit in question, make sure you are not modifying web.config or creating/modifying any files in application folder (bin). This could cause the application to restart.
Found it. My code lives in the Dropbox folder, and apparently Dropbox changes something inside the web project's bin folder.
When I deactivate Dropbox, the problem goes away.

Visual studio 2012 web deployment fails silently, did any one has workaround for this issue?

I am using VS 2012 Ultimate and I did web deployment using file system. It say publish success. but when I look the folder where I deployed doesn't have any files in it.
Have you tried going to the settings tab on the publish dialogue box and then changing the configuration to: Release - Any CPU.
I had the same issue as you and changing this fixed it.

Categories