Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Addins and reflection, using reflection in an Addin
Message
From
11/02/2008 19:29:02
 
 
To
11/02/2008 18:00:34
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01291548
Message ID:
01291665
Views:
7
>The assembly is loading, not coming back null. The class itself (no classes in the assembly of any type) wont instantiate at the creatinstance line.

I guess I should have elaborated more with my answer. It looked like your CreateInstance() syntax was ok (assuming that what you are passing it valid classnames), so because that should be working ok, I thought maybe that your problem had to do with using LoadFile() instead of LoadFrom().

Assuming that you tried my LoadFrom() suggestion and it still isn't working, then their could only be two possible reasons for the CreateInstance() to not work:

1) You're not using a valid classname (it should be simply the name of the class without any namespace stuff).
2) The class itself is having problems instantiating

I doubt if it's #2, because it's happening for all of your classes.

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform