Red Gate forums :: View topic - Null reference error when using Reflector API
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
.NET Reflector 6 Community Forum
.NET Reflector 6 Community Forum forum

Null reference error when using Reflector API

Search in .NET Reflector 6 Community Forum forum
Post new topic   Reply to topic
Jump to:  
Author Message
asua



Joined: 29 May 2014
Posts: 1

PostPosted: Thu May 29, 2014 8:18 am    Post subject: Null reference error when using Reflector API Reply with quote

Hi
I was writing a code that give me all references of methods in a dll.
I added reflector.exe in my reference. But whenever I am running I am getting assemblyManager as null. My cfg file contains [AssemblyManager].
static void Main(string[] args)
{
ArrayList listMethods = new ArrayList();
try
{
IServiceProvider serviceProvider = new ApplicationManager(null,true);
IAssemblyManager assemblyManager = (IAssemblyManager)
serviceProvider.GetService(typeof(IAssemblyManager));

What am I doing wrong ?
Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group