Archive for the ‘Visual Studio’ Category

Enable IIS Manager in Windows 7

To enable the IIS Manager in Windows 7, you’ll need to follow the following steps:

  1. From Windows 7’s Start Menu, search for ‘Turn Windows features on or off’ or find the application from the Control Panel.
  2. To enable IIS Management Console, browse to: Internet Information Services > Web Management Tools > IIS Management Console. Check the final checkbox.
  3. Click the OK button and try searching for ‘Internet Information Services (IIS) Manager’ from the Start Menu. If it appears, this means that the installation worked.

Unable to add to the Web site. Unable to add file. Access is denied.

While taking over a C# Web Application that had been migrated to work with Visual Studio 2008 (originally developed and migrated from Visual Studio .NET 2003), I occasionally ran into issues while trying to publish the web application to the production server (or any server for that matter). In the output log, there were multiple error messages, all stating:

Unable to add ‘XXX.aspx’ to the Web site. Unable to add file ‘XXX.aspx’. Access is denied.

Each XXX.aspx would be a different files. What I learned after browsing and searching Google is to make sure the files on the production (or target) server are not marked as Read Only. The solution was to:

  1. Go to the Publish directory
  2. Highlight all files and folders
  3. Right click and select Properties
  4. Make sure the Read-only attribute checkbox is unchecked (white and not gray or checked)

References:
http://forums.asp.net/p/1074678/3431238.aspx#3431238

Visual Studio 2008 – Missing Server Explorer

In the past year, one way or another, my Server Explorer tab in Visual Studio 2008 had disappeared. My main use of the tab was to access Microsoft Sql Server tables. I had tried a variety of things in the past in a quick effort to fix the problem. I was unable to find a suitable solution. Now, with a quick command, the problem is fixed. Try:

  1. Close all instances of Visual Studio.
  2. In All Programs > Microsoft Visual Studio 2008 > Visual Studio Tools folder, open the application Visual Studio 2008 Command Prompt
  3. Next, type in devenv /resetskippkgs at the command prompt.

On the next reload of Visual Studio 2008, the problem is fixed. Visual Studio 2003 and 2010 should both have their version of Command Prompts that can be used to fixed similar problems. Good luck!