Register DLL for COM interop and use it in ASP

N

Nicke

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
 
N

Nicke

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top