If your web project doesn't load in Visual Studio with the error beneath, I might have a solution.
'Creation of the virtual directory http://localhost:xxxx failed with the error: Unable to access the IIS metabase. You do not have sufficient privilege to access IIS web sites on your machine.'
First you have to try these:
1. Running Visual Studio as Administrator
2. Running aspnet_regiis.exe -ga MyUserName
3. Running aspnet_regiis.exe -I
4. Checked security here: %systemroot%\System32\inetsrv\config
Maybe there is something wrong with the settings of Visual Studio.
Check if this setting has a correct path:
And check these 3 path settings too:
How do we get this menu item on the toolbar.
And I want it Here:
Right click on the toolbar and click 'customize'. The customize window will open. Click on the 'Commands' tab and select the Toolbar 'Standard'.
Right now you click on 'Add command' and the following window will open.
Click on 'Edit' in the left pane, and Find 'Outline Collapse To Definitions' in the right pane.
Then hit 'Ok'
Move the command to the correct position and hit 'Close' and you're done.
If you want to have the your open document selected in the solution explorer of Visual Studio, you will have to turn it on.
Go to Tools - Options - Projects and Solutions - General and Check the 'Track Active Item in Solution Explorer'
Hit Ok, and you're done!