Hi i am loading an assembly as
Assembly testAssembly = Assembly.LoadFile("abc.dll");
Type t = testAssembly.GetType("abc.dll");
but getting an error “Absolute path information is required” however my dll is located in the same folder
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.
wal has a good point about the
GetTypemethod call, but to answer the question:If
AppDomain.CurrentDomainisn’t reliable, then a slightly more convoluted way: