IIS Express is removing file extension Visual Studio 2015 - visual-studio

I'm developing a web application project using Visual Studio 2015 and .NET Framework 4.5. Wen I run my project in debug mode (F5) it starts IIS Express 10.0 but I'm geting a 404 error message because the file extension is always removed. It should be http://localhost:56996/default.aspx but is http://localhost:56996/default.
When I publish my project on IIS the problem does not exist.
Can anyone help me?

Related

ASP.NET 4,0 has not been registered on the Web Server

I'm having problem with Visual Studio 2012.
When I started a new website project, it says ASP.NET has not been registered on the Web server. I tried to use Turn Windows features on or off and open the Visual Studio 2012, then opening the project, but it didn't work. I tried to use IIS manager, and opening the project again, but it still not workimg. I used Visual Studio command prompt and installing ASP.NET 4.0. After the installation, I opened the project again, but it did nothing worked. What cause this issue and how can I fixed?

Unable to run a Blazor Server App on Microsoft Visual Studio IDE Version 17.2.0 Preview 5.0

I have a Blazor Server project created with Microsoft Visual Studio IDE Version 17.2.0 Preview 1 and it was debugging and starting without any problems.
When I upgraded to Version 17.2.0 Preview 5.0, I am unable to build the project, run the project or even close the IDE. Popup UIs are showing up each time I try to do any of these actions.
I am now closing the IDE using the Task Manager. I have attached screenshots with descriptions and if anyone has ever solved this please assist me to get over this.
I have tried the following:
Created a new project but the problem remains.
Repaired Visual Studio IDE but the problem remains.
I am using:
Blazor Server and .NET 6.
The IDE is Microsoft Visual Studio IDE Community Edition Version 17.2.0 Preview 5.0
I will appreciate any help I can get.
The above error shows up when I try to debug the project:
The above error shows up when I try to close the IDE:
I created a Blazor project in Visual Studio 2022 17.2.0 Preview 5.0, built the project and ran without encountering this issue.
Please try closing Visual Studio, deleting the project's .vs and bin/obj folders, and reloading the project.
If the issue still exists, please run /safemode at the development command prompt, it will check if third-party packages and extensions are causing the issue.

Application Didn't Work untill i restart visual studio 2017

i have implemented web app in asp.net core using visual studio 2017.
There i am facing an issue when i open visual studio and run that application i got this error in popup see this image
when i close my visual studio and restart it then it work fine it creating problem only first time when i run application

how to publish vs2010 web solution under framework 3.5 on iis?

Iam using visual studio 2010. i have developed one web application. my iis application pool was set to 3.5 only. when i deployed my app on iis it is showing target framework=4.0 error.
can any one tell me how to deploy my visual studio 2010 web project to run under dotnet framework 3.5?
open project files (.sln and .csproj) files in notepad and find the following lines(1st line) and replace with second line, you will convert your application to vs2008 successfully
TargetFrameworkMoniker = ".NETFramework,Version=v2.0"
TargetFramework = "3.5"
Visual Studio 2010
Visual Studio 2008
Microsoft Visual Studio Solution File, Format Version 11.00
Microsoft Visual Studio Solution File, Format Version 10.00
10.0.20506
9.0.30729
\VisualStudio\v10.0\
\VisualStudio\v9.0\
if u not find some lines dont worry , leave it
after changes, you may get a error from web.config from tag
remove this tag entirely, and also you may get config section errors like register components in web.config remove those tags also, and compile your code and run(what ever errors you may get from web.config remove them appropriately).

MSDeploy not working

I'm trying to deploy a .NET 4.0 project with Visual Studio 2010 using MSDeploy; however when I right-click on the project, what shows up is the legacy context menu for Visual Studio 2008 ('Publish Website', 'Build Website' etc.) in lieu of the VS 2010 context menu ('Publish', 'Build' etc.). I'm running Windows Vista and IIS 7.0.
Ideas, anyone?
Thanks...
It appears this happens when you open a Framework 3.5 solution using Visual Studio 2010
This happens when a website is created as opposed to a web project.

Resources