1

Adjusting the default web.config schema for SubSonic

Posted October 20th, 2006 in .Net, Object Relational Mapping by ryan

While working in Visual Studio Team Suite, I ran into a slight problem while using SubSonic. I was using an Application Diagram to model my application and once I had switched to SubSonic (see yesterday’s post), my diagram locked. Visual Studio was nagging on the requirePermission attribute added within the custom config section for SubSonic. The section in the web.config file looks like:

<configSections>  <section name="SubSonicService"  type="SubSonic.SubSonicSection, SubSonic"  allowDefinition="MachineToApplication"  restartOnExternalChanges="true"   requirePermission="false"/>   </configSections>

So I navigated to C:\Program Files\Microsoft Visual Studio 8\Xml\Schemas\DotNetConfig.xsd and added the following line at line 44:

<xs:attribute name="requirePermission" type="boolean_Type" use="optional" />

This solved my problem and Visual Studio unlocked my diagram.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

One Response so far.

  1. Mike Cullina says:

    Your comment here EXACTLY solved my problem – while I was testing Subsonic 2.01. Thanks very much.

    Mike

Leave a Reply





FireStats icon Powered by FireStats