Calling VB 6.0 DLL in ASP.Net

G

Guest

I referenced a COM dll in ASP.NET and using the following statement to
instantiate the library:

Dim Package As New PkgUtil.Package

In my development PC it is possible to instantiate the library and also to
call different methods exposed by the DLL.

The same application deployed on the client's web server fails to
instantiate the DLL. The web application hangs while executing the statement
"Dim Package As New PkgUtil.Package". Finally the web page expires.

My user account is added to Administrators, Debuggers group in both the
development PC as well as in the live server.

I will appreciate your help to solve this issue.

Thanks
 
M

Mark Rae

I referenced a COM dll in ASP.NET and using the following statement to
instantiate the library:

Dim Package As New PkgUtil.Package

Can you post the entire code...?
 
G

Guest

Hi Mark,

Thanks for your quick response. Please find the code snippet below:

------------------------------------------------------------------------------------
Private Function CreatePackageFiles(ByVal tempLocation As String)

Dim lsiprFileNameSrc, lsiprFileNameDest, lsTempstr, lsline,
lsFilename As String
Dim licounter As Integer
Dim lobjSubFolder, lobjSubProject As Dinfo
Dim lobjfsStrmreaderSrc As StreamReader
Dim lobjfsStrmwriterDes As StreamWriter
Dim lobjFile, lobjFileSrc, lobjFileDes As FileInfo

Dim Package As New PkgUtil.Package

Try
' CREATE PACKAGE
Package.CreatePkg(tempLocation &
"\Packager\Non_IP_Package.pkg", "", "")

. .. . .
------------------------------------------------------------------------------------

Awaiting your reply.

Thanks,
AD
 
M

Mark Rae

Thanks for your quick response. Please find the code snippet below:

That's all well and good, but how have you exposed the COM object with .NET?
How does it know what to do with it...?
 

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