I developed an asp.net mvc 5 web application using VS 2015 community edition. All things worked perfectly, but a few days ago, Visual studio was unable to load the web project, and the below error message is displayed :
error : The Web Application Project elab is configured to use IIS. To access local IIS Web sites, you must run Visual Studio in the context of an administrator account. In addition, you must install the following IIS components: ASP.NET
I tried to run VS as "Administrator" but unfortunately due to our organisation security policy, I don't have this privileges.
Is there a way to overcome of this problem ?
You can try the below solution
In the solution explorer, right click on the project and select "Properties"
Click on "Web" tab
Select "Use Visual studio development Server" radio button
The above steps will help you to Switch from local IIS to IIS Express ie Visual studio development Server
Note : In the same way you can switch back to use local iis at any time you want, but that requires an administration privilege
Related
I am using Windows 10 and Visual Studio 2015 community. I am having trouble finding my ASP.NET MVC sites in my IIS Manager after I create the virtual directory in the Properties window.
I originally was unable to view the IIS manager on my Windows 10 and had to search for "Windows Features" or "Turn Windows Features On or Off". I then selected the "Internet Information Services" checkbox.
I want to be able to host the site such that when I open it up from IIS Manager it should show up under the default web sites.
In the tutorial he was able to make the app do this by going to the Project's properties, the windows tab and check the Local IIS selection as below:
enter image description here
Unfortunately I don't have his version of visual studio and all I see is:
enter image description here
When I try to create the virtual directory anyway it doesn't show up in the IIS Manager. What do I do?
The tutorial that you are following is of Visual Studio 2012 or prior as it is giving you development server option.
In your current version on the project properties => web screen there is a Servers section in that you can see a drop down that has value IISEXPRESS . Change it to Local IIS , Click on Create Virtual Directory next to it and this will create an application in your local IIS under the default web site (which ever is on port 80)) which you can see using IIS manager.
Make sure you are running visual studio in Administrator mode
I faced the same problem with the visual studio 2017 . Right click the VS tab and open it in admin mode , and it will show the option of local host under server dropdown.
I am trying to debug an ASP MVC 4 project in Visual Studio 2012. However, once the code compiles the debugger stops completely, never bringing up the browser. I am able to run ASP.Net projects just fine from this computer, however this project doesn't seem to want to work.
With this project if i click on IIS Express in Notification area so it shows my website and if i click on it so then it opens up my site on browser but by default on debugging with Visual Studio it doesn't open.
I also tried to set my start up project but this also does not work????
Check this setting in your web project's settings and ensure it's not set to "don't open a page"
I have a website running in aspnet mvc 4 website and I have detached the debugger and want to reattach, but I cannot locate the process I wish to attach to when I bring up the 'attach to process' dialog.
I am used to attaching to the webserver.exe (with port number) in vs2010 and was expecting it to be a similar experience in 2012 with IISExpress, but I do not see in the list of processes one that relates to my web site.
How does one achieve this in vs2012.
Try AttachTo extension for Visual Studio 2010/2012.
I searched alot among tutorials but I'm so confused now.
I Created an ASP.MVC3 application with VS2010 named tile-shop2,
installed IIS7,
in IIS7 manager in Default Web Site section created a new app named tile-shop2 with ASP.NET V4.0 Application pool, and Physical path is the place that application is created (document, Visual Studio 2010, Projects, ...)
in VS2010, right clicked on the name of project and clicked Publish,
in VS2010 in Project menu => tile-shop2 properties => Web => Servers => ticked Use Local IIS Web server
when I run VS I see this window:
and when in browser searched localhost/tile-shop2 I see list of directoris in Solution Explorer, and when I click on one of them, Error 404.8 appears.
(I run aspnet_regiis and IIS7 works itself)
Can anybody please tell me what is wrong here?
Thanks so much
It sounds like the IIS application is pointing to the folder containing your web project and not the published web project contents.
You want to create a folder within your IIS root ('C:\inetpub\MyProject') and point your IIS application's physical path to this same publish folder, rather than your Visual Studio project folder. You then need to publish the website to this folder using Visual Studio.
I'm trying to open MVC project using VS2010.
I'm opening this project from TFS server but I'm failed to open it
and getting error :
The project type is not supported by this installation.
please help.
You basically don't have something installed. That's why you get this error. I am very sure that you need to install the VS MVC project type - either MVC 2 or MVC 3. Use The Web Plaform Installer to install. The web platform installer can be found here: http://www.microsoft.com/web/downloads/platform.aspx. Once you have installed it (it is only 2MB) you need to search for "MVC", install the MVC 2 and MVC 3 project templates.
I got this error when I forgot to select the Web Developer feature in the Visual Studio setup. Unfortunately, the error you mentioned is the only error you get when Visual Studio 2010 is installed without this feature. You can install the Web Developer feature using the Windows control panel.
By popular demand (7+ and counting), I'm placing part of CodingWithSpike's comment here. Specifically, the procedure to explicitly add Visual Web Designer to VS install.
open Control Panel
select Programs and Features (or Add/Remove Programs)
choose Visual Studio
click "Uninstall/Change"
this opens the VS installer in maintenance mode.
Click "Next" once
Click "Add or Remove Features"
Checkbox "Visual Web Designer"
click Update button.
Enjoy having a working product!
Edit the project.csproj file and look at the <ProjectTypeGuids>{E53F8FEA-EAE0-44A6-8774-FFD645390401};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
The GUIDS above includes MVC 3 Tools Update. That's a good guess of what you are missing. You can get MVC 3/TU from http://www.asp.net/mvc/mvc3
BTW, that install includes VS2010 SP1 which is required for the TU edition.
If you've installed Visual Studio 2010 after Visual Studio Web Dev Express and MVC4, Visual Studio 2010 doesn't seem to pick up the MVC 4 templates. Running the MVC 4 installer again via the Web Platform Installer doesn't fix it. Repairing the MVC 4 installation fixed it in my case:
Under Control Panel, choose Programs/Uninstall a program.
Find Microsoft ASP.NET MVC 4 and double-click it.
The Microsoft ASP.NET MVC 4 Setup prompt will appear. Choose Repair.
Visual Studio 2010 Express to Pro, ASP.NET MVC 4 installed but not an option?
in my case, i had opened my VS2010 solution, in vs2012, i was getting the project type is not supported, tried re installing mvc3 as was suggested, cancelled re installation, then i had the issue i couldn't open the project in VS2010 anymore. then tried to re install mcv3 again. solution was, uninstall mcv3, uninstall mcv4, then reinstall mcv3, then i could reopen my project in VS2010 . hope this helps someone!