Error Creating Object

  • Thread starter Thread starter ruca
  • Start date Start date
R

ruca

I have an object that must be created be created in 3 different pages of my
Application.
The problem is that I can create the object in only one of that pages and in
the others gives me two differents errors
in one says: 'Object reference not set to an instance of an object.'
an in another says: 'Cannot create ActiveX component.'

I don't understand why because the creation mode in the 3 pages is exactly
the same (belive me, I check it out a "million" times).

This is how I create the Object

---------------------------------------------
Imports System.Object
Dim obj as Object

obj = CreateObject("msu0pr.rfvHard")
.........
//then I have the code that I need.
 
1. Cross-Posting only makes people cross. Don't bite the hand the feeds you.
2. I have no idea how you came by the "code" you posted.
3. You need to learn how to program with .Net. Here is alink to the free
SDK:

http://www.microsoft.com/downloads/...A6-3647-4070-9F41-A333C6B9181D&displaylang=en

There are certain minimal knowledge requirements to writing a .Net program.
The SDK will help. Hard work will do the rest.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
1. Cross-Posting only makes people cross. Don't bite the hand the feeds
you.
About this point, I think that I'm not the only one and it happens when
people try to get some answers with the others experience.
Other reason that this happens (Cross-Posting) it's because how older the
posts are less answers we can get.
2. I have no idea how you came by the "code" you posted.
Don't know what you mean, so.... no comments.
3. You need to learn how to program with .Net. Here is alink to the free

I apreciate your opinion, BUT my problem is not about how to programming. In
old ASP I can easly create objects, and in .NET it's not so diferent but I'm
having a little problems like I describe and not going describe again (no
Cross-Posting)

Finally
I can tell you I have (and search in innternet) the SDK documentation, but
sometimes it's better to have an opinion of other people by their experience
because becames more understandable.

RUCA
 
Seems I forgot one thing: To be successful, you must be teachable. If you
ignore or explain away good advice, it is as useful as money that you don't
spend.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
Hi Ruca,

I agree with Kevin that this is no question for the adonet newsgroup.

If you want to crosspost than it could be also in my opinion.
microsoft.public.dotnet.languages.vb

I am not so actual anymore with ASP

But I think that putting that

obj = CreateObject("msu0pr.rfvHard")

in the "load event of the page" will maybe help you a lot.

Cor
 
Back
Top