Results 1 to 4 of 4

Thread: WcfQuickStart : cannot load Spring.Services

  1. #1
    Join Date
    Sep 2009
    Posts
    3

    Default WcfQuickStart : cannot load Spring.Services

    Hi,

    I'm failing to run WCF Quickstart ClientApp (v1.3.2). The exception thrown is : System.IO.FileLoadException: unable to load file or assembly 'Spring.Services, Version=1.3.2.20943...'. I'm trying to use Spring.Services for .NET 3.5 and the project itself references Spring.Services.dll v3.5 which is fine. But somehow something is trying to load Spring.Services V2.0 (cf. stacktrace below).

    The only modification I went trough was to update ClientApp Spring.Services reference to V3.5 instead of V3.0. And, by the way, it didn't work with 2.0 either.

    Any idea ?

    Cheers
    Fabrice

    Code:
    System.Configuration.ConfigurationErrorsException: Error creating context 'sprin
    g.root': Impossible de charger le fichier ou l'assembly 'Spring.Services, Versio
    n=1.3.2.20943, Culture=neutral, PublicKeyToken=65e474d141e25e07' ou une de ses d
    épendances. La définition trouvée du manifeste de l'assembly ne correspond pas à
     la référence de l'assembly. (Exception de HRESULT : 0x80131040) ---> Spring.Obj
    ects.Factory.ObjectDefinitionStoreException: Unexpected exception parsing XML do
    cument from assembly [Spring.WcfQuickStart.ClientApp, Version=1.0.0.0, Culture=n
    eutral, PublicKeyToken=null], resource [Spring.WcfQuickStart.Config.ServerWeb.xm
    l]Inner exception message= Impossible de charger le fichier ou l'assembly 'Sprin
    g.Services, Version=1.3.2.20943, Culture=neutral, PublicKeyToken=65e474d141e25e0
    7' ou une de ses dépendances. La définition trouvée du manifeste de l'assembly n
    e correspond pas à la référence de l'assembly. (Exception de HRESULT : 0x8013104
    0) ---> System.IO.FileLoadException: Impossible de charger le fichier ou l'assem
    bly 'Spring.Services, Version=1.3.2.20943, Culture=neutral, PublicKeyToken=65e47
    4d141e25e07' ou une de ses dépendances. La définition trouvée du manifeste de l'
    assembly ne correspond pas à la référence de l'assembly. (Exception de HRESULT :
     0x80131040)
    Nom du fichier*: 'Spring.Services, Version=1.3.2.20943, Culture=neutral, PublicK
    eyToken=65e474d141e25e07'
       à System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError,
    Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean l
    oadTypeFromPartialName)
       à System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, B
    oolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
       à System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Bo
    olean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
       à System.Type.GetType(String typeName, Boolean throwOnError)
       à Spring.Objects.Factory.Xml.NamespaceParserRegistry.RegisterWellknownNamespa
    ceParserType(String namespaceUri) dans c:\_prj\spring-net\trunk\src\Spring\Sprin
    g.Core\Objects\Factory\Xml\NamespaceParserRegistry.cs:ligne 150
       à Spring.Objects.Factory.Xml.XmlObjectDefinitionReader.HandleValidation(Objec
    t sender, ValidationEventArgs args) dans c:\_prj\spring-net\trunk\src\Spring\Spr
    ing.Core\Objects\Factory\Xml\XmlObjectDefinitionReader.cs:ligne 400
       à System.Xml.Schema.XmlSchemaValidator.SendValidationEvent(XmlSchemaValidatio
    nException e, XmlSeverityType severity)
       à System.Xml.Schema.XmlSchemaValidator.SendValidationEvent(String code, Strin
    g arg)
       à System.Xml.Schema.XmlSchemaValidator.ThrowDeclNotFoundWarningOrError(Boolea
    n declFound)
       à System.Xml.Schema.XmlSchemaValidator.ValidateElement(String localName, Stri
    ng namespaceUri, XmlSchemaInfo schemaInfo, String xsiType, String xsiNil, String
     xsiSchemaLocation, String xsiNoNamespaceSchemaLocation)
       à System.Xml.XsdValidatingReader.ProcessElementEvent()
       à System.Xml.XsdValidatingReader.ProcessReaderEvent()
       à System.Xml.XsdValidatingReader.Read()
       à System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
       à System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
       à System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preser
    veWhitespace)
       à System.Xml.XmlDocument.Load(XmlReader reader)
       à Spring.Util.ConfigXmlDocument.Load(XmlReader reader) dans c:\_prj\spring-ne
    t\trunk\src\Spring\Spring.Core\Util\ConfigXmlDocument.cs:ligne 234
       à Spring.Objects.Factory.Xml.XmlObjectDefinitionReader.DoLoadObjectDefinition
    s(Stream stream, IResource resource) dans c:\_prj\spring-net\trunk\src\Spring\Sp
    ring.Core\Objects\Factory\Xml\XmlObjectDefinitionReader.cs:ligne 318
    
    === Informations d'état de liaison préalable ===
    JRN*: utilisateur = EUROBAT\faupert
    JRN*: DisplayName = Spring.Services, Version=1.3.2.20943, Culture=neutral, Publi
    cKeyToken=65e474d141e25e07
     (Fully-specified)
    JRN*: Appbase = file:///C:/Tools/Spring.NET/examples/Spring/Spring.WcfQuickStart
    /src/Spring.WcfQuickStart.ClientApp/bin/Debug/
    JRN*: PrivatePath initial = NULL
    Assembly appelant*: Spring.Core, Version=1.3.2.20943, Culture=neutral, PublicKey
    Token=65e474d141e25e07.
    ===
    JRN*: cette liaison démarre dans le contexte de chargement de default.
    JRN*: utilisation du fichier de configuration de l'application*: C:\Tools\Spring
    .NET\examples\Spring\Spring.WcfQuickStart\src\Spring.WcfQuickStart.ClientApp\bin
    \Debug\Spring.WcfQuickStart.ClientApp.exe.Config
    JRN*: utilisation du fichier de configuration de l'ordinateur à partir de C:\WIN
    DOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
    JRN*: référence post-stratégie*: Spring.Services, Version=1.3.2.20943, Culture=n
    eutral, PublicKeyToken=65e474d141e25e07
    JRN*: tentative de téléchargement de la nouvelle URL file:///C:/Tools/Spring.NET
    /examples/Spring/Spring.WcfQuickStart/src/Spring.WcfQuickStart.ClientApp/bin/Deb
    ug/Spring.Services.DLL.
    AVT*: la comparaison du nom de l'assembly a entraîné l'incompatibilité*: Numéro
    de révision
    ERR*: impossible de terminer l'installation de l'assembly (hr = 0x80131040). Dét
    ection terminée.
    ...

  2. #2
    Join Date
    Oct 2005
    Location
    Toulouse, France
    Posts
    1,407

    Default

    Hi,

    Looks like there is a bug when loading automatically namespace parser for schema "http://www.springframework.net/wcf".
    We are investigating...

    The workaround to make it work is to register the parser manually.
    Open the App.config file of the ClientApp project, and add this 2 sections :
    Code:
    <configSections>
      <sectionGroup name="spring">
        [..]
        <section name="parsers" type="Spring.Context.Support.NamespaceParsersSectionHandler, Spring.Core" />
      </sectionGroup>
    </configSections>
    Code:
    <spring>
      [..]
      <parsers>
          <parser type="Spring.ServiceModel.Config.WcfNamespaceParser, Spring.Services" />
      </parsers>
    </spring>
    - Bruno
    My english is as poor as my taylor is rich

  3. #3
    Join Date
    Sep 2009
    Posts
    3

    Default

    Yes, problem solved.

    Thanks for the quick answer.

    Cheers
    Fabrice

  4. #4
    Join Date
    Oct 2005
    Location
    Toulouse, France
    Posts
    1,407

    Default

    My english is as poor as my taylor is rich

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •