Home All Groups Group Topic Archive Search About

Register DLL for COM interop and use it in ASP

Author
3 May 2006 4:43 PM
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

Author
4 May 2006 10:50 AM
Ken Tucker [MVP]
Hi,

        Use regasm.exe to register the dll

Ken
-----------------
Show quoteHide quote
"Nicke" <niklas.petters***@sveaekonomi.se> wrote in message
news:1146674638.224859.99830@y43g2000cwc.googlegroups.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
>
Author
10 May 2006 1:02 PM
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