+1-888-365-2779
Try Now
More in this section

Assembly error

3 posts, 0 answered
  1. fregas baratis
    fregas baratis avatar
    185 posts
    Registered:
    14 Nov 2002
    17 Feb 2007
    Link to this post
    After upgrading my site, i keep getting this error.  I've tried deleting my ASP.NET Temporary files and rebuilt several times.

    Could not load file or assembly 'Nolics.Engine.v4.2, Version=4.2.2507.4, Culture=neutral, PublicKeyToken=c50af72fde0670b7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Nolics.Engine.v4.2, Version=4.2.2507.4, Culture=neutral, PublicKeyToken=c50af72fde0670b7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Assembly Load Trace: The following information can be helpful to determine why the assembly 'Nolics.Engine.v4.2, Version=4.2.2507.4, Culture=neutral, PublicKeyToken=c50af72fde0670b7' could not be loaded.

    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

    Stack Trace:

    [FileLoadException: Could not load file or assembly 'Nolics.Engine.v4.2, Version=4.2.2507.4, Culture=neutral, PublicKeyToken=c50af72fde0670b7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
    System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) +0
    System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +72
    System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +58
    System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +64
    Nolics.ORMapper.Support.NNSettings.LoadHintedType(String assemblyPath, String typeName, Boolean fMustFind) +36
    Telerik.DataAccess.NolicsHelper.SetConnection(String connectionName, String providerName) +166
    Telerik.DataAccess.NolicsHelper.SetConnection(String connectionName) +11
    Telerik.Cms.NolicsCmsProvider.Initialize(String name, NameValueCollection config) +234
    Telerik.ObjectManager`1.InstantiateProvider(ProviderSettings providerSettings, Type providerType) +711
    Telerik.ObjectManager`1.InstantiateProviders(ProviderSettingsCollection configProviders, IDictionary`2 providers, Type providerType) +134
    Telerik.ObjectManager`1.Initialize() +569
    Telerik.ObjectManager`1..ctor(String provider) +12
    Telerik.ObjectManager`1..ctor() +11
    Telerik.Cms.Web.UrlHelper.FillTable() +112
    Telerik.Cms.Web.UrlHelper..cctor() +99

    [TypeInitializationException: The type initializer for 'Telerik.Cms.Web.UrlHelper' threw an exception.]
    Telerik.Cms.Web.UrlHelper.GetUrl(String url) +0
    Telerik.Cms.Web.CmsHttpModule.BeginRequest(Object sender, EventArgs e) +703
    System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64


    Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
  2. fregas baratis
    fregas baratis avatar
    185 posts
    Registered:
    14 Nov 2002
    17 Feb 2007
    Link to this post
    Well, right after i posted that i found the error.  In my web.config at the bottom i had:

        <nolics>
          <connections>
            <add name="DefaultNolicsConnection" driver="Nolics.ORMapper.DataProviders.SqlServer2005Provider, Nolics.Engine.v4.2, Version=4.2.2507.4, Culture=neutral, PublicKeyToken=c50af72fde0670b7" connectionStringName="Sitefinity"/>
          </connections>
        </nolics>

    but what i needed was:

        <nolics>
          <connections>
            <add name="DefaultNolicsConnection" driver="Nolics.ORMapper.DataProviders.SqlServer2005Provider" connectionStringName="Sitefinity"/>
          </connections>
        </nolics>

    Don't remember if this was in the upgrade docs or not.
  3. Vassil Daskalov
    Vassil Daskalov avatar
    261 posts
    Registered:
    18 May 2013
    19 Feb 2007
    Link to this post
    Hi Fregas,

    Indeed this should have caused your problem, as there was a new version of Nolics between the latest beta3 update and the RC edition.
    Sorry for the inconvenience caused.

    All the best,
    Vassil Daskalov
    the telerik team
Register for webinar
3 posts, 0 answered