IIS issue with Visual Studio - visual-studio-2010

I am trying to get my project to use my IIS virtual directory, here is how I have it setup..
In Windows 7..
My project has a Web Application, which is located in my Projects folder..
In IIS, I created a new Virtual Directory pointing to my Web Application,
gave IIS permissions..
can access it fine using http://localhost/WebApplication
Now in Visual Studio 2010, I goto properties of the WebApplication, select "Use Local IIS Web server", type in "http://localhost/WebApplication", sits there for a few mins then a popup error..
---------------------------
Microsoft Visual Studio
---------------------------
To access local IIS Web sites, you must install the following IIS components:
In addition, you must run Visual Studio in the context of an administrator account.
For more information, press F1.
---------------------------
OK
---------------------------
Does not list any components missing..
Any ideas? Rather not have my project in inetpub/wwwroot

Try running Visual Studio as administrator.
Right click your Visual Studio shortcut and click "Run as Administrator".

Related

Visual Studio Team Services workspace error

I created a Visual Studio 2013 MVC project in Visual Studio 2013 Ultimate using Visual Studio Team Services through visualstudio.com. I have since reinstalled Windows and Visual Studio 2013 and have reopened the solution and receive error:
The solution you have loaded is bound to the source control server at https://{myaccount}.visualstudio.com/defaultcollection, but no workspace on that server could be located. If you do have a workspace on this server, and you want this solution to be opened under source control,
connect to that server using Team Explorer and then re-open the solution.
I am having difficulty locating how to setup and manage workspaces on my local machine and Team Services.
If you open visual studio and connect to your team project you should then be able to open the solution explorer. Once open you should see your project grated or as It is not maped locally.
Right click on your desired mapping folder level and map it to your local disk.
Note: You will need to map it to another location and pull across any uncommitted changes.

Where are inetpub folder and IIS?

I have Visual Studio 2010 installed in my machine. But, there is no inetpub folder created. I was not able to find the IIS when I typed out inetmgr in the Run command. Where is the IIS? And why was the inetpub folder not created?
"By default, Visual Studio 2010 SP1 uses the Visual Studio Development Server for Web site projects and Web application projects."
http://msdn.microsoft.com/en-us/library/58wxa9w5(v=vs.100).aspx
You would need to install IIS to use the traditional IIS with inetmgr.
As already noted in the other answer, Visual Studio 2010 uses its own Development Server and not the IIS for your web application projects.
You'll need to set up IIS on your system as per instructions detailed here.
Once that's done, verify the installation by pointing your browser to http://localhost

Visual Studio needs to make non-functional changes to this project to open in Visual Studio 2013

I opened a C# project that was created in VS 2010 SP, with VS 2013. A one-way conversion window appeared where I proceeded with the conversion.
Following warning message appeared
"Visual Studio needs to make non-functional changes to this project in order to enable the project to open in Visual Studio 2013, Visual Studio 2012, and Visual Studio 2010 SP1 without impacting project behavior."
when I run the application it gives the following error
Description: An error occurred while accessing the resources required to serve this request. The server may not be configured for access to the requested URL.
Error message 401.2.: Unauthorized: Logon failed due to server configuration. Verify that you have permission to view this directory or page based on the credentials you supplied and the authentication methods enabled on the Web server. Contact the Web server's administrator for additional assistance.
If I run the same app in VS 2010 it works fine.In VS 2013 upgraded the MVC3 to MVC 4 using these steps
http://www.asp.net/whitepapers/mvc4-release-notes#_Toc303253806
This solution worked for me, but depends on the type of security utilised by your application. I required Windows Authentication to be used as the application was running on our local intranet.
Anyway, my problem lay with the default IIS Express settings for running the app. These can be found in your default My Documents folder for the IISExpress\config folder and modify the applicationhost.config settings to your liking.

Error when trying to deploy SharePoint 2010 solution package - SharePoint 2010 - Visual Studio 2010

After several deployments, I receive the following error when trying to re-deploy a solution:
Error occurred in deployment step
‘Recycle IIS Application Pool’: The
communication object,
System.ServiceModel.InstanceContext,
cannot be used for communication
because it has been Aborted.
The only solution I have found (not ideal) is to restart Visual Studio.
Anyone know a better way?
I have seen this a couple of times as well and the only resolution I found was to restart Visual Studio as well.
How come restarting Visual Studio will fix anything :)
You need to run Visual Studio as Administrator (by right clicking on its icon)
If still persists, restart the server.
If still persists, add the administrator account under which you are running Visual Studio to Sharepoint Central Administration for that sharepoint web portal.

use IIS Express NOT appear in Visual Studio 2010 SP1

I Installed SP1 RTM in my visual studio 2010.
and installed IIS Express correctly.
(using korean language in VS2010.)
BUT.. I CANT SEE WORDS LIKE IIS EXPRESS
Tools -> Options -> Show All Checked -> Project and Solutions -> ...?
(I cant see Web Projects section.)
well.. looking for IIS Express in existing web project.
right mouse click -> over the debug.. but I cant see "USE IIS EXPRESS"
Okay. I'd like find IIS Express in Project Properties.
mouse right click -> properties
click a Web tab. just find use local IIS but not showing IIS EXPRESS.
orz.. what can I do?:(
Launch VS 2010.
Locate your Website Project in the Solution Explorer tree view.
Right-click on your Website project name and select the Use IIS Express... option.
Hope this helps.!
IIS Express in VS 2010
My problem was that I'd opened the site USING IIS - so I didn't get the option to 'Use IIS Express' because it HAD to use IIS. Removing the project and re-opening it from the file-system gave me the option back :)

Resources