P
pons
Hi, I have to make a DLL in Visual Studio using VB.NET, then I have to
use it on a web application in ASP.
This is my class:
--------------------------------------------------------
Imports System
Imports System.Net
Imports System.IO
Imports System.Text
Imports System.Xml
Imports System.DirectoryServices
Public Class libConnessioni
Private strUserName, strPassword, strDomain As String
Public Function LDAPgetAllEmails(ByVal domain As String) As String
[...]
End Function
Public Function LDAPgetEmail(ByVal domain As String, ByVal user as
string) As String
[...]
End Function
Public Function WEBDAVgetAllEmails(ByVal uri As String) As String
[...]
End Function
Public Function WEBDAVgetEmail(ByVal uri As String, ByVal user as
string) As String
[...]
End Function
End Class
--------------------------------------------------------
I've generated a DLL, with the name of the project
("testConnessione.dll") but when I try to use it on my http://localhost/test.asp
page, in this way:
--------------------------------------------------------
<%@ Language=VBScript %>
<% Option Explicit %>
<html>
<body>
<%
set objWebDav=server.CreateObject("testConnessione.libConnessioni")
dim s
s = objWebDav.LDAPgetAllEmails("")
response.write (s)
%>
</body>
</html>
--------------------------------------------------------
I get a message that told me tha I don't have authorization to use
server.createobject...
On the server I've registered it with regasm.exe but when I try to run
this test page on the web server I got this error on the line of the
server creatobject call:
error '80070002'
Can you help me?
bye
Giulio
use it on a web application in ASP.
This is my class:
--------------------------------------------------------
Imports System
Imports System.Net
Imports System.IO
Imports System.Text
Imports System.Xml
Imports System.DirectoryServices
Public Class libConnessioni
Private strUserName, strPassword, strDomain As String
Public Function LDAPgetAllEmails(ByVal domain As String) As String
[...]
End Function
Public Function LDAPgetEmail(ByVal domain As String, ByVal user as
string) As String
[...]
End Function
Public Function WEBDAVgetAllEmails(ByVal uri As String) As String
[...]
End Function
Public Function WEBDAVgetEmail(ByVal uri As String, ByVal user as
string) As String
[...]
End Function
End Class
--------------------------------------------------------
I've generated a DLL, with the name of the project
("testConnessione.dll") but when I try to use it on my http://localhost/test.asp
page, in this way:
--------------------------------------------------------
<%@ Language=VBScript %>
<% Option Explicit %>
<html>
<body>
<%
set objWebDav=server.CreateObject("testConnessione.libConnessioni")
dim s
s = objWebDav.LDAPgetAllEmails("")
response.write (s)
%>
</body>
</html>
--------------------------------------------------------
I get a message that told me tha I don't have authorization to use
server.createobject...
On the server I've registered it with regasm.exe but when I try to run
this test page on the web server I got this error on the line of the
server creatobject call:
error '80070002'
Can you help me?
bye
Giulio