473,473 Members | 2,193 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Accessing .net component from asp/vbscript

I'm looking for some good articles or hints on accessing a .Net component
that I've written from old ASP/VBScript. I've gotten as far as referencing
the typelib in the global.asa file but when I try to create the object in
VBScript it doesn't seem to be able to see it. I've read a few of the
online articles and followed the step by steps in some of them but some key
fact seems to be missing.

Any help would be appreciated.

TIA
John
Jul 21 '05 #1
4 2110
So far I'm only able to get an enum that is in my class to be seen in the
com world.
"John Stemper" <js******@antioch.com> wrote in message
news:uC**************@TK2MSFTNGP09.phx.gbl...
I'm looking for some good articles or hints on accessing a .Net component
that I've written from old ASP/VBScript. I've gotten as far as referencing
the typelib in the global.asa file but when I try to create the object in
VBScript it doesn't seem to be able to see it. I've read a few of the
online articles and followed the step by steps in some of them but some key fact seems to be missing.

Any help would be appreciated.

TIA
John

Jul 21 '05 #2
Hi John

We have reviewed this issue and are currently researching on it. We will
update you ASAP. Thanks for your patience!

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #3
Hello John,

Thanks for your post. As I understand, you want to access .NET Component
from vbscript code in ASP. Please correct me if there is any
misunderstanding. I now share the following information with you:

As you know, vbscript in ASP can only access COM object, while it cannot
access .NET component directly. To resolve this problem, you will need to
use Tlbexp.exe and Regasm.exe to expose .NET components to COM world.
Please refer to the following MSDN articles for detailed information:

HOW TO: Call Visual Basic .NET Assembly from Visual Basic 6.0 and Call
Visual Basic COM Component from Visual Basic .NET
http://support.microsoft.com/default...b;en-us;817248

Exposing .NET Framework Components to COM
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconexposingnetframeworkcomponentstocom.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #4
The problem I was having is related to Knowledge Base article 813809. I am
no longer having the issue and everything seems to be working fine. Thanks
for all the feedback and assistance.

John
"John Stemper" <js******@antioch.com> wrote in message
news:O6*************@TK2MSFTNGP10.phx.gbl...
So far I'm only able to get an enum that is in my class to be seen in the
com world.
"John Stemper" <js******@antioch.com> wrote in message
news:uC**************@TK2MSFTNGP09.phx.gbl...
I'm looking for some good articles or hints on accessing a .Net component that I've written from old ASP/VBScript. I've gotten as far as referencing the typelib in the global.asa file but when I try to create the object in VBScript it doesn't seem to be able to see it. I've read a few of the
online articles and followed the step by steps in some of them but some

key
fact seems to be missing.

Any help would be appreciated.

TIA
John


Jul 21 '05 #5

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

Similar topics

26
by: Alan Silver | last post by:
Hello, I have a server running Windows Server 2003, on which two of the web sites use the MegaBBS ASP forum software. Both sites suddenly developed the same error, which seems to be connected to...
3
by: AdamM | last post by:
Hi all, When I run my VbScript, I get the error: "ActiveX component can't create object: 'getobject'. Error 800A01AD". Any ideas what I did wrong? Here's my VBScript: dim o set...
1
by: Peter Rilling | last post by:
I created a COM+ component (ServicedComponent) in .NET. The component has a single method Connect() which returns a reference to a SqlConnection object. This component works fine when the world is...
4
by: John Stemper | last post by:
I'm looking for some good articles or hints on accessing a .Net component that I've written from old ASP/VBScript. I've gotten as far as referencing the typelib in the global.asa file but when I...
5
by: pepwelcome | last post by:
Hi, here is a question about custom components. ==== Before I learn ASP.net I program with ASP and VBscript, and I write codes like this: "<script language=vbscript src="usercheck.vb">" and so I...
7
by: skeddy | last post by:
In a nutshell, I'm trying to dynamically create a select box with ResultSet code in vbscript and then need to be able to access the value of that select box later with a Save button. I've got...
5
by: Volker Hetzer | last post by:
Hi! I've done my first little COM component (using the clr) and after signing, regasm and gacutil I can call it from vbscript. set X = createobject("ComComponent.Class1") msgBox X.Testfunktion(2)...
4
by: =?Utf-8?B?V2lsbWVyIEhlcm5hbmRleg==?= | last post by:
An ActiveX component created using ATL under Visual Studio 2003, and it is used in a ASP, runs perfectly under administrator or power users group, however this same object does not run under the...
1
by: Igor Ladnik | last post by:
We are dealing with .NET server component and COM clients written with VB6 and VBScript. And there are some problems we faced (please see code below). 1. Managed type System Drawing.Color is...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.