Solved

Problems with VB .NET Upgrade from VB6

Posted on 2004-10-20
4
252 Views
Last Modified: 2012-08-13
Hi, I have a problem upgrading a project from VB6 to VB .NET. The log file has this at the end:
    <File
        OldPath = "C:\...\FormErrorReport.frm"
        NewPath = "C:\...\FormErrorReport.vb"
        FileType = "Form"
        Upgraded = "False"
    />
    <Issue
        Type = "Global Error"
        Number = "4009"
    >The referenced component Inet is missing a design time license.</Issue>
</UpgradeLog>

[file paths were "censored"]
The form itself has this text which I think is important:

   Begin InetCtlsObjects.Inet InetError
      Left            =   0
      Top             =   2640
      _ExtentX        =   1005
      _ExtentY        =   1005
      _Version        =   393216
      URL             =   "http://"
   End

Finally, this is the code being used:

Public Sub ReportError(URL As String)
    'get the page and display the results.
    Dim Results As String
   
    Results = InetError.OpenURL(URL, icString)
   
    Debug.Print Results
   
    Results = Replace(Results, "<br>", vbCrLf)
    Results = StripHTML(Results)
    Debug.Print Results
   
    TextReportResult.Text = Results
End Sub

This really bugs me! I have not found any documentation on what the Inet class is.
If possible, I would like to know what this code can be replaced with so as to make the upgrade work.
0
Comment
Question by:nneonneo
4 Comments
 
LVL 48

Accepted Solution

by:
Mikal613 earned 50 total points
ID: 12364990
0
 

Author Comment

by:nneonneo
ID: 12407122
Is there any other way to fix this?? I would rather not have to go and get VB 6, especially since VB .NET wasn't entirely cheap! Besides which, I'm not sure this project is even worth that much...
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now