UIP 2.0 with ASP.NET 2.0 / Whidbey

Last post 10-14-2008 11:33 AM by acvillela. 14 replies.

Sort Posts:

  • UIP 2.0 with ASP.NET 2.0 / Whidbey

    10-08-2004, 2:53 AM
    • Member
      5 point Member
    • alphameta
    • Member since 10-08-2004, 2:49 AM
    • Posts 1
    Hello,

    i have successfully implemented uip 2.0 with a asp.net 1.1 application. while trying to migrate to asp.net with whidbey the compiler gives an error in the configuration (web.config). Does anybody know whats wrong?! The configuration is right an should work.

    Thanks for any help!







    Configuration Error
    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: Exception in configuration section handler web.config Wildcard '##any' allows element 'statePersistenceProvider', and causes the content model to become ambiguous. A content model must be formed such that during validation of an element information item sequence, the particle contained directly, indirectly or implicitly therein with which to attempt to validate each item in the sequence in turn can be uniquely determined without examining the content or attributes of that item, and without any information about the items in the remainder of the sequence..

    Source Error:

    Line 5: <section name="appParams" type="System.Configuration.NameValueFileSectionHandler, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
    Line 6: </configSections>
    Line 7: <uipConfiguration enableStateCache="true">
    Line 8: <objectTypes>
    Line 9: <iViewManager name="MobileWebFormViewManager" type="Microsoft.ApplicationBlocks.UIProcess.MobileWebFormViewManager, Microsoft.ApplicationBlocks.UIProcess, Version=1.0.1.0,Culture=neutral,PublicKeyToken=null"/>

    Source File: web.config Line: 7

    Version Information: Microsoft .NET Framework Version:2.0.40607.16; ASP.NET Version:2.0.40607.16
  • Re: UIP 2.0 with ASP.NET 2.0 / Whidbey

    12-09-2004, 4:54 PM
    • Member
      75 point Member
    • santanbo
    • Member since 11-22-2004, 11:59 AM
    • Posts 15
    I had the same issue and found it has somthing to do with the ValidateSchema method of UIPConfigHandler in UIP block. I think it is related to Whidbey's System.XML changes. I haven't spent too much time on it, my guess is it is either a feature or bug in ValidatingReader. I saw ValidatingReader is deprecated and we are suggested to use XmlReader.Create function. May be that is the solution, but it is strange why backward compatibility is broken even in Microsoft's own code. I simply returned out of this method skipping validation. I was able to get beyond this ##any issue but have a new problem. UIP doesn't even start as I am getting an Exception in Assembly.Load function in UIP's GenericFactory.Create.

    If anybody from Microsoft has successfully converted an UIP ASP.NET 1.1 project to ASP.NET 2.0, please help. If UIP is going to be dropped from the patterns, please let us know so we can figure out alternative ways.





  • Re: UIP 2.0 with ASP.NET 2.0 / Whidbey

    12-20-2004, 6:07 PM
    • Member
      75 point Member
    • santanbo
    • Member since 11-22-2004, 11:59 AM
    • Posts 15
    Finally I was able to get UIP working in Whidbey. I had to keep my controller and WebFormView derived class in a separate assembly.
  • Re: UIP 2.0 with ASP.NET 2.0 / Whidbey

    05-26-2005, 10:59 AM
    • Member
      10 point Member
    • JasonTrott
    • Member since 05-26-2005, 11:25 AM
    • trott
    • Posts 2
    Hi Santanbo
    i experienced the same problem when trying to use uipab 2.0 with  asp.net 2.0 beta 2.
    would you be kind enough to elaborate on what you had to do to get it working.?

    in particular i would like to know
    1.   were you using .net 2.0 beta 1 or  2.
    2.  what dev tool did you use.  ( currently i am using .net 2.0 beta 2 with visual web Dev 2005 express. im still waiting for a copy of VS full 2005 beta )
    3. did you have to apply any other fixes other than simply placing your controller and WebFormView derived class in a separate assembly.

    your help would be much appreciated.
    regards jason.
  • Re: UIP 2.0 with ASP.NET 2.0 / Whidbey

    08-26-2005, 10:05 AM
    • Member
      5 point Member
    • gustavohdv
    • Member since 08-26-2005, 11:59 AM
    • Posts 1

    I sent email to Santanbo because I have the same problem with UIP Application Block.

    Can you please explain to me in details how did you solutioned this particular problem of UIP Aplication Block? I have the same problem, with the Web.Config file, and I don´t know what to do! It appears that the Web.Config´s schema has changed from one version to other of Asp.Net.

  • Re: UIP 2.0 with ASP.NET 2.0 / Whidbey

    10-13-2005, 4:01 AM
    • Member
      5 point Member
    • tannerel
    • Member since 10-13-2005, 7:50 AM
    • Posts 1

    Hey

    I just recompiled the entire framework. And I had the same problem. After some investigation a noticed that xsd sheme's in .NET 2005 are more strickter then 1.1. After examining the UIPConfigSchema.xsd I found the problem.

    .NET 2005 thinks that this element <xs:any maxOccurs="unbounded" minOccurs="0" processContents="skip" /> makes all other elements in that tag ambigious because you first declare that the configuration should have a iViewManager, a state, a controller and statePersitenceProvider and then you declare that all objects are allowed.

    So if you comment out or remove following rule <xs:any maxOccurs="unbounded" minOccurs="0" processContents="skip" /> everything starts working.

    You'll need to rebuild the UIP 2.0 framework

    Kind regards Thomas Annerel

    Example file:
    <xs:element name="objectTypes" minOccurs="1" maxOccurs="1">
         <xs:complexType>
          <xs:sequence>
           <xs:element name="iViewManager" minOccurs="1" maxOccurs="unbounded">
            <xs:complexType>
             <xs:sequence></xs:sequence>
             <xs:attribute name="name" type="xs:string" use="required" />
             <xs:attribute name="type" type="xs:string" use="required" />
             <xs:attribute name="default" type="xs:boolean" default="false" use="optional" />
            </xs:complexType>
           </xs:element>
           <xs:element name="state" minOccurs="1" maxOccurs="unbounded">
            <xs:complexType>
             <xs:sequence />
             <xs:attribute name="name" type="xs:string" use="required" />
             <xs:attribute name="type" type="xs:string" use="required" />
             <xs:attribute name="default" type="xs:boolean" default="false" use="optional" />
            </xs:complexType>
           </xs:element>
           <xs:element name="controller" minOccurs="1" maxOccurs="unbounded">
            <xs:complexType>
             <xs:sequence></xs:sequence>
             <xs:attribute name="name" type="xs:string" use="required" />
             <xs:attribute name="type" type="xs:string" use="required" />
            </xs:complexType>
           </xs:element>
           <xs:element name="statePersistenceProvider" minOccurs="1" maxOccurs="unbounded">
            <xs:complexType>
             <xs:sequence></xs:sequence>
             <xs:attribute name="name" type="xs:string" use="required" />
             <xs:attribute name="type" type="xs:string" use="required" />
             <xs:attribute name="default" type="xs:boolean" default="false" use="optional" />
             <xs:anyAttribute processContents="skip" />
            </xs:complexType>
           </xs:element>
           <!-- <xs:any maxOccurs="unbounded" minOccurs="0" processContents="skip" /> -->
          </xs:sequence>
          <xs:anyAttribute processContents="skip" />
         </xs:complexType>
        </xs:element>

  • Re: UIP 2.0 with ASP.NET 2.0 / Whidbey

    10-27-2005, 7:32 AM
    • Member
      5 point Member
    • Channa
    • Member since 10-27-2005, 11:29 AM
    • Posts 1
    Thanks Tannerel! This fix, combined with a workaround of using a separate assembly for the controllers (so that the DLL can be referenced in the UIP configuration) gets UIP 2.0 running on VS 2005, .NET 2.0.
  • Re: UIP 2.0 with ASP.NET 2.0 / Whidbey

    01-20-2006, 12:08 PM
    • Member
      10 point Member
    • JasonTrott
    • Member since 05-26-2005, 11:25 AM
    • trott
    • Posts 2

    Thomas Annerel.  you are a genius.  i cant express enough gratitude.  thank-you very much.

    this problem has been bugging me for months.  when i first looked at this in may typing "uipab 2.0 asp.net 2.0" revealed very little.  now typing that brings me directly to your excellent fix.

    i still cant find anything on the ms website.  does this mean that very few people are using uipab 2.0 on asp.net 2.0 or did it miss it somehow.?

    thanks once again. im indebted to you.

    kind regards Jason Trott.

  • Re: UIP 2.0 with ASP.NET 2.0 / Whidbey

    02-14-2006, 1:24 AM
    • Member
      5 point Member
    • dotsha
    • Member since 02-14-2006, 6:12 AM
    • Posts 1

    Hi,

     I have done UIP 2.0 in asp.net 1.1 but whaen I try to do in asp.net 2.0 It is throwing a error that Assembly Can not load.........

     can u please send a Sample which is u done UIP 2.0 with asp.net 2.0 to dotsha@gmail.com please do the needful..........

  • UIP 2.0 with NET 2.0

    03-16-2006, 6:11 PM
    • Member
      160 point Member
    • mjtech
    • Member since 12-31-2005, 5:00 PM
    • London
    • Posts 32
    Just thought I'd drop in and say that I had this same problem this week with full release .NET 2.0 as I was trying to build a win app with Visual Basic 2005 Express Edition. The above fix does not appear to have worked for me, though.

    It seems Microsoft have not got around to addressing this yet or even mentioning it as a known issue (as far as I can see). One person in a different forum commented on the possibilty of the UIPAB being dropped in favour of the Composite Application Block but so far I do not know if this is true.

    I think this thread will prove to be very valuable.
  • Does anyone have a VS 2005 working sample of UIPAB

    06-13-2006, 12:38 AM
    • Member
      10 point Member
    • chapamanuel
    • Member since 06-13-2006, 4:32 AM
    • Posts 2

    Does anyone have a web sample application working for Visual Studio 2005 and asp.net 2?

    I have tried several samples; however, when I convert the app from VS 2003 to Visual Studio 2005, I get various errors.  If anyone can send me a VS 2005 UIPAB working sample; I would be very grateful if you send the app to my email chapamanuel@yahoo.com

     

    Thanks!

  • Re: Does anyone have a VS 2005 working sample of UIPAB

    06-27-2006, 5:13 AM
    • Member
      10 point Member
    • cookiemonster
    • Member since 06-27-2006, 9:09 AM
    • Posts 2

    chapamanuel / anyone :

     

    I too would be very interested in any working examples / code samples for the above. Could anyone oblige ??

     

    Please mailto: graham@cooke61.wanadoo.co.uk or reply on here.

     

    thankyou !

     

     

  • Re: UIP 2.0 with ASP.NET 2.0 / Whidbey

    07-18-2006, 11:12 PM
    • Member
      5 point Member
    • xlin_0
    • Member since 07-19-2006, 3:04 AM
    • Posts 1

    i have successfully implemented uip 2.0 with a asp.net 2.0 application.

    edit  Code\Microsoft.ApplicationBlocks.UIProcess\UIPConfigSchema.xsd

    <?xml version="1.0" encoding="utf-8" ?>
    <xs:schema elementFormDefault="unqualified" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:complexType name="sharedTransitions">
        <xs:sequence>
          <xs:element name="sharedTransition" minOccurs="1" maxOccurs="unbounded">
            <xs:complexType>
              <xs:sequence></xs:sequence>
              <xs:attribute name="navigateValue" type="xs:string" use="required" />
              <xs:attribute name="navigateTo" type="xs:string" use="required" />
            </xs:complexType>
          </xs:element>
        </xs:sequence>
      </xs:complexType>
      <xs:complexType name="view">
        <xs:sequence>
          <xs:any minOccurs="0" processContents="skip" />
        </xs:sequence>
        <xs:attribute name="name" type="xs:string" use="required" />
        <xs:attribute name="type" type="xs:string" use="required" />
        <xs:attribute name="controller" type="xs:string" use="required" />
        <xs:attribute name="stayOpen" type="xs:boolean" use="optional" />
        <xs:attribute name="openModal" type="xs:boolean" use="optional" />
        <xs:attribute name="layoutManager" type="xs:string" use="optional" />
        <xs:attribute name="floatable" type="xs:boolean" use="optional" />
        <xs:attribute name="canHaveFloatingWindows" type="xs:boolean" use="optional" />
        <xs:anyAttribute processContents="skip" />
      </xs:complexType>
      <xs:element name="uipConfiguration">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="objectTypes" minOccurs="1" maxOccurs="1">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="iViewManager" minOccurs="1" maxOccurs="unbounded">
                    <xs:complexType>
                      <xs:sequence></xs:sequence>
                      <xs:attribute name="name" type="xs:string" use="required" />
                      <xs:attribute name="type" type="xs:string" use="required" />
                      <xs:attribute name="default" type="xs:boolean" default="false" use="optional" />
                    </xs:complexType>
                  </xs:element>
                  <xs:element name="state" minOccurs="1" maxOccurs="unbounded">
                    <xs:complexType>
                      <xs:sequence />
                      <xs:attribute name="name" type="xs:string" use="required" />
                      <xs:attribute name="type" type="xs:string" use="required" />
                      <xs:attribute name="default" type="xs:boolean" default="false" use="optional" />
                    </xs:complexType>
                  </xs:element>
                  <xs:element name="controller" minOccurs="1" maxOccurs="unbounded">
                    <xs:complexType>
                      <xs:sequence></xs:sequence>
                      <xs:attribute name="name" type="xs:string" use="required" />
                      <xs:attribute name="type" type="xs:string" use="required" />
                    </xs:complexType>
                  </xs:element>
                  <xs:element name="statePersistenceProvider" minOccurs="1" maxOccurs="unbounded">
                    <xs:complexType>
                      <xs:sequence></xs:sequence>
                      <xs:attribute name="name" type="xs:string" use="required" />
                      <xs:attribute name="type" type="xs:string" use="required" />
                      <xs:attribute name="default" type="xs:boolean" default="false" use="optional" />
                      <xs:anyAttribute processContents="skip" />
                    </xs:complexType>
                  </xs:element>
                  <!--xs:any maxOccurs="unbounded" minOccurs="0" processContents="skip" /-->
                </xs:sequence>
                <!--xs:anyAttribute processContents="skip" /-->
              </xs:complexType>
            </xs:element>
            <xs:element name="views" minOccurs="1" maxOccurs="1">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="view" type="view" minOccurs="1" maxOccurs="unbounded" />
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="sharedTransitions" type="sharedTransitions" minOccurs="0" maxOccurs="1"></xs:element>
            <xs:element name="navigationGraph" minOccurs="0" maxOccurs="unbounded">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="sharedTransitions" type="sharedTransitions" minOccurs="0" maxOccurs="1"></xs:element>
                  <xs:element name="node" minOccurs="1" maxOccurs="unbounded">
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="navigateTo" minOccurs="1" maxOccurs="unbounded">
                          <xs:complexType>
                            <xs:sequence />
                            <xs:attribute name="navigateValue" type="xs:string" use="required" />
                            <xs:attribute name="view" type="xs:string" use="required" />
                          </xs:complexType>
                        </xs:element>
                      </xs:sequence>
                      <xs:attribute name="view" type="xs:string" use="required" />
                    </xs:complexType>
                  </xs:element>
                </xs:sequence>
                <xs:attribute name="name" type="xs:string" use="required" />
                <xs:attribute name="startView" type="xs:string" use="required" />
                <xs:attribute name="endView" type="xs:string" use="optional" />
                <xs:attribute name="state" type="xs:string" use="required" />
                <xs:attribute name="statePersist" type="xs:string" use="required" />
                <xs:attribute name="iViewManager" type="xs:string" use="required" />
                <xs:attribute name="cacheExpirationInterval" type="xs:string" use="optional" />
                <xs:attribute name="cacheExpirationMode" type="xs:string" use="optional" />
                <xs:attribute name="runInWizardMode" type="xs:string" use="optional" />
              </xs:complexType>
            </xs:element>
            <xs:element name="uipWizard" minOccurs="0" maxOccurs="unbounded">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="sequence" minOccurs="1" maxOccurs="unbounded">
                    <xs:complexType>
                      <xs:attribute name="view" type="xs:string" use="required"></xs:attribute>
                    </xs:complexType>
                  </xs:element>
                </xs:sequence>
                <xs:attribute name="name" type="xs:string" use="required" />
              </xs:complexType>
            </xs:element>
            <xs:element name="userControls" minOccurs="0" maxOccurs="unbounded">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="form" minOccurs="1" maxOccurs="unbounded">
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="childView" minOccurs="1" maxOccurs="unbounded">
                          <xs:complexType>
                            <xs:sequence />
                            <xs:attribute name="name" type="xs:string" use="required" />
                            <xs:attribute name="viewName" type="xs:string" use="required" />
                          </xs:complexType>
                        </xs:element>
                      </xs:sequence>
                      <xs:attribute name="name" type="xs:string" use="required" />
                      <xs:attribute name="initialView" type="xs:string" use="optional" />
                    </xs:complexType>
                  </xs:element>
                </xs:sequence>
                <xs:attribute name="name" type="xs:string" use="required" />
                <xs:attribute name="startForm" type="xs:string" use="required" />
                <xs:attribute name="state" type="xs:string" use="required" />
                <xs:attribute name="statePersist" type="xs:string" use="required" />
                <xs:attribute name="iViewManager" type="xs:string" use="required" />
                <xs:attribute name="cacheExpirationInterval" type="xs:string" use="optional" />
                <xs:attribute name="cacheExpirationMode" type="xs:string" use="optional" />
              </xs:complexType>
            </xs:element>
          </xs:sequence>
          <xs:attribute name="enableStateCache" type="xs:boolean" use="optional" />
          <xs:attribute name="cacheExpirationInterval" type="xs:string" use="optional" />
          <xs:attribute name="cacheExpirationMode" type="xs:string" use="optional" />
          <xs:attribute name="allowBackButton" type="xs:boolean" use="optional" />
        </xs:complexType>
      </xs:element>
    </xs:schema>

  • Re: UIP 2.0 with ASP.NET 2.0 / Whidbey

    09-03-2006, 6:19 PM

    Hi Guys,

    What exactly do you mean by putting the controllers in a separate assembly?
    The controllers we make must reference the UIProcess.dll to do their jobs, but then how can the UIProcess project refer to the controllers?
    Also, We've made a separate solution for the app we're making, just adding a ref to the UIProcess, UIData. Separating out controllers, would not that mean you's have to put it all in one solution?

    Rune

  • Re: UIP 2.0 with ASP.NET 2.0 / Whidbey

    10-14-2008, 11:33 AM
    • Member
      4 point Member
    • acvillela
    • Member since 06-05-2006, 1:44 PM
    • Montreal,QC, Canada
    • Posts 5

    Hi,

    Need help.

    Getting this error below. Don't know what to do....

    <<2008-10-14 12:07:37:111 PM
    Configuration error in the Web.Config file of the specific UIP
    Thread was being aborted.
       at Microsoft.ApplicationBlocks.UIProcess.GraphNavigator.Navigate(String nextNode)
       at Microsoft.ApplicationBlocks.UIProcess.ControllerBase.Navigate(String navigateValue)
       at Genoa3.UIPCommon.Controllers.Base.RootControllerBase.Navigate(String navigateValue) in D:\Genoa\mainline\APPLICATION\UIPCommon\Controllers\Base\RootControllerBase.cs:line 63
    >>

    Please advise.

    thanks for the help.

Page 1 of 1 (15 items)