473,327 Members | 2,103 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,327 software developers and data experts.

Same code in VBS file and VB.NET Assembly - VBS works but VB.NET fails

(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 machines
are configured to be application servers. I created on machine B:

1) A vbs file
2) VB.NET assembly

Both create the same component using CreateObject on machine B as shown
below:

Set x= CreateObject("Q.ITS.CHISWrapper")

The same code works in VBS file but fails in VB.NET assembly.

If I change the code in VB.NET to following:

Set x= CreateObject("Q.ITS.CHISWrapper", "machineA")

It works. However I should not have to do this because machine B has an
application proxy.

Any ideas?

Thanks.
Raghu/..


Nov 21 '05 #1
2 1524
Failed to mention that the com+ server application was written in C#.

"Raghu" <Ra***@Nospam.com> wrote in message
news:u#*************@TK2MSFTNGP09.phx.gbl...
(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 machines are configured to be application servers. I created on machine B:

1) A vbs file
2) VB.NET assembly

Both create the same component using CreateObject on machine B as shown
below:

Set x= CreateObject("Q.ITS.CHISWrapper")

The same code works in VBS file but fails in VB.NET assembly.

If I change the code in VB.NET to following:

Set x= CreateObject("Q.ITS.CHISWrapper", "machineA")

It works. However I should not have to do this because machine B has an
application proxy.

Any ideas?

Thanks.
Raghu/..

Nov 21 '05 #2
Failed to mention that the com+ server application was written in C#.

"Raghu" <Ra***@Nospam.com> wrote in message
news:u#*************@TK2MSFTNGP09.phx.gbl...
(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 machines are configured to be application servers. I created on machine B:

1) A vbs file
2) VB.NET assembly

Both create the same component using CreateObject on machine B as shown
below:

Set x= CreateObject("Q.ITS.CHISWrapper")

The same code works in VBS file but fails in VB.NET assembly.

If I change the code in VB.NET to following:

Set x= CreateObject("Q.ITS.CHISWrapper", "machineA")

It works. However I should not have to do this because machine B has an
application proxy.

Any ideas?

Thanks.
Raghu/..

Nov 21 '05 #3

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

Similar topics

8
by: JohnnySparkles | last post by:
Hi All, I'm working on an application which uses a dll for some of its classes. I build the application and the dll and it runs fine on any machine with Visual Studio .NET installed on it....
1
by: Mike Malter | last post by:
I am just starting to work with reflection and I want to create a log that saves relevant information if a method call fails so I can call that method again later using reflection. I am...
2
by: Henrik Skak Pedersen | last post by:
Hello, I have a class which is beeing serialized/deserialized using the BinaryFormatter class. That has been working with no problems until I signed all my assemblies. Now I get a...
11
by: Michael Maes | last post by:
Hello, I want to be able to load an assembly by selecting a dll from an OpenFileDialog. This seems to work, exept when that assembly references "3rd-Party dll's". Just this simple line: Dim...
0
by: Budhi Saputra Prasetya | last post by:
Hi, I still have the same problem with embedding Windows Control. I'll just requote what I posted last time: I managed to create a Windows Form Control and put it on my ASP .NET page. I...
12
by: Ron M. Newman | last post by:
Hi, I can load an assembly using the Assembly.Load(....) However, I'd like dynamic loading of assemblies to be identical to putting an assembly reference in your VS2005 project. and yes, I...
8
by: Born Bugler | last post by:
What I'm actually talking about is, when you put the same class in different assemblies, you get two different types. This is reasonable (if you would call it) in most cases as it avoids possible...
7
by: =?Utf-8?B?RG91Z2llIEJyb3du?= | last post by:
Hi I've written custom configuration section (inherits from System.Configuration.ConfigurationSection) to simplify the contents of the config file and to make life easier when accessing them in...
4
by: James | last post by:
Hi, I have just upgraded a user machine to Vista (our first) as a test. Unfortunately a couple of our apps are failing due to Vista... 1. One app that loads an assembly from an Intranet...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.