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

Home Posts Topics Members FAQ

Register DLL for COM interop and use it in ASP

I have accomplished this on my machine with vs2005 but how can I deploy
the dll on a web server for example?

Has anyone made a deployment project that does this?

this is my class:

<ComClass(StringEncoder.ClassId, StringEncoder.InterfaceId,
StringEncoder.EventsId)> <System.Serializable()> _
Public Class StringEncoder
Public Const ClassId As String =
"B9B4F08B-0363-4480-AF23-C6AFCF555FC5"
Public Const InterfaceId As String =
"6BFAF313-95A2-4636-966E-38EBD4E73569"
Public Const EventsId As String =
"72914E73-C5AE-4059-89DB-A8E991FE13F4"
Private _decodedText As String
Private _encodedText As String
Private _key As String
Private _errorText As String

Public Property EncodedText() As String
Get
Return _encodedText
End Get
Set(ByVal value As String)
_encodedText = value
End Set
End Property

Public Property DecodedText() As String
Get
Return _decodedText
End Get
Set(ByVal value As String)
_decodedText = value
End Set
End Property

Public Property Key() As String
Get
Return _key
End Get
Set(ByVal value As String)
_key = value
End Set
End Property

Public Property ErrorText() As String
Get
Return _errorText
End Get
Set(ByVal value As String)
_errorText = value
End Set
End Property

Sub New()
MyBase.New()
End Sub

Sub Decode() as String
End Sub

Sub Encode() as String
End Sub
End Class

May 3 '06 #1
2 1258
Hi,

Use regasm.exe to register the dll

Ken
-----------------
"Nicke" <ni***************@sveaekonomi.se> wrote in message
news:11*********************@y43g2000cwc.googlegro ups.com...
I have accomplished this on my machine with vs2005 but how can I deploy
the dll on a web server for example?

Has anyone made a deployment project that does this?

this is my class:

<ComClass(StringEncoder.ClassId, StringEncoder.InterfaceId,
StringEncoder.EventsId)> <System.Serializable()> _
Public Class StringEncoder
Public Const ClassId As String =
"B9B4F08B-0363-4480-AF23-C6AFCF555FC5"
Public Const InterfaceId As String =
"6BFAF313-95A2-4636-966E-38EBD4E73569"
Public Const EventsId As String =
"72914E73-C5AE-4059-89DB-A8E991FE13F4"
Private _decodedText As String
Private _encodedText As String
Private _key As String
Private _errorText As String

Public Property EncodedText() As String
Get
Return _encodedText
End Get
Set(ByVal value As String)
_encodedText = value
End Set
End Property

Public Property DecodedText() As String
Get
Return _decodedText
End Get
Set(ByVal value As String)
_decodedText = value
End Set
End Property

Public Property Key() As String
Get
Return _key
End Get
Set(ByVal value As String)
_key = value
End Set
End Property

Public Property ErrorText() As String
Get
Return _errorText
End Get
Set(ByVal value As String)
_errorText = value
End Set
End Property

Sub New()
MyBase.New()
End Sub

Sub Decode() as String
End Sub

Sub Encode() as String
End Sub
End Class

May 4 '06 #2
Ok. This seems to be a common issue.
I have registered the dll using regasm but I cant use the dll from my
asp page.

Is registering with regasm enough to make it work?

If I use gacutil on my webserver then it works but do I have to use
gacutil?
Gacutil is rarely mentioned in the .net dll duscussion.

Almost every solution to this issue with .net dlls is to use regasm...

Thanks. /Nicke

May 10 '06 #3

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

Similar topics

2
7414
by: davidw | last post by:
I asked this before, someone said I need use regasm, but it doesn;t seem to work. I am developing a class library which impelements a smtp sink. when I compiled the project, the last statement...
6
2836
by: Todd | last post by:
Hello, How do I register and non .net dll(with the OS) in a .net enviroment? I have a third party dll I need to register(REGSVR32.EXE). What is the best approach to this in a .Net enviroment. ...
1
1716
by: Mullin Yu | last post by:
i write a c# application with reference to a VB6 com dll by using Add Reference -> COM i found an Interop.xxxx.dll has been created at the build directory. it works fine at my development...
3
5095
by: Danny Mansour | last post by:
Hi there, I have created class library project called DSResolver in an attempt to create a SQL server Custom Conflict Resolver dll. My project contains on class called DataSafeResolve which...
2
13525
by: Andy Bates | last post by:
Hi - I have a C# .NET assembly that exposes a COM interface (basically has an interface and class with Guid attributes). If I compile this under VS.NET (with the "Register for COM Interop"...
1
2730
by: Luis Esteban Valencia | last post by:
I have a WebApplication (ASP.NET) that uses Word 2000 (COM , via Interop.Word.dll). I want to deploy it to a computer, but Word is not installed there. I tried to register the MSWORD.OLB (and...
4
2190
by: Mihiri | last post by:
Hi, I have created a simple managed component in vb.Net with a public class exposing a public function. I successfully registered it using 'Regasm.exe' .. But when I tired to access it in vb...
4
13667
by: Philip Wagenaar | last post by:
I am trying to create a vb6 activeX dll in .Net. I used the upgrade wizard in vs.net to load my vb6 project and it converted it to vb.net. Now I know that I have to register the DLL from COM...
1
5563
by: Jo | last post by:
Hi all, I have a dll written in C#. I need this dll being called by some un-managed dll or app through COM. My question is, do I have to set 'Register for COM Interop' set to true in the...
8
7309
by: =?Utf-8?B?R2Vvcmdl?= | last post by:
Hello everyone, I am using Visual Studio 2005 to develop a C# COM Class Library project. There is a setting in Build --Output, called *Register for COM Interop*. What is the usage of this...
0
6915
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...
1
6750
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
6993
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...
1
4794
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...
0
4493
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
3003
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2993
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1307
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
193
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.