0

I have a project that uses assembly to load some clases dynamicly nevertheles there is this one class that the current project does not have it as a reference so when i try tu use GetType(type) i just get a null.... what's the bes approach to handle this

should i reference the projects?

2
  • Referencing is not required. Can you share code? So that some can have a look one that. Commented Jan 26, 2011 at 3:33
  • it seems that it is required i think that it needs to be in the same assembly i just have a referncy spagetti there....!! Commented Jan 26, 2011 at 14:19

1 Answer 1

1

You're either failing to load the assembly or the typename is incorrect. Verify that your target assembly doesn't have other dependencies that you're missing.

Sign up to request clarification or add additional context in comments.

3 Comments

what do you mean with "Verify that your target assembly doesn't have other dependencies that you're missing."
Assemblies can depend on other assemblies. If the assembly that you're trying to load the type from can't be loaded because it's missing a dependency, then bang, you're dead.
thanks i just did as you said load the assembly by its name and everything work perfectly thanks!!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.