Red Gate forums :: View topic - Object reference not set to an instance of object
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
.Net Reflector 6.x and .NET Reflector 6.x Pro
.Net Reflector 6.x and .NET Reflector 6.x Pro forum

Object reference not set to an instance of object

Search in .Net Reflector 6.x and .NET Reflector 6.x Pro forum
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Jump to:  
Author Message
SpringMVC



Joined: 12 Oct 2010
Posts: 1

PostPosted: Tue Oct 12, 2010 10:14 am    Post subject: Object reference not set to an instance of object Reply with quote

Hi.
When I try to disassemble one particular method of C# executable file, .NET Reflector gives me an error of "Object reference not set to an instance of object".
( Appears popup, where is written ".NET Reflector has encountered a problem. We are sorry for the inconvenience". Next follows description of a problem about object reference not set to an instance of an object. And popup has two buttons "Send Error Report", "Don't Send".
Other methods are disassembled successfully.)
Any suggestions?? ( The thing is, that this method is important for me. )
Back to top
View user's profile Send private message
Clive Tong



Joined: 04 Dec 2008
Posts: 283

PostPosted: Thu Oct 14, 2010 8:33 am    Post subject: Reply with quote

Hi.

It is much easier for us to track down (and fix) bugs if we have a reproducible example. Is there somewhere we can get the assembly in question?

Thanks.
Back to top
View user's profile Send private message
DRAirey1



Joined: 27 Oct 2010
Posts: 1

PostPosted: Wed Oct 27, 2010 2:08 pm    Post subject: Object reference not set to an instance of object. Reply with quote

Yeah, I'm running into the same thing now. Reflector won't start. It has been running fine for months. Recently I upgraded to the latest version (6.5 I think). I saw the promo for the .NET Reflector Pro and tried it with the integration into Visual Studio 2010. In the last week I uninstalled Visual Studio 2010 Pro and Installed Visual Studio 2010 Ultimate. .NET Reflector still worked after that, but I decided I was going to fall back on the native facility in Visual Studio for stepping through code and I asked .NET Reflector to stop integrating with VS 2010. Since then I've not been able to get Reflector to run. I tried removing it from my machine and re-installing, but no joy. I suspect there are some registry entries made, but without an install/uninstall facility, I can't clean them out.
Back to top
View user's profile Send private message
ifthenelse



Joined: 22 Oct 2010
Posts: 2

PostPosted: Tue Nov 02, 2010 11:41 pm    Post subject: Reply with quote

Hey, I'm getting same error when trying to add a dll to "Assemblies to debug". It executes 12% and then the process fails with a NullReferenceException.
What can be causing this exception?
I'm using VS2008 and Reflector Pro, dll is in .NET 3.5.

Thanks

Exception details:

System.NullReferenceException: Object reference not set to an instance of an object.
at .‡ƒ.“(Exception , Int32 , Object[] )
at ‘.”..’.WriteNamespace(INamespace )
at (Object , INamespace )
at ž.ž.™()
at ž.ž.Œ()
at .‡.(String , String , Žž ,  , ‰ , EventHandler`1 , ‰ , Action`1 )
at .‡.(AssemblyReference , Žž , FrameworkLanguageSelection ,  , EventHandler`1 )
at .•.(AssemblyReference , FrameworkLanguageSelection )
Back to top
View user's profile Send private message
Clive Tong



Joined: 04 Dec 2008
Posts: 283

PostPosted: Thu Nov 04, 2010 4:25 pm    Post subject: Reply with quote

Hi.

Is there a publically available dll that demonstrates this failure?

Thanks.
Back to top
View user's profile Send private message
ifthenelse



Joined: 22 Oct 2010
Posts: 2

PostPosted: Fri Nov 05, 2010 12:10 am    Post subject: Re: Reply with quote

Clive Tong wrote:
Hi.

Is there a publically available dll that demonstrates this failure?

Thanks.


Unfortunately the dll is private and I cannot send it to you. I work on outsourcing and maybe knowing an approximation of what can be causing it, would allow me to let them know what to change.

Regards.
Back to top
View user's profile Send private message
nmpham



Joined: 28 Jun 2005
Posts: 12

PostPosted: Fri Nov 05, 2010 11:09 am    Post subject: I got the exception with WCFStorm-Lite Reply with quote

I use WCFStorm-Lite to debug my services as it can setup header.
However, the header values are always empty so i fired up Reflector to look into its methodes

Class
WcfStorm.Lib.Entities.WcfStormIncomingMsgHeaders

public Node BuildIncomingHeadersTree(string url, string contractName, string method);

produced the exception

You can get WCFStorm-lite here
http://www.wcfstorm.com/wcf/wcfstorm-lite.aspx
Back to top
View user's profile Send private message
napernik



Joined: 26 Nov 2010
Posts: 1
Location: Denmark

PostPosted: Fri Nov 26, 2010 1:36 pm    Post subject: Reply with quote

Hi. I'm experiencing what looks like the same issue.

Please check out dll

http://docs.composite.net/downloads/temp/composite.dll.zip
Back to top
View user's profile Send private message
Horcrux7



Joined: 18 Dec 2010
Posts: 1

PostPosted: Sat Dec 18, 2010 3:51 pm    Post subject: Reply with quote

I have the same problem with version 6.5.0.135. Here is a download link http://www.frijters.net/ikvmbin-0.45.3987.zip

Use the dll IKVM.OpenJDK.Beans.dll in the zip file and the methods:
java.beans.Encoder.getValue
java.beans.EventHandler.applyGetters
java.beans.EventHandler.invokeInternal

and many more methods show the error with the C# language. With IL there are no such errors.
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies. 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