The assembly it’s trying to find isn’t the root assembly – it’s a referenced one, but it’s in the same folder, and Directory.GetCurrentDirectory() is the folder with all of the files in.
I’m stuck – any suggestions?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can either:
AppDomainto load the assembly (and set theAppDomain‘s base directory to the directory containing all the assemblies).AppDomain.AssemblyResolveto help the CLR find the assembly’s dependencies.