Program written in beta 2 version of Framework 2.0... Help!!!
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 12 of 12

Thread: Program written in beta 2 version of Framework 2.0... Help!!!

  1. #1
    Join Date
    Mar 2006
    Posts
    8

    Red face Program written in beta 2 version of Framework 2.0... Help!!!

    I downloaded the DataStructures20.msi file from MSDN pages ( http://msdn2.microsoft.com/en-us/lib...74(VS.80).aspx ) which has some OK examples of data structure (I`m interested only in graph alorithm though) use in C# 2.0 and I`m getting the

    "Error 1 The type or namespace name 'Collection' could not be found (are you missing a using directive or an assembly reference?) C:\Documents and Settings\Dani\My Documents\MSDN\DataStructures20\skmDataStructures2\NodeList.cs 15 32 skmDataStructures2"
    "Warning 2 Reference to type 'System.Collections.Generic.Collection`1' claims it is defined in 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll', but it could not be found c:\Documents and Settings\Dani\My Documents\MSDN\DataStructures20\skmDataStructures2\bin\Release\skmDataStructures2.dll GraphTester"

    and a few similar errors when building it.

    I have C# 2005 Express and .NET framework 2.0 that comes bundled with it through the internet installation.
    I`ve found out by contacting the author that the code was written using beta 2 version of Framework 2.0 and hence the errors.

    He could not help me though, but I hope you can.
    Is there a possibility of conversion? Some code changes?
    What are your experiences with similar issues. Is it doable?

  2. #2
    Join Date
    May 2003
    Location
    Germany
    Posts
    936

    Re: Program written in beta 2 version of Framework 2.0... Help!!!

    If you have to sourcecode of the related library you should open it within the Visual Studio. Then remove the references and add the references again. Finally recompile the project and it should work.
    After that you remove the library reference inside of your application and add the reference again for the new compiled one.
    Useful or not? Rate my posting. Thanks.

  3. #3
    Join Date
    Jul 2007
    Posts
    1

    Re: Program written in beta 2 version of Framework 2.0... Help!!!

    I figured it out!

    See http://graemef.com/blog/graeme/vs200...l_observations and http://www.itu.dk/people/sestoft/csh...ly/errata.html and http://www.google.com/search?num=30&...te&btnG=Search

    The problem is threefold:

    1. System.Collections.Generic.Collection<T> became System.Collections.ObjectModel.Collection<T>

    2. IEnumerable<T> now derives from IEnumerable, meaning that all classes implementing IEnumerable<T> need two implementations of GetEnumerator().

    3. Once you fix those, you'll get errors that Application doesn't contain a definition for EnableRTMMirroring.

    So to fix the problem:

    1. In NodeList.cs, add "using System.Collections.ObjectModel;"

    2. In SkipList.cs, BinarySearchTree.cs, and Graph.cs, find the implementation of public IEnumerator<T> GetEnumerator() and add this below it:

    IEnumerator IEnumerable.GetEnumerator()
    {
    return GetEnumerator();
    }

    3. Remove lines in *Tester\Program.cs that say "Application.EnableRTLMirroring();"

    Then it should work!

  4. #4
    Join Date
    Sep 2012
    Posts
    5

    Re: Program written in beta 2 version of Framework 2.0... Help!!!

    This is long shot but since the msdn download link is not working, I wanted to know if you still have the archive of the datastructures msi file.
    Let me know.
    Thanks,

  5. #5
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    11,416

    Re: Program written in beta 2 version of Framework 2.0... Help!!!

    I searched bing with "DataStructures20.msi download" and found it pretty easily...

    http://msdn.microsoft.com/en-US/libr...(v=VS.80).aspx

  6. #6
    Join Date
    Sep 2012
    Posts
    5

    Re: Program written in beta 2 version of Framework 2.0... Help!!!

    Try the link - it does not work.

  7. #7
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    11,416

    Re: Program written in beta 2 version of Framework 2.0... Help!!!

    It works for me. Did you click on the link or try to copy the visible text into a browser? The visible link text isn't complete so that won't work, but clicking on the link should. The full url is
    Code:
    http://msdn.microsoft.com/en-US/library/ms379572(v=VS.80).aspx
    If that still doesn't work, search Msdn for "An Extensive Examination of Data Structures Using C# 2.0".

  8. #8
    Join Date
    Sep 2012
    Posts
    5

    Re: Program written in beta 2 version of Framework 2.0... Help!!!

    Quote Originally Posted by Arjay View Post
    It works for me. Did you click on the link or try to copy the visible text into a browser? The visible link text isn't complete so that won't work, but clicking on the link should. The full url is
    Code:
    http://msdn.microsoft.com/en-US/library/ms379572(v=VS.80).aspx
    If that still doesn't work, search Msdn for "An Extensive Examination of Data Structures Using C# 2.0".
    Arjay - thanks for the prompt replies. The msdn article link works and that is not the problem. The issue was with link in the msdn article for download zip that was not work.

  9. #9
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    11,416

    Re: Program written in beta 2 version of Framework 2.0... Help!!!

    Code:
    http://download.microsoft.com/download/5/0/f/50f7b985-990b-4154-ac21-518bfe16f887/DataStructures20.msi

  10. #10
    Join Date
    Sep 2012
    Posts
    5

    Re: Program written in beta 2 version of Framework 2.0... Help!!!

    Arjay - The link to DataStructures20.msi is what i have tried in different browsers and multiple times. The link times out and does not download anything for me.
    Are you able to download the msi file? If so, please do me a favor and share the msi with me.

  11. #11
    Join Date
    Sep 2012
    Posts
    5

    Re: Program written in beta 2 version of Framework 2.0... Help!!!

    Btw - Other users have similar problem, see here - http://social.msdn.microsoft.com/For...7-455ab8aac87d

  12. #12
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    11,416

    Re: Program written in beta 2 version of Framework 2.0... Help!!!

    Yes. When I used the above link and got the file save as dialog, I figured we were golden. I didn't actually try to save the file.

    I guess you are out of luck.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center