Results 1 to 6 of 6

Thread: assembly spring.core.dll signed

  1. #1
    Join Date
    Nov 2009
    Posts
    6

    Default assembly spring.core.dll signed

    Could someone tell me where is located the FullTrush distribution of Spring, with the assembly signed?

  2. #2
    Mark Pollack is offline Spring.NET Co-Lead Spring TeamSpring User
    Join Date
    Sep 2004
    Location
    New York, NY
    Posts
    1,683

    Default

    Hi,

    All Spring .dlls in the release are signed. Just download the release.

    http://s3.amazonaws.com/dist.springf....NET-1.3.0.exe

    or follow the download links from the spring.net home page to get .zip and API docs download links as well.

    Mark

  3. #3
    Join Date
    Nov 2009
    Posts
    6

    Default

    Quote Originally Posted by Mark Pollack View Post
    Hi,

    All Spring .dlls in the release are signed. Just download the release.

    http://s3.amazonaws.com/dist.springf....NET-1.3.0.exe

    or follow the download links from the spring.net home page to get .zip and API docs download links as well.

    Mark
    Hi Mark,

    I'm testing spring. Net addin for Microsoft Word. The IOC control works well, But when I want to integrate NHibernate starts giving me problems.

    I made a test:

    context.xml

    Code:
    <?xml version="1.0" encoding="utf-8" ?>
    
    <objects xmlns="http://www.springframework.net">
      
      <object id="Calle" type="NotinDatos.CalleImp, NotinDatos"  >
        <property name="Nombre" value="prueba"/>
      </object>
    
    
    </objects>

    I do not write anything in app.config and the code of the addin I do the following:

    Code:
    AplicationContext Dim As IApplicationContext = Nothing
    
    If aplicationContext Is Nothing Then
                   
      Try
          aplicationContext = New XmlApplicationContext ("file: / / ... \ context.xml")
          Dim a As CalleImp = aplicationContext.GetObject ("Calle", GetType (CalleImp))
      Catch ex As Exception
    
      End Try
    
    End If
    This code works well, now I show the case where failure

    context.xml

    Code:
    <?xml version="1.0" encoding="utf-8" ?>
    
    <objects xmlns="http://www.springframework.net"
      xmlns:db="http://www.springframework.net/database">
    
    
     
      <db:provider id ="DbProvider" provider ="SqlServer-2.0" connectionString ="Data Source=serv2003;Initial Catalog=Datos;Trusted_Connection=Yes;" />
    
    
      <object id="sessionFactory" type="Spring.Data.NHibernate.LocalSessionFactoryObject, Spring.Data.NHibernate12">
    
        <property name="DbProvider" ref="DbProvider"/>
    
        <property name="MappingAssemblies">
          <list>
            <value>NotinDatos</value>
          </list>
        </property>
    
        <property name="HibernateProperties">
          <dictionary>
            <entry key="hibernate.connection.provider"
                   value="NHibernate.Connection.DriverConnectionProvider"/>
            <entry key="hibernate.dialect"
                   value="NHibernate.Dialect.MsSql2000Dialect"/>
            <entry key="hibernate.connection.driver_class"
                   value="NHibernate.Driver.SqlClientDriver"/>
            <entry key="hibernate.show_sql"
                   value ="true"/>
          </dictionary>
        </property>
    
      </object>
    
      <object id="Calle" type="NotinDatos.CalleImp, NotinDatos"  >
        <property name="Nombre" value="prueba"/>
      </object>
    
    </objects>
    In the app.config I put:

    Code:
     <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
        <configSections>
          
          <sectionGroup name="spring">
            <section name="parsers" type="Spring.Context.Support.NamespaceParsersSectionHandler, Spring.Core"/>
          </sectionGroup>
          ...
    
        </configSections>
    
     ...
    
      <spring>
        <parsers>
          <parser type="Spring.Data.Config.DatabaseNamespaceParser, Spring.Data" />
        </parsers>
      </spring >
    
    </configuration>
    I give a security issue.

    This is the trace of the error:

    Se produjo una excepción en el inicializador de tipo de 'Spring.Util.ObjectUtils'.

    Code:
       
    en Spring.Util.ObjectUtils.InstantiateType(Type type)    en Spring.Objects.Factory.Xml.NamespaceParserRegistry.RegisterParser(Type parserType, String namespaceUri, String schemaLocation)    en
     Spring.Context.Support.NamespaceParsersSectionHandler.Create(Object parent, Object configContext, XmlNode section)    en
     System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.CreateSectionImpl(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader)    en
     System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.CreateSectionWithRestrictedPermissions(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader)    en
    
    System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.CreateSection(Boolean inputIsTrusted, RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader)    en
     System.Configuration.RuntimeConfigurationRecord.CreateSection(Boolean inputIsTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader)    en
     System.Configuration.BaseConfigurationRecord.CallCreateSection(Boolean inputIsTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader, String filename, Int32 line)
    Spring .net version 1.3.0.20349

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

    Default

    Hi,

    If you are using Spring from the GAC, you have to use fully qualified type names everywhere.

    Example :
    Code:
    <parser type="Spring.Data.Config.DatabaseNamespaceParser, Spring.Data, Version=1.3.0.20349, Culture=neutral, PublicKeyToken=65e474d141e25e07" />

    - Bruno
    My english is as poor as my taylor is rich

  5. #5
    Join Date
    Nov 2009
    Posts
    6

    Default

    I've tried what you've written me but still does not work

    Now, mi app.config is:

    Code:
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
        <configSections>
          
          
          <sectionGroup name="spring">
            <section name="parsers" type="Spring.Context.Support.NamespaceParsersSectionHandler, Spring.Core, Version=1.3.0.20349, Culture=neutral, PublicKeyToken=65e474d141e25e07"/>
          </sectionGroup>
          
    
        </configSections>
        <system.diagnostics>
            <sources>
                <!-- This section defines the logging configuration for My.Application.Log -->
                <source name="DefaultSource" switchName="DefaultSwitch">
                    <listeners>
                        <add name="FileLog"/>
                    </listeners>
                </source>
            </sources>
            <switches>
                <add name="DefaultSwitch" value="Information" />
            </switches>
            
        </system.diagnostics>
    
     
      <spring>
        <parsers>
          <parser type="Spring.Data.Config.DatabaseNamespaceParser, Spring.Data, Version=1.3.0.20349, Culture=neutral, PublicKeyToken=65e474d141e25e07" />
        </parsers>
      </spring >

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

    Default

    Hi,

    then remove the Spring stuff from the App.config file, and add this before the XmlApplicationcontext creation :
    Code:
    NamespaceParserRegistry.RegisterParser(typeof(DatabaseNamespaceParser));
    - Bruno
    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
  •