473,396 Members | 1,940 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,396 software developers and data experts.

How to use assemblies in VBScript

Help please

I want to use an assembly (dll) in a vbscript asp.net page.

The assembly gets a string form a XML Web Service and I want to write the
string to the Document object like
Document.write(myobjectnet.getstringfromxmlweb).

Do I need to export my assembly to COM and then use CREATEOBJECT function?
If it is correct then how do I mark this COM as Safe for scripting?

Thanks in advance

Nov 17 '05 #1
1 911
I haven't done it, so I can't give you the exact steps but the basic thing is
to use the Assembly Registration Tool (Regasm.exe) to make the assembly
available to COM:

"The Assembly Registration tool reads the metadata within an assembly and adds
the necessary entries to the registry, which allows COM clients to create .NET
Framework classes transparently. Once a class is registered, any COM client can
use it as though the class were a COM class. The class is registered only once,
when the assembly is installed. Instances of classes within the assembly cannot
be created from COM until they are actually registered."
http://msdn.microsoft.com/library/de...lregasmexe.asp

Let us know how you make out?

Ken

--
Microsoft MVPs have a question for *you*: Are you patched against the Worm?
http://www.microsoft.com/security/se...s/ms03-026.asp

"Mike MS" <ms*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Help please

I want to use an assembly (dll) in a vbscript asp.net page.

The assembly gets a string form a XML Web Service and I want to write the
string to the Document object like
Document.write(myobjectnet.getstringfromxmlweb).

Do I need to export my assembly to COM and then use CREATEOBJECT function?
If it is correct then how do I mark this COM as Safe for scripting?

Thanks in advance


Nov 17 '05 #2

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

Similar topics

1
by: Afaq | last post by:
Hi, After adding large number of empty resource files (which will be updated later), we are not able to compile the project. the following is the output of the build process. It fails while...
1
by: Joe | last post by:
Is it possible to access VB.Net Assemblies from VBScript? I have a Visual Basic DLL that is accessed from VBScript. I would like to rewrite the dll in VB.Net. How would I do this, if it is...
5
by: joshbeall | last post by:
Hi All, I'm wondering if there is any way to access .NET assemblies from classic ASP/VBScript? We have a legacy app that was written using classic ASP and VBScript, and there's a new facility...
1
by: joshbeall | last post by:
Hi All, I'm wondering if there is any way to access .NET assemblies from classic ASP/VBScript? We have a legacy app that was written using classic ASP and VBScript, and there's a new facility...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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
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
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,...

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.