Please help me with strange error while compile code

My code works good , but when I move a method from one class to another , error occur :

An unhandled exception of type 'System.NullReferenceException' occurred in Unknown Module.

Additional information: Object reference not set to an instance of an object.

There is no source code available for current location.

Please help me , thank you.




Answer this question

Please help me with strange error while compile code

  • Bob Myles

    Can you provide us the Strack Trace


  • Elif Onalan

    Sorry all, because my urgent project so i have to use my back up code, i deleted the error project.Thank everybody alot

  • Aknittel

    Hi. Probably you are using a method from a class that still does not get intanciated. Maybe you forgot to make use of "new" keyword.

    "Object reference not set to an instance of an object" is the kind of message you receive when you do this kind of things.


  • ruigkgfvkljhif

    Your first step would be to post the method in question. What are the two classes you're moving between, and why



  • Please help me with strange error while compile code