Tech Off Thread

2 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

File or assembly name Foo, or one of its dependencies, was not found.

Back to Forum: Tech Off
  • User profile image

    The path Foo is 100% valid, but I don't know why it isn't working...

    This is the line it chokes on:

    W3b.Lib.Processors.IProcessor Proc = (W3b.Lib.Processors.IProcessor)System.Activator.CreateInstance(strAssemblyBinDir + arrProc[i].Assembly, arrProc[i].NamespacePath);

    Where arrProc[i].Assembly concatenated with strAssemblyBinDir is a valid path to the assembly.

    All other referenced assemblies are there, I just have no idea why it isn't working.

  • User profile image
    Sven Groot

    CreateInstance uses the assembly name, which is not the same thing as a file name or path. Use CreateInstanceFrom if you want to use a file name.

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.