DNN 2.1.2 and VB 2002 - need new compiler?

Last post 06-08-2005 4:58 PM by baboo. 4 replies.

Sort Posts:

  • DNN 2.1.2 and VB 2002 - need new compiler?

    06-23-2004, 9:29 PM
    • Member
      25 point Member
    • mliebster
    • Member since 06-23-2004, 9:08 PM
    • Posts 5
    I've downloaded and successfully installed the lastest DNN on my 2k pro box. The site works great and I want to start developing my own moduled. However when I open the solution in 2002, I get a bunch of syntax errors.

    In the file PaFolderCollection.vb this error occurs several times
    For i As Integer = 0 To value.Length - 1
    ^^^^^^^^^
    The errors are "i is not defined" and a "syntax error" on the As.

    I already have the 1.1 framework installed. It appears that VB has changed from 2002 to 2003.

    Can I just download a new compiler?
    Or do I need to upgrade to 2003 (really can't afford it)?

    Thanks. I tried searching on this topic but didn't find anything, so I hope I'm not duplicating another post.

    mliebster
  • Re: DNN 2.1.2 and VB 2002 - need new compiler?

    06-23-2004, 10:05 PM
    • Member
      665 point Member
    • jepper
    • Member since 03-18-2004, 9:29 PM
    • United States WV
    • Posts 133
    Check out this post for a converter to 2002.

    http://www.asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=582524
  • Re: DNN 2.1.2 and VB 2002 - need new compiler?

    06-24-2004, 2:14 AM
    • All-Star
      16,504 point All-Star
    • hooligannes97
    • Member since 09-26-2003, 2:57 PM
    • Bolivia
    • Posts 2,917
    • Moderator
    mliebster,

    That is because the syntax works only in VS 2003.

    Simply Dim the variable to its type before you use the For statement.

    You will get a couple more errors:

    1. Change ServerAndNoCache to one line with "Server" and another with "NoCache"
    2. Something related to mailing functionality: .Fields must be changed to .Headers

    Also beware of the reference paths that additional projects will have, they must point to your installation and not the one that says C:/Dotnetnuke2 (or something similar).
    Do you know the truth when you hear it?
  • Re: DNN 2.1.2 and VB 2002 - need new compiler?

    06-24-2004, 9:53 AM
    • Member
      25 point Member
    • mliebster
    • Member since 06-23-2004, 9:08 PM
    • Posts 5

    Thanks for the responses. I was hoping that I could just d/l a new compiler or framework and plug it into my Visual Studio IDE.

    I'll make the changes. I was hoping to hold off until VS 2005 came out, and this will help!

    There also some For Each statements that need to be converted to enumerators.

    Thanks again,
    mliebster
  • Re: DNN 2.1.2 and VB 2002 - need new compiler?

    06-08-2005, 4:58 PM
    • Member
      35 point Member
    • baboo
    • Member since 06-06-2005, 1:02 PM
    • Ottawa, Canada
    • Posts 7

    Hi mliebster,

    Did you manage to get DNN running on Visual Studio 2002?  I'm trying to create a custom module on DNN 3.0.12 but I can't compile due to hundreds of errors because of the For Each ... As ... statements.

    I don't know whether to keep searching for an easy fix or just bear down and change all the code.  The problem is I don't even know how many errors I'll have to fix because the Task List stops at 165 errors!

    Kim

Page 1 of 1 (5 items)