Doing DotSpatial in Visual C# 2010 Express: 1 Error - Object reference not set to an instance of an object

Locked Doing DotSpatial in Visual C# 2010 Express: 1 Error - Object reference not set to an instance of an object

  • Tuesday, July 31, 2012 1:40 PM
     
     

    Hi all,

    I tried to open my old project "scDS1_ExpressWinForm1", that had ".Net Framework 4" in the Properties of the project and "spatialToolStrip1" on Form1 and it gave me the following Error: To prevent possible data loss before loading the designer, the following errors must be resolved: Object reference not set to an instance of an object. Instance of this error (1) 1. Show Call Stack. ...  What is wrong in my old project "scDS1_ExpressWinForm1" that is using .Net Framework 4?  How can I resolve this error?

    Please kindly help and advise.

    Thanks in advance,

    Scott Chang

All Replies

  • Thursday, August 02, 2012 4:00 AM
    Moderator
     
     

    Hi Scott_Chang,

      Welcome to MSDN Forum Support.

      We're doing research on this issue. It might take some time before we get back to you.

      Sincerely,

      Jason Wang

     


    Jason Wang [MSFT]
    MSDN Community Support | Feedback to us

  • Thursday, August 02, 2012 1:16 PM
    Moderator
     
     

    Hi Scott,

    Please open the form.designer.cs file to check whether spatialToolStrip1 is initialized.  Or you may upload the demo project to http://skydrive.live.com so we can help you further troubleshot the problem.

    Good day!

    Thanks


    Michael Sun [MSFT]
    MSDN Community Support | Feedback to us

  • Thursday, August 02, 2012 3:30 PM
     
     

    Are you using Form controls from the .NET Framework? 

    Rudy   =8^D


    Mark the best replies as answers. "Fooling computers since 1971."

    http://thesharpercoder.blogspot.com/

  • Saturday, September 15, 2012 1:55 PM
     
     

    Click in "GO TO CODE" on the right side, just bellow "Why am I seeing this page?". Then look for the error, that should be underlined.

    Maybe you should remove by hand the erros and open the form.cs. Then add new objects or just solve the problem.


    Adelino Araujo