473,406 Members | 2,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

CreateObject fails AND works

Sorry if this is the wrong group...I THINK I got to the right
place...(oh...and I'm a newbie programmer...so please be gentle)

Anyway I have a program that works fine when I run it from within
VS2005 (no errors and does exactly what it should)

BUT if I build it and then try to run the .exe on the same computer it
fails with:

"Unhandled exception...."

"Cannot create ActiveX component"

It seems to fail on this line:

objAdminSystem = CreateObject("NovellGroupWareAdmin")

I added the reference to this object (Name: Groupwise Admin API
Library) (Filename: Interop.AdminTypeLibrary.dll)

I did some searching online and found someone had fixed it by running
"regsvr32 gwcmb1.dll"

I tried that (it suceeded) but the program still fails outside of the
VS2005 environment.

Thanks for any help you might be able to provide!

Oct 12 '06 #1
7 6820
Dim objAdminSystem As New NovellGroupWareAdmin()

instead of

objAdminSystem = CreateObject("NovellGroupWareAdmin")

<dl*****@gmail.comwrote in message
news:11**********************@k70g2000cwa.googlegr oups.com...
Sorry if this is the wrong group...I THINK I got to the right
place...(oh...and I'm a newbie programmer...so please be gentle)

Anyway I have a program that works fine when I run it from within
VS2005 (no errors and does exactly what it should)

BUT if I build it and then try to run the .exe on the same computer it
fails with:

"Unhandled exception...."

"Cannot create ActiveX component"

It seems to fail on this line:

objAdminSystem = CreateObject("NovellGroupWareAdmin")

I added the reference to this object (Name: Groupwise Admin API
Library) (Filename: Interop.AdminTypeLibrary.dll)

I did some searching online and found someone had fixed it by running
"regsvr32 gwcmb1.dll"

I tried that (it suceeded) but the program still fails outside of the
VS2005 environment.

Thanks for any help you might be able to provide!

Oct 13 '06 #2
I tried what you suggested and got:

Type 'NovellGroupWareAdmin' is not defined.

That sounds like it should be an easy thing to fix, but so far I've had
no luck.

Thank you for helping!

On Oct 12, 5:15 pm, "Scott M." <s...@nospam.nospamwrote:
Dim objAdminSystem As New NovellGroupWareAdmin()

instead of

objAdminSystem = CreateObject("NovellGroupWareAdmin")
Oct 13 '06 #3
Well, when you made the reference to the object library, the classes in that
library are now available to your code, BUT in .NET you won't be able to
call a class without referring to the namespace the class resides in. I had
assumed you had already imported the namespace, but perhaps you haven't.

You will need to know what the namespace name is that your class is in. You
can then add an "Imports" statement to your code and then you can make your
instance as I've shown.

In .NET, we do not use the CreateObject method for object instantition.
"Moose" <dl*****@gmail.comwrote in message
news:11*********************@i3g2000cwc.googlegrou ps.com...
>I tried what you suggested and got:

Type 'NovellGroupWareAdmin' is not defined.

That sounds like it should be an easy thing to fix, but so far I've had
no luck.

Thank you for helping!

On Oct 12, 5:15 pm, "Scott M." <s...@nospam.nospamwrote:
>Dim objAdminSystem As New NovellGroupWareAdmin()

instead of

objAdminSystem = CreateObject("NovellGroupWareAdmin")

Oct 13 '06 #4
Ok...so I'm new to using usenet too....so forgive me if I screw this posting
to the group up...a simple smack in the right direction and I'll correct my
mistake...

As for the problem...

I *think* I DID import the namespace (but obviously not right? :-)

I Added a reference first to "GroupWare Admin Type library" and when it
still didn't work I added a reference to "GroupWare Type Library"

I've also added two imports statements (in addition to the reference in the
project)

Imports AdminTypeLibrary

Imports GroupwareTypeLibrary
What I don't understand is why it works perfectly when I use the little
green arrow inside of VS2005...but when I run the app from the
built/deployed (not sure which is the right word) .exe file it fails.

You also mentioned we no longer use "CreateObject," after my woes...I'm all
for using something else :-) what SHOULD I be using?

Oh...I also added the line that is failing to a Try...Catch....to see if
there was more info and found that I'm getting:

System.Exception: Cannot create ActiveX component.
at Microsoft.VisualBasic.Interaction.CreateObject(Str ing ProgID, String
ServerName) at.....<location info>

I should also mention...this code was originally written in VS2003...and
converted UP.

I also WAS running both VS2003 and 2005 at the same time and just this
afternoon uninstalled 2003.

Am I helping or just making this all more confusing?
Hope it's the first!
"Scott M." <s-***@nospam.nospamwrote in message
news:ul**************@TK2MSFTNGP04.phx.gbl...
Well, when you made the reference to the object library, the classes in
that
library are now available to your code, BUT in .NET you won't be able to
call a class without referring to the namespace the class resides in. I
had
assumed you had already imported the namespace, but perhaps you haven't.

You will need to know what the namespace name is that your class is in.
You
can then add an "Imports" statement to your code and then you can make
your
instance as I've shown.

In .NET, we do not use the CreateObject method for object instantition.
"Moose" <dl*****@gmail.comwrote in message
news:11*********************@i3g2000cwc.googlegrou ps.com...
I tried what you suggested and got:

Type 'NovellGroupWareAdmin' is not defined.

That sounds like it should be an easy thing to fix, but so far I've had
no luck.

Thank you for helping!

On Oct 12, 5:15 pm, "Scott M." <s...@nospam.nospamwrote:
Dim objAdminSystem As New NovellGroupWareAdmin()

instead of

objAdminSystem = CreateObject("NovellGroupWareAdmin")


Oct 13 '06 #5
See responses below:
"Moose" <no@nospam.comwrote in message news:G8VXg.154$uF.148@dukeread12...
Ok...so I'm new to using usenet too....so forgive me if I screw this
posting
to the group up...a simple smack in the right direction and I'll correct
my
mistake...
No, your posting is fine, no probelms there. :)
>
As for the problem...

I *think* I DID import the namespace (but obviously not right? :-)

I Added a reference first to "GroupWare Admin Type library" and when it
still didn't work I added a reference to "GroupWare Type Library"

I've also added two imports statements (in addition to the reference in
the
project)

Imports AdminTypeLibrary

Imports GroupwareTypeLibrary
What I don't understand is why it works perfectly when I use the little
green arrow inside of VS2005...but when I run the app from the
built/deployed (not sure which is the right word) .exe file it fails.
Silly question, but when you deployed this application to its final
location, did you copy the Groupware .dll's and the InterOp .dll's?
You also mentioned we no longer use "CreateObject," after my woes...I'm
all
for using something else :-) what SHOULD I be using?
CreateObject was how instances of classes were made in the predecessor to
ASP.NET (classic ASP & VBScript).
The correct way to make instances is what I showed you earlier

Dim someVariable As New someClass

Oh...I also added the line that is failing to a Try...Catch....to see if
there was more info and found that I'm getting:

System.Exception: Cannot create ActiveX component.
at Microsoft.VisualBasic.Interaction.CreateObject(Str ing ProgID, String
ServerName) at.....<location info>
That's good, but the exception information doesn't tell us much more than we
already knew in this case.
I should also mention...this code was originally written in VS2003...and
converted UP.
I don't think this has too much to do with the issue.
I also WAS running both VS2003 and 2005 at the same time and just this
afternoon uninstalled 2003.
There is no problem with having both installed at the same time. They each
use different versions of the.NET Framework and both those versions are made
to co-exist simultaneously. The only thing to be carefull about is that
when you open a 2003 project in 2005, it will be automatically converted to
the 2.0 framework and there's no going back after that, so you should make
backups of all your 2003 projects in case you want to preserve that code.
Am I helping or just making this all more confusing?
Hope it's the first!
No, we just need to keep digging to find the problem.
>

"Scott M." <s-***@nospam.nospamwrote in message
news:ul**************@TK2MSFTNGP04.phx.gbl...
>Well, when you made the reference to the object library, the classes in
that
>library are now available to your code, BUT in .NET you won't be able to
call a class without referring to the namespace the class resides in. I
had
>assumed you had already imported the namespace, but perhaps you haven't.

You will need to know what the namespace name is that your class is in.
You
>can then add an "Imports" statement to your code and then you can make
your
>instance as I've shown.

In .NET, we do not use the CreateObject method for object instantition.
"Moose" <dl*****@gmail.comwrote in message
news:11*********************@i3g2000cwc.googlegro ups.com...
>I tried what you suggested and got:

Type 'NovellGroupWareAdmin' is not defined.

That sounds like it should be an easy thing to fix, but so far I've had
no luck.

Thank you for helping!

On Oct 12, 5:15 pm, "Scott M." <s...@nospam.nospamwrote:
Dim objAdminSystem As New NovellGroupWareAdmin()

instead of

objAdminSystem = CreateObject("NovellGroupWareAdmin")



Oct 13 '06 #6
Sorry if this double posts....I THOUGHT I posted this 2 days ago, but
never saw it show up....

My response is inline below....
>>Scott M.<s-***@nospam.nospam10/13/06 04:54PM >>>
Silly question, but when you deployed this application to its final
location, did you copy the Groupware .dll's and the InterOp .dll's?

Response:

Currently, the final location is still my local machine. I did some
searching and see there are multiple debug and release directories
(I'm assuming setup by VS2005). Here are the contents of those folders
(Project name is GW_troubleshooting):

GW_troubleshooting\bin\Debug>
11/04/2003 11:17 AM 557,108 GWCMB1.dll
10/15/2006 10:07 PM 32,768 GW_troubleshooting.exe
10/15/2006 10:07 PM 65,024 GW_troubleshooting.pdb
09/23/2005 06:56 AM 5,632 GW_troubleshooting.vshost.exe
10/15/2006 10:07 PM 126 GW_troubleshooting.xml
10/13/2006 08:45 AM 155,648 Interop.AdminTypeLibrary.dll
10/13/2006 03:35 PM 688,128 Interop.GroupwareTypeLibrary.dll

GW_troubleshooting\bin\Release>
10/13/2006 03:35 PM 28,672 GW_troubleshooting.exe
10/13/2006 03:35 PM 60,928 GW_troubleshooting.pdb
10/13/2006 03:35 PM 126 GW_troubleshooting.xml
10/13/2006 03:31 PM 155,648 Interop.AdminTypeLibrary.dll
10/13/2006 03:31 PM 688,128 Interop.GroupwareTypeLibrary.dll

GW_troubleshooting\obj\Debug>
10/15/2006 10:07 PM 32,768 GW_troubleshooting.exe
10/13/2006 03:35 PM 180
GW_troubleshooting.Form1.resources
10/15/2006 10:07 PM 65,024 GW_troubleshooting.pdb
10/13/2006 03:35 PM 180
GW_troubleshooting.Resources.resources
10/13/2006 09:08 AM 842
GW_troubleshooting.vbproj.GenerateResource.Cache
10/13/2006 03:35 PM 541
GW_troubleshooting.vbproj.ResolveComReference.cach e
10/15/2006 10:07 PM 126 GW_troubleshooting.xml
10/13/2006 08:45 AM 155,648 Interop.AdminTypeLibrary.dll
10/13/2006 03:35 PM 688,128 Interop.GroupwareTypeLibrary.dll
10/13/2006 10:24 AM <DIR TempPE

GW_troubleshooting\obj\Release>
10/15/2006 09:53 PM 0 build.force
10/13/2006 03:35 PM 28,672 GW_troubleshooting.exe
10/13/2006 03:31 PM 180
GW_troubleshooting.Form1.resources
10/13/2006 03:35 PM 60,928 GW_troubleshooting.pdb
10/13/2006 03:31 PM 180
GW_troubleshooting.Resources.resources
10/13/2006 03:31 PM 842
GW_troubleshooting.vbproj.GenerateResource.Cache
10/13/2006 03:31 PM 541
GW_troubleshooting.vbproj.ResolveComReference.cach e
10/13/2006 03:35 PM 126 GW_troubleshooting.xml
10/13/2006 03:31 PM 155,648 Interop.AdminTypeLibrary.dll
10/13/2006 03:31 PM 688,128 Interop.GroupwareTypeLibrary.dll
10/13/2006 03:24 PM <DIR TempPE

GW_troubleshooting\My Project>
10/13/2006 08:37 AM 1,519 Application.Designer.vb
10/13/2006 08:37 AM 510 Application.myapp
10/13/2006 08:37 AM 1,217 AssemblyInfo.vb
10/13/2006 08:37 AM 2,804 Resources.Designer.vb
09/23/2005 03:27 AM 5,612 Resources.resx
10/13/2006 08:37 AM 3,054 Settings.Designer.vb
09/23/2005 03:27 AM 279 Settings.settings

Honestly, I'm not sure what the different folders are for :-/

Here is my code...

Imports AdminTypeLibrary
Imports GroupwareTypeLibrary

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim PO, Dom As String
Dim objDomain, objDom, objPOs, objPO, objCurPO As Object
Dim objdlists, objdlist
Dim DomPath As String = "T:\GRPWISE\DOMAIN"

PO = "<PO String>"
Dom = "<Domain>"

Try
Dim objAdminSystem As Object
'Dim objAdminSystem As New NovellGroupWareAdmin() - Had
tried that.
objAdminSystem = CreateObject("NovellGroupWareAdmin")
<------------fails here per error, but works when running it in the
VS2005 environment
objDomain = objAdminSystem.Connect("T:\GRPWISE\DOMAIN")

'Connect to Default Domain
objDom = objAdminSystem.ConnectedDomain

'Get the Post Offices collection
objPOs = objDom.PostOffices

'Enumerate the Post Offices on objPOs and populate cbPOs.
For Each objPO In objPOs
objCurPO = objPO
Next

objdlists = objCurPO.distributionlists

For Each objdlist In objdlists
lbGWDlist.Items.Add(objdlist.Name)
Next
Catch ex As Exception
MessageBox.Show(ex.ToString)
End Try
End Sub

-----End Code-----

The only thing I can really add to this...is when I look in the
registry and some other searching online....I think I remember reading
that "NovellGroupWareAdmin" is called from GWCMB1.dll. (and I added it
manually to ..."bin\Debug" directory)

here is a screenshot of the references:

http://img.villagephotos.com/p/2004-...references.jpg

Any idea what I'm messing up?
On Oct 13, 4:54 pm, "Scott M." <s...@nospam.nospamwrote:
See responses below:

"Moose" <n...@nospam.comwrote in messagenews:G8VXg.154$uF.148@dukeread12...
Ok...so I'm new to using usenet too....so forgive me if I screw this
posting
to the group up...a simple smack in the right direction and I'll correct
my
mistake...No, your posting is fine, no probelms there. :)


As for the problem...
I *think* I DID import the namespace (but obviously not right? :-)
I Added a reference first to "GroupWare Admin Type library" and when it
still didn't work I added a reference to "GroupWare Type Library"
I've also added two imports statements (in addition to the reference in
the
project)
Imports AdminTypeLibrary
Imports GroupwareTypeLibrary
What I don't understand is why itworksperfectly when I use the little
green arrow inside of VS2005...but when I run the app from the
built/deployed (not sure which is the right word) .exe file itfails.Silly question, but when you deployed this application to its final
location, did you copy the Groupware .dll's and the InterOp .dll's?
You also mentioned we no longer use "CreateObject," after my woes...I'm
all
for using something else :-) what SHOULD I be using?CreateObjectwas how instances of classes were made in the predecessor to
ASP.NET (classic ASP & VBScript).
The correct way to make instances is what I showed you earlier

Dim someVariable As New someClass
Oh...I also added the line that is failing to a Try...Catch....to see if
there was more info and found that I'm getting:
System.Exception: Cannot create ActiveX component.
at Microsoft.VisualBasic.Interaction.CreateObject(Str ing ProgID, String
ServerName) at.....<location info>That's good, but the exception information doesn't tell us much more than we
already knew in this case.
I should also mention...this code was originally written in VS2003...and
converted UP.I don't think this has too much to do with the issue.
I also WAS running both VS2003 and 2005 at the same time and just this
afternoon uninstalled 2003.There is no problem with having both installed at the same time. They each
use different versions of the.NET Framework and both those versions are made
to co-exist simultaneously. The only thing to be carefull about is that
when you open a 2003 project in 2005, it will be automatically converted to
the 2.0 framework and there's no going back after that, so you should make
backups of all your 2003 projects in case you want to preserve that code.
Am I helping or just making this all more confusing?
Hope it's the first!No, we just need to keep digging to find the problem.


"Scott M." <s...@nospam.nospamwrote in message
news:ul**************@TK2MSFTNGP04.phx.gbl...
Well, when you made the reference to the object library, the classes in
that
library are now available to your code, BUT in .NET you won't be able to
call a class without referring to the namespace the class resides in. I
had
assumed you had already imported the namespace, but perhaps you haven't.
You will need to know what the namespace name is that your class is in.
You
can then add an "Imports" statement to your code and then you can make
your
instance as I've shown.
In .NET, we do not use theCreateObjectmethod for object instantition.
"Moose" <dlas...@gmail.comwrote in message
news:11*********************@i3g2000cwc.googlegro ups.com...
I tried what you suggested and got:
Type 'NovellGroupWareAdmin' is not defined.
That sounds like it should be an easy thing to fix, but so far I've had
no luck.
Thank you for helping!
On Oct 12, 5:15 pm, "Scott M." <s...@nospam.nospamwrote:
Dim objAdminSystem As New NovellGroupWareAdmin()
instead of
objAdminSystem =CreateObject("NovellGroupWareAdmin")
Oct 18 '06 #7
Ok, well you are using VB.NET 2005 (which I haven't used yet), but I have a
couple of things....

It looks like you've made references to the InterOp versions of the original
COM .dlls for GroupWare & AdminTypeLibrary. Did you make the references to
the InterOp files or the original .dll's? You should NOT be referencing the
InterOp files. VS.NET will create the InterOp files and call them as
needed.

Second, if there is a .dll that needs "GWCMB1.dll" and GWCMB1.dll is a COM
..dll, then you can't just move it into your /bin folder. It must be
registered with the Windows Registry and located in a particular location (I
don't know what that is).

-Scott
"Moose" <dl*****@gmail.comwrote in message
news:11*********************@h48g2000cwc.googlegro ups.com...
Sorry if this double posts....I THOUGHT I posted this 2 days ago, but
never saw it show up....

My response is inline below....
>>>Scott M.<s-***@nospam.nospam10/13/06 04:54PM >>>

Silly question, but when you deployed this application to its final
location, did you copy the Groupware .dll's and the InterOp .dll's?

Response:

Currently, the final location is still my local machine. I did some
searching and see there are multiple debug and release directories
(I'm assuming setup by VS2005). Here are the contents of those folders
(Project name is GW_troubleshooting):

GW_troubleshooting\bin\Debug>
11/04/2003 11:17 AM 557,108 GWCMB1.dll
10/15/2006 10:07 PM 32,768 GW_troubleshooting.exe
10/15/2006 10:07 PM 65,024 GW_troubleshooting.pdb
09/23/2005 06:56 AM 5,632 GW_troubleshooting.vshost.exe
10/15/2006 10:07 PM 126 GW_troubleshooting.xml
10/13/2006 08:45 AM 155,648 Interop.AdminTypeLibrary.dll
10/13/2006 03:35 PM 688,128 Interop.GroupwareTypeLibrary.dll

GW_troubleshooting\bin\Release>
10/13/2006 03:35 PM 28,672 GW_troubleshooting.exe
10/13/2006 03:35 PM 60,928 GW_troubleshooting.pdb
10/13/2006 03:35 PM 126 GW_troubleshooting.xml
10/13/2006 03:31 PM 155,648 Interop.AdminTypeLibrary.dll
10/13/2006 03:31 PM 688,128 Interop.GroupwareTypeLibrary.dll

GW_troubleshooting\obj\Debug>
10/15/2006 10:07 PM 32,768 GW_troubleshooting.exe
10/13/2006 03:35 PM 180
GW_troubleshooting.Form1.resources
10/15/2006 10:07 PM 65,024 GW_troubleshooting.pdb
10/13/2006 03:35 PM 180
GW_troubleshooting.Resources.resources
10/13/2006 09:08 AM 842
GW_troubleshooting.vbproj.GenerateResource.Cache
10/13/2006 03:35 PM 541
GW_troubleshooting.vbproj.ResolveComReference.cach e
10/15/2006 10:07 PM 126 GW_troubleshooting.xml
10/13/2006 08:45 AM 155,648 Interop.AdminTypeLibrary.dll
10/13/2006 03:35 PM 688,128 Interop.GroupwareTypeLibrary.dll
10/13/2006 10:24 AM <DIR TempPE

GW_troubleshooting\obj\Release>
10/15/2006 09:53 PM 0 build.force
10/13/2006 03:35 PM 28,672 GW_troubleshooting.exe
10/13/2006 03:31 PM 180
GW_troubleshooting.Form1.resources
10/13/2006 03:35 PM 60,928 GW_troubleshooting.pdb
10/13/2006 03:31 PM 180
GW_troubleshooting.Resources.resources
10/13/2006 03:31 PM 842
GW_troubleshooting.vbproj.GenerateResource.Cache
10/13/2006 03:31 PM 541
GW_troubleshooting.vbproj.ResolveComReference.cach e
10/13/2006 03:35 PM 126 GW_troubleshooting.xml
10/13/2006 03:31 PM 155,648 Interop.AdminTypeLibrary.dll
10/13/2006 03:31 PM 688,128 Interop.GroupwareTypeLibrary.dll
10/13/2006 03:24 PM <DIR TempPE

GW_troubleshooting\My Project>
10/13/2006 08:37 AM 1,519 Application.Designer.vb
10/13/2006 08:37 AM 510 Application.myapp
10/13/2006 08:37 AM 1,217 AssemblyInfo.vb
10/13/2006 08:37 AM 2,804 Resources.Designer.vb
09/23/2005 03:27 AM 5,612 Resources.resx
10/13/2006 08:37 AM 3,054 Settings.Designer.vb
09/23/2005 03:27 AM 279 Settings.settings

Honestly, I'm not sure what the different folders are for :-/

Here is my code...

Imports AdminTypeLibrary
Imports GroupwareTypeLibrary

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim PO, Dom As String
Dim objDomain, objDom, objPOs, objPO, objCurPO As Object
Dim objdlists, objdlist
Dim DomPath As String = "T:\GRPWISE\DOMAIN"

PO = "<PO String>"
Dom = "<Domain>"

Try
Dim objAdminSystem As Object
'Dim objAdminSystem As New NovellGroupWareAdmin() - Had
tried that.
objAdminSystem = CreateObject("NovellGroupWareAdmin")
<------------fails here per error, but works when running it in the
VS2005 environment
objDomain = objAdminSystem.Connect("T:\GRPWISE\DOMAIN")

'Connect to Default Domain
objDom = objAdminSystem.ConnectedDomain

'Get the Post Offices collection
objPOs = objDom.PostOffices

'Enumerate the Post Offices on objPOs and populate cbPOs.
For Each objPO In objPOs
objCurPO = objPO
Next

objdlists = objCurPO.distributionlists

For Each objdlist In objdlists
lbGWDlist.Items.Add(objdlist.Name)
Next
Catch ex As Exception
MessageBox.Show(ex.ToString)
End Try
End Sub

-----End Code-----

The only thing I can really add to this...is when I look in the
registry and some other searching online....I think I remember reading
that "NovellGroupWareAdmin" is called from GWCMB1.dll. (and I added it
manually to ..."bin\Debug" directory)

here is a screenshot of the references:

http://img.villagephotos.com/p/2004-...references.jpg

Any idea what I'm messing up?
On Oct 13, 4:54 pm, "Scott M." <s...@nospam.nospamwrote:
>See responses below:

"Moose" <n...@nospam.comwrote in
messagenews:G8VXg.154$uF.148@dukeread12...
Ok...so I'm new to using usenet too....so forgive me if I screw this
posting
to the group up...a simple smack in the right direction and I'll
correct
my
mistake...No, your posting is fine, no probelms there. :)


As for the problem...
I *think* I DID import the namespace (but obviously not right? :-)
I Added a reference first to "GroupWare Admin Type library" and when
it
still didn't work I added a reference to "GroupWare Type Library"
I've also added two imports statements (in addition to the reference in
the
project)
Imports AdminTypeLibrary
Imports GroupwareTypeLibrary
What I don't understand is why itworksperfectly when I use the little
green arrow inside of VS2005...but when I run the app from the
built/deployed (not sure which is the right word) .exe file
itfails.Silly question, but when you deployed this application to its
final
location, did you copy the Groupware .dll's and the InterOp .dll's?
You also mentioned we no longer use "CreateObject," after my woes...I'm
all
for using something else :-) what SHOULD I be using?CreateObjectwas
how instances of classes were made in the predecessor to
ASP.NET (classic ASP & VBScript).
The correct way to make instances is what I showed you earlier

Dim someVariable As New someClass
Oh...I also added the line that is failing to a Try...Catch....to see
if
there was more info and found that I'm getting:
System.Exception: Cannot create ActiveX component.
at Microsoft.VisualBasic.Interaction.CreateObject(Str ing ProgID, String
ServerName) at.....<location info>That's good, but the exception
information doesn't tell us much more than we
already knew in this case.
I should also mention...this code was originally written in
VS2003...and
converted UP.I don't think this has too much to do with the issue.
I also WAS running both VS2003 and 2005 at the same time and just this
afternoon uninstalled 2003.There is no problem with having both
installed at the same time. They each
use different versions of the.NET Framework and both those versions are
made
to co-exist simultaneously. The only thing to be carefull about is that
when you open a 2003 project in 2005, it will be automatically converted
to
the 2.0 framework and there's no going back after that, so you should
make
backups of all your 2003 projects in case you want to preserve that code.
Am I helping or just making this all more confusing?
Hope it's the first!No, we just need to keep digging to find the
problem.


"Scott M." <s...@nospam.nospamwrote in message
news:ul**************@TK2MSFTNGP04.phx.gbl...
Well, when you made the reference to the object library, the classes
in
that
library are now available to your code, BUT in .NET you won't be able
to
call a class without referring to the namespace the class resides in.
I
had
assumed you had already imported the namespace, but perhaps you
haven't.
>You will need to know what the namespace name is that your class is
in.
You
can then add an "Imports" statement to your code and then you can make
your
instance as I've shown.
>In .NET, we do not use theCreateObjectmethod for object instantition.
>"Moose" <dlas...@gmail.comwrote in message
news:11*********************@i3g2000cwc.googlegr oups.com...
I tried what you suggested and got:
Type 'NovellGroupWareAdmin' is not defined.
That sounds like it should be an easy thing to fix, but so far I've
had
no luck.
Thank you for helping!
On Oct 12, 5:15 pm, "Scott M." <s...@nospam.nospamwrote:
Dim objAdminSystem As New NovellGroupWareAdmin()
>instead of
>objAdminSystem =CreateObject("NovellGroupWareAdmin")

Oct 18 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: guy | last post by:
Hello All, I'm have a VB function that connect to SQL SERVER , get's information and returns the relavant string. using this function within VB application (say cmdbutton) works great, but when...
7
by: Tim | last post by:
Hi A custom ASP web application that i have developed has stopped working after the install of WinXP SP2. The application breaks on: Set oMaint =...
11
by: Mr. Smith | last post by:
Hello all, My code can successfully open, write to, format and save several worksheets in a workbook then save it by a given name, close and quit excel. My problem is that if I try and do it...
1
by: Simple | last post by:
I have a VB Script that I call from my ASP page. One of the first things it does is: 'Launch Access Server.CreateObject("Access.Application") 'Open DB 'Preview Report This works fine on IIS...
1
by: diablo | last post by:
Hi I have played with this a bit and got it boiling down to the following problem. I do a call to my access database and get a recordset back. then whilst this RS is still open I create a new...
8
by: chippy | last post by:
Hi, I've a VB script that creates a Access object in a word doc. Here is the full script. It works for all but the Export. Which always fails with a 3011 error. If I do the same in Access as a...
2
by: Raghu | last post by:
(Sorry for cross post but kinda in a hurry) I have com+ server applicaiton on machine A. The exported application proxy is installed on machine B. Both machines have windows 2003 os. Both...
9
by: salad | last post by:
I have the following code. I have a reference to the Outlook library in the reference list. My machine is standalone, not on a network. Dim Olapp As Outlook.Application Set Olapp =...
2
by: vijayB | last post by:
Hi All, I am creating an application in vb.net, in which I am using createObject("Scripting.FileSystemObject) function call. Under administrative rights it runs. But when I switched to restricted...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.