"You do not have a license to use this ActiveX control"

A

Anil Gupte

A friend of mine is having this problem on his machine - it works fine on my
machine. The above message appears when he tries to inset the "Microsoft
Internet Transfer Control" (Inet) into a Windows form. It was enabled in
the "Add item to Toolbox..." in Visual Studio.Net 2003 (tried both VB and
C#).

We tried Regsvr32 msinet.ocx on his machine. Still does not work, although
it registers it. I don't remember if I did that on my machine or not.

Any ideas on how to fix this? Also, on the target machines, will we have to
register the OCX as well? Can that be done in the installation process?

Thanx,
 
C

Chris Dunaway

A friend of mine is having this problem on his machine - it works fine on my
machine. The above message appears when he tries to inset the "Microsoft
Internet Transfer Control" (Inet) into a Windows form. It was enabled in
the "Add item to Toolbox..." in Visual Studio.Net 2003 (tried both VB and
C#).

We tried Regsvr32 msinet.ocx on his machine. Still does not work, although
it registers it. I don't remember if I did that on my machine or not.

Any ideas on how to fix this? Also, on the target machines, will we have to
register the OCX as well? Can that be done in the installation process?

Thanx,

To my knowledge that component came with Visual Basic 5 or 6,
Professional edition. Does your friend have a valid license for VB 5
or 6 professional? Perhaps that is why he is not allowed to use that
control. I could be wrong however.

As an alternative, you can use the HttpWebRequest and FtpWebRequest
classes found in the System.Net namespace.

Chris
 
A

Anil Gupte

Any ideas on how to use those? I could not find anything seful on the web,
and I tried the help file without much success also. I tried the following
example provided:
Dim myrequest As WebRequest = WebRequest.Create("http://www.icinema.com")

Dim myresponse As WebResponse = myrequest.GetResponse

And I also tried this:

Dim myReq As HttpWebRequest =
CType(WebRequest.Create("http://www.icinema.com/"), HttpWebRequest)

They give me a response, but where is the content of the web page?

Thanx,
 
T

Tom Shelton

A friend of mine is having this problem on his machine - it works fine on my
machine. The above message appears when he tries to inset the "Microsoft
Internet Transfer Control" (Inet) into a Windows form. It was enabled in
the "Add item to Toolbox..." in Visual Studio.Net 2003 (tried both VB and
C#).

We tried Regsvr32 msinet.ocx on his machine. Still does not work, although
it registers it. I don't remember if I did that on my machine or not.

Any ideas on how to fix this? Also, on the target machines, will we have to
register the OCX as well? Can that be done in the installation process?

Thanx,

Hmmm, what functionality is he trying to achieve by using the Inet Transfer
Control? The reason I ask, is that it is very likely that you can achieve the
same thing inside the framework.
 
A

Anil Gupte

What he is trying to do is to basically "Screen Scrape". In other words,
get a page from a website and then parse it - then put anything relevant
found into a database. I think I have discovered some functions that
substitute for the Inet control. They are WebRequest and WebResponse, and
the most promising candidate is WebClient. I have not checked with him in
the last couple of days, but he was still having trouble figuring out those
functions.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top