jenswinter.com
Software Development 24/7

Bug im Visual Studio 2005

October 12, 2005 21:22 by Jens
Heute durfte ich die Bekanntschaft mit einem ziemlich nervenden Fehler im Visual Studio machen.

Durch die Verwendung (es reicht schon das Öffnen) des ASP.NET Configuration Tools wird die web.config verändert. Es wird im configuration-Tag der Namespace "http://schemas.microsoft.com/.NetConfiguration/v2.0" hinzugefügt. Das Schema kann nicht gefunden werden. Dadurch lässt sich das Projekt nicht mehr übersetzen und Intellisense fällt für die web.config auch aus.

Man kann nun einfach das xmlns-Attribut wieder rauslöschen und schon läuft's wieder. Aber nervig ist das schon. Das lässt sich aber noch einfacher lösen. Dazu muss die Datei %windir%\Microsoft.NET\Framework\v2.0.50727\ASP.NETWebAdminFiles\App_Code\WebAdminPage.cs angepasst werden:

Man ersetze in Zeile 93:

config.NamespaceDeclared = true;

durch

config.NamespaceDeclared = false;

Dadurch wird das Einfügen des Namespace-Verweises verhindert.

Related posts

Comments

October 9. 2009 15:30

Replacement Boiler Grants

I have been playing with the express versions of Visual Studio to develop my knowledge for a while and am beginning to make the conversion to the pro edition. In advance of this I would like to improve my knowledge of using the package before I get out my wallet. My recent experience is as a web coder with php, mysql, most linux based tools and a little flash, now I am migrating to a Microsoft package. I am realising it is a big learning curve and am trying to build my awareness with some blog reading. The title " Bug in Visual Studio 2005 " in your post got me grabbed my interest. I feel the Visual Studio tutorial websites are often strict and mention the same points looking like an online manual. Dialog in web logs frequently cover effective ways to overcome problems which leads me through the learning curve more quickly. Thanks for the article.

Replacement Boiler Grants