UIProcess Application Block

D

dm_dal

Sorry for the cross-post, but I wasn't sure which group would be best.

I'm working with the UIProcess Application block in a C# WinForms
application. I was testing a first go at it when I came across this error.
I'm wondering if anyone has any ideas.

[Error Message]
"Error loading UIP config parameters. The original exception is: The
section for the UIP configuration does not conform to the XML Schema
provided, please check the document to fix the document. The validation
error message is: The element 'objectTypes' has invalid content. An error
occurred at ,(4,4).. at
Microsoft.ApplicationBlocks.UIProcess.UIPConfigHandler.ValidateSchema(XmlNod
e section)"

I get the error when I run the application. My initial form loads OK, but
when I click a linklabel to launch my second form I get the above message.

I've included my App.config file for reference:

<?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,Public
KeyToken=null" />
<controller name="appController" type="ebmEnroller32.UI.appController,
ebmEnroller32.UI,Version=1.0.1.0,Culture=neutral,PublicKeyToken=null" />
</objectTypes>
<views>
<view name="setupCases" type="ebmEnroller32.UI.setupCases, ebmEnroller32.UI,
Version=1.0.1.0, Culture=neutral, PublicKeyToken=null"
controller="appController" />
</views>
</uipConfiguration>
</configuration>

David Young
BellGroup Financial
dyoung (at) bellgroup (dot) (com)
 
D

dm_dal

Ok,
I figured out this one, I didn't include the <state /> and
<statePersistenceProvider /> elements.

Now I just get a message stating "Object reference not set to an instance of
an object."

at Microsoft.ApplicationBlocks.UIProcess.ViewManagerFactory.Create()
at Microsoft.ApplicationBlocks.UIProcess.OpenNavigator..ctor(String name)
at
Microsoft.ApplicationBlocks.UIProcess.UIPManager.StartOpenNavigationTask(Str
ing name, String firstViewName)
at ebmEnroller32.UI.Welcome.taskItem1_Click(Object sender, EventArgs e)
in c:\my projects\ebmenroller32\ebmenroller32.ui\welcome.cs:line 234
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Label.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top