Showing posts with label Visual Studio 2008. Show all posts
Showing posts with label Visual Studio 2008. Show all posts

2009-01-06

Visual Studio shortcut of the day

Find All References:

  • Ctrl + K + R
  • Shift + F12

2008-05-13

ASP.NET Development Server problems under Vista (maybe Windows 7)

Problem
When hitting Ctrl-F5 in Visual Studio 2005/2008 to run a web application in Vista, the Development Server gets started, Internet Explorer opened but nothing happens, although the web application is set to run with Development Server, ASP, ISS and everything required is installed.

Solution
Go to c:\Windows\System32\drivers\etc\ and open the file named hosts with a text editor
Search for the line containing "::1" mapped to "localhost"
Change "::1" to ":::1" by adding an extra ":"
Save the file and everything should be running fine

2008-04-13

Failed to access IIS metabase error while trying to access ASP page on localhost

When trying to open a website on my localhost I received the following error message:

"Failed to access IIS metabase.
Description: [...]
Exception Details: System.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase.

The process account used to run ASP.NET must have read access to the IIS metabase (e.g. IIS://servername/W3SVC). For information on modifying metabase permissions, please see http://support.microsoft.com/?kbid=267904."

After some digging I discovered that the cause of the problem is that I installed Visual Studio 2008 before installing IIS.
The problem can be fixed by running aspnet_regiis.exe /i (I think it's called aspnet_iisreg.exe in older versions of VS) from the Visual Studio 2008 Command Prompt or from the C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727> folder.

2008-01-22

2008-01-04

Microsoft Silverlight basic presentation


This video is a basic presentation of Silverlight 1.1.
Contains:
  • Basic components: xaml, codebehind, namespaces
  • Design with Microsoft Expression Blend
  • Animations
  • Web services
  • ...