How do I enable the option to use IIS Express for a website project in my solution?
I have installed IIS Express but it does not show up as an option? I would like to use this because at the moment I cannot use IIS on my machine.
Do you have Visual Studio 2010 SP1 installed? SP1 is required to get the IIS Express option in the Web tab of your project properties. (don't forget to also do a windows update) Also, you should install the Visual Studio 2010 Web Standards Update as well.
As 'Mystere Man' said you need VS 2010 service pack (SP1) to see IIS Express option in VS. If you are sure that you have SP1 installed, did you check if IIS Express exists in the installation folder? (%programfiles%\IIS Express or %programfiles(x86)\IIS Express)
If it is not installed, you can install it from http://www.microsoft.com/en-us/download/details.aspx?id=1038
I had this problem because I opened the site through IIS. The only way to see that the project was opened through IIS is the lack of this button and the title of the Web Site project looks like: http://localhost/x rather than http://localhost:1111.
To get the ability to use IIS Express, you have to remove the Web Site project from the solution and use Add Existing Web Site then choose the file system.
Related
I already have IIS installed on my localhost.
I just use sublime text editor to create my website.
But now i have problem in debugging the vb code. So I decided to install Visual Studio Express.
So, can I install the Visual Studio Express without conflicting the existing website?
Yes you can.
Visual Studio uses IIS Express, that works on random ports different from standard ones (80 etc)
So youll'not have problem with existing IIS websites.
Where are my Visual Studio programs/applications/websites hosted by default (/during debugging)?
I mean, when I run my project in studio or just do a right click and 'view in browser' on a page... where is the page hosted?
Someone at work mentioned 'Visual Studio server'. And also that we can direct the studio to use the local IIS.
Can anyone shed more light on this, or point to a blog/article where I can find more info?
Thanks!
Edit: I am asking this question because my WCF service authentication settings behave differently (service doesn't work) when I run the service on my local vs. on the dev server. And I am trying to figure where to look for those local settings.
Edit: I am using VS 2010, and have IIS 7 installed on my local.
It depends on which version you have installed. In VS 2012, if you setup a web app, it uses IIS express by default, which gives it a http://localhost:<port> (such as 2122 or something like that). You have to add it as a virtual directory for it to be hosted under IIS. You can very easily do that from your project's properties, under Web tab.
Previous versions used Cassini as the local web server.
When Visual Studio 2010 (10.0.4 SP1) was installed on my machine, it seems no web development settings were installed. There are no web projects under templates, and Web Development Settings do not appear under the default settings list (Under Tools->Import Export Settings).
I don't know for sure that I'm not just missing some big obvious 'Switch to Web Development Mode' button somewhere, but I've had a good Google and a look and I cant see anything.
I would rather not have to install Visual Web Developer. Is there some way I can add web development settings to my existing install of Visual Studio?
Here are the steps to install it while installing Web Deploymnet Settings
· Insert the DVD or CDROM Disk 1 – the Setup program starts automatically.
· Click Install Visual Studio 2010 and follow the instructions.
o This installs Visual Studio, the .NET framework, the development web server, and SQL Server 2008 Express.
o If you are installing Visual Web Developer 2010 Express Edition, it does NOT install SQL Server 2008 Express – you’ll need to download SQL Server 2008 and install it separately.
· On the Options page accept Default option – for the Default Environment Settings you can select Web Development Settings.
· Click the Install Product Documentation link to install the MSDN help files.
You must have missed it so run the setup again and as you don't want to reinstall VS you'll be asked to repair the setup there you can select the feature
refer:http://www.siue.edu/~dbock/cmis460/Module%20A%20--%20Appendix%20A%20in%20textbook/ModuleA-InstallSoftware.htm
http://www.microsoft.com/web/gallery/install.aspx?appid=VWDorVS2010SP1Pack
This adds the web development parts to an installed version of visual studio that lacks them (along with all the other tool you require for web development)
Some while ago I've upgraded an asp.net 1.1 application (which ran on IIS 5 and 6) to .net 3.5 and later to .net 4.0 (and IIS 7.5)
Still, when I want to open it in VS, I need to install the "IIS Metabase and IIS 6 Configuration Compatibility". It works after I install it, but..
How to get rid of this requirement?
When debugging ASP.NET projects using Windows 7's IIS7.5 web server, Visual Studio 2010 RTM requires the IIS6 Metabase and IIS6 Configuration Compatibility components.
However Visual Studio 2010 SP1 fixes this dependency and VS2010 now works natively with IIS7.5 without any need to use the IIS6 bits.
I also proved this by knocking out a test project in Visual Studio 2003 and then copying to two different IIS7.5 machines configured as:
PC1: VS2010 RTM, no IIS6 Compatibility
PC2: VS2010 SP1, no IIS6 Compatibility
Here's a long-winded explanation (in case you need it) but the short answer (which also appears there) is to run
aspnet_regiis -ga <WindowsUserAccount>
I believe that this only happens when you upgrade a machine or you are not an administrator of the machine when you install .Net/Visual Studio. I recently had to do this on a brand new laptop with Visual Studio 2010 installed by others before I had admin rights. So, the way to get rid of this requirement from your end is to do the install as an admin.
After installing service pack 1 for Visual Studio 2010 cannot create web site in IIS. Here is error message:
---------------------------
Microsoft Visual Studio
---------------------------
Configuring Web http://localhost/MyWebSite for ASP.NET 3.5 failed.
You must manuallyconfigure this site for ASP.NET 3.5 in order for
the site to run correctly. Visual Studio cannot detect whether this
virtual root has been configured for use with ASP.NET 2.0. The likely
cause is that you do not have sufficient priviledges to access the
IIS metabase. You may need to manually configure this site for
ASP.NET 2.0 in order for your site to run correctly.
---------------------------
OK Help
---------------------------
Does anybody know how to fix it ? Thanks!
P.S. I'm using windows7 x64.
Have you tried run Visual Studio with "Run As Administrator" from right click?
This happened to me when I deleted the default application pool.
Thanks to a Microsoft Connect report, I was able to solve this by choosing a new default application pool under the "Web Site Defaults" properties of the Sites node in the IIS 7 Manager tree.
Try changing the .Net version your Application Pool is using.
Open IIS Manager from Administrative Tools.
Select Application Pools on the left.
On the right, double click 'DefaultAppPool' (or whichever you may have created)
Under .Net Framework Version select v3.5.
Click OK and restart IIS.
I don't know if you have to restart IIS or not, but it won't hurt.
I found the answer here:
Visual Studio 2013. You do not have sufficient privilege to access IIS web sites on your machine
IIS stores a config file on your personal drive. At my company our shared drive was down for maintenance and I was getting this error. Once the drive came back online VS.NET started working again.