XmlSchemaException in App.config using UIP Application Block
I get the following error for every sub-element and attribute
within the <uipConfiguration> element:
Message 1 Could not find schema information for the element
'uipConfiguration'.
Message 2 Could not find schema information for the element 'objectTypes'.
Message 3 Could not find schema information for the element 'iViewManager'.
... etc. etc.
My App.config file:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="uipConfiguration"
type="Microsoft.ApplicationBlocks.UIProcess.UIPConfigHandler,
Microsoft.ApplicationBlocks.UIProcess,
Version=1.0.1.0,
Culture=neutral,
PublicKeyToken=null"
/>
</configSections>
<uipConfiguration>
<objectTypes>
<iViewManager
name="WindowsFormViewManager"
type="Microsoft.ApplicationBlocks.UIProcess.WindowsFormViewManager,
Microsoft.ApplicationBlocks.UIProcess,
Version=1.0.1.0,
Culture=neutral,
PublicKeyToken=null"
/>
<state
name="TestState"
type="PresentationLayer.TestState,
PresentationLayer,
Version=null,
Culture=neutral,
PublicKeyToken=null"
/>
<controller
name="TestController"
type="Common.TestController,
Common,
Version=null,
Culture=neutral,
PublicKeyToken=null"
/>
<statePersistenceProvider
name="IsolatedStoragePersistence"
type="Microsoft.ApplicationBlocks.UIProcess.IsolatedStoragePersistence,
Microsoft.ApplicationBlocks.UIProcess,
Version=1.0.1.0,
Culture=neutral,
PublicKeyToken=null"
/>
</objectTypes>
<views>
<view
name="TestView"
type="PresentationLayer.TestView,
PresentationLayer,
Version=null,
Culture=neutral,
PublicKeyToken=null"
controller="TestController"
stayOpen="true"
floatable="true"
/>
</views>
</uipConfiguration>
<system.diagnostics>
<sources>
<!-- This section defines the logging configuration for
My.Application.Log -->
<source name="DefaultSource" switchName="DefaultSwitch">
<listeners>
<add name="FileLog"/>
<!-- Uncomment the below section to write to the Application Event Log
-->
<!--<add name="EventLog"/>-->
</listeners>
</source>
</sources>
<switches>
<add name="DefaultSwitch" value="Information" />
</switches>
<sharedListeners>
<add name="FileLog"
type="Microsoft.VisualBasic.Logging.FileLogTraceListener,
Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"
initializeData="FileLogWriter"/>
<!-- Uncomment the below section and replace APPLICATION_NAME with the
name of your application to write to the Application Event Log -->
<!--<add name="EventLog" type="System.Diagnostics.EventLogTraceListener"
initializeData="APPLICATION_NAME"/> -->
</sharedListeners>
</system.diagnostics>
</configuration>
The exception is thrown in UIPConfigHandler.cs at the statement:
validatingReader.Schemas.Add( XmlSchema.Read( new XmlTextReader( streamReader ), null ) );
If you don't know why the exception is thrown maybe you could suggest a way to narrow down the possible cause or know any further information I could provide to help answer this question?
Thanks v. much!
Mark

