Confused References

Posted by: bo-jangles on 8 September 2017, 1:04 pm EST

  • Posted 8 September 2017, 1:04 pm EST

    Hi I've upgraded to version 4.0 (the latest update). I have uninstalled the previous version. I'm experiencing the following problem:


    The main project in my solution references a component library that I have wrote. One of the components in that library inherits from FPSpread


    Public Class z9iFps : Inherits FarPoint.Win.Spread.FpSpread


    When my main project references the component project I get the following error:


    Error 86 Method 'Private Sub fps_SelectionChanged(sender As Object, e As FarPoint.Win.Spread.SelectionChangedEventArgs)' cannot handle Event 'Public Event SelectionChanged(sender As Object, e As FarPoint.Win.Spread.SelectionChangedEventArgs)' because they do not have the same signature. 


    The signatures appear to be the same.


    When I reference the compiled component DLL I don't get any error messages.


    I'm sure that this has got nothing to do with the Spread itself but some zombie reference to the previous version is causing problems. I've deleted obj folders in ll projects, made sure that correct Spread is referenced.


    I'm using VS2005 sp1.


    Any ideas?

  • Replied 8 September 2017, 1:04 pm EST

    bojan -

    Make sure that all instances of your references are synced up.  You may have to go into some of your project/solution files in a text editor and check for this.  And also, though I am not sure, it may have to do with your component referencing one version and your project referencing another, if that is the case.
  • Replied 8 September 2017, 1:04 pm EST

    Hi,


    what do I look for?


     Main project is referencing:


     
          True
       

       
          True
       


    and the component library:


     
          True
       

       
          True
       


    The references appear to be the same.


    In both projects I have copy local  =  true and both bin folders, after compilation, contain the same version of Farpoint Spread (4.0.2001.2005).


    Regards


    Bojan

  • Replied 8 September 2017, 1:04 pm EST

    Looks correct to me.  Could you create a project reproducing this and zip it up and attach it for us to debug?
  • Replied 8 September 2017, 1:04 pm EST

     


    I've tried removing components from the project, adding them back, creating new one that inherits from FPSpread, deleting obj and bin folders. Nothing helped.


    At the end, I've created a new project, added all components back, including the one that inherits from FPSpread and it's all working now. I wish I have found what was corrupted in the original project.


    In any case, thanks for the help.


    B.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels