Emil’s Blog

Programming Windows, .Net, EPiServer and whatnot…

[Powered by WordPress.]

April 20, 2006

Server Error: Failed to access IIS metabase.

by @ 10:39. Filed under .Net programming, Windows tips

I have received this error several times when trying to run an ASP.NET 2.0 application on a fresh machine:

Server Error in '/Butler/EducationSI' Application.
--------------------------------------------------------------------

Failed to access IIS metabase.


Failed to access IIS metabase.jpg

The error normally goes away when reinstalling the .Net Framework 2.0 (it might be sufficient to repair the installation in “Add or Remove Programs” in the Control Panel).

April 13, 2006

Auto-expanding custom (and standard) types in the watch window

by @ 20:52. Filed under Visual Studio tips

The default for complex types is to just display the type name in the debugger's watch window. Some system types however display the values of one or more properties instead of the type name. What is displayed is configurable which also makes it possible to show more information about user-defined types. This is how it's done:

  1. Edit C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Packages\Debugger\mcee_cs.dat for C#, mcee_mc.dat for managed C++, vjsee.dat for J#. Sorry, no VB!
  2. Add/modify rows in the file. Each row describes how a type should be displayed. Example:
    <System.DateTime>=<Year>-<Month>-<Day> <Hour>:<Minute>:<Second>

  3. The first part is the type name, followed by '='. The rest of the line contains property names surrounded with '< ' and '>', mixed with fixed text that is displayed as it is.

The example above will display DateTime values as "{2005-4-23 16:2:51}".

In addition to property names, one can also use expressions and method names.

[powered by WordPress.]

jour·nal n. A personal record of occurrences, experiences, and reflections kept on a regular basis; a diary.

Internal links:

Categories:

Search blog:

Archives:

April 2006
M T W T F S S
« Mar   May »
 12
3456789
10111213141516
17181920212223
24252627282930


View Emil Åström's profile on LinkedIn

General links:

I read:

Visitors

Recent Comments

Spam caught

Other:

Clicky Web Analytics

36 queries. 0.510 seconds