Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nik Wahlberg 639 posts 1237 karma points MVP
    Nov 01, 2013 @ 14:18
    Nik Wahlberg
    0

    RestExtensions could not load file or assembly

    Hi all,

    I'm porting reste extensions from a 4.7 install over to a new v6 install (6.1.5 right now). I'm getting the following error when I try to access the base URL:

    Server Error in '/' Application.
    

    Could not load file or assembly '\/bin\/Site.Andera.com' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)

    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 '\/bin\/Site.Andera.com' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)

    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.

    Stack Trace:

    [FileLoadException: Could not load file or assembly '\/bin\/Site.Andera.com' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)] System.Reflection.AssemblyName.nInit(RuntimeAssembly& assembly, Boolean forIntrospection, Boolean raiseResolveEvent) +0 System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +168 System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +17 System.Reflection.Assembly.Load(String assemblyString) +35 Umbraco.Web.BaseRest.RestExtensionMethodInfo.GetFromLegacyConfiguration(String extensionAlias, String methodName) +481 Umbraco.Web.BaseRest.RestExtensionMethodInfo.GetMethod(String extensionAlias, String methodName, Int32 paramsCount) +65 Umbraco.Web.BaseRest.BaseRestHandler.ProcessRequest(HttpContext context) +556 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +913 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165

    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18056

    Any hints would be greatly appreciated!

  • Nik Wahlberg 639 posts 1237 karma points MVP
    Nov 01, 2013 @ 14:29
    Nik Wahlberg
    0

    Update, changing to use BaseRestExtensions config I now get a "Could not get type..." error. Class lives in root of project and has the correct namespace. Hmmm...

Please Sign in or register to post replies

Write your reply to:

Draft