PC Review


Reply
Thread Tools Rate Thread

Calling VB 6.0 DLL in ASP.Net

 
 
=?Utf-8?B?QWJoaWxhc2g=?=
Guest
Posts: n/a
 
      10th Aug 2005
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

 
Reply With Quote
 
 
 
 
Mark Rae
Guest
Posts: n/a
 
      10th Aug 2005
"Abhilash" <(E-Mail Removed)> wrote in message
news:416A930C-7DCB-4E85-9B64-(E-Mail Removed)...

>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...?


 
Reply With Quote
 
=?Utf-8?B?QWJoaWxhc2g=?=
Guest
Posts: n/a
 
      10th Aug 2005
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



"Mark Rae" wrote:

> "Abhilash" <(E-Mail Removed)> wrote in message
> news:416A930C-7DCB-4E85-9B64-(E-Mail Removed)...
>
> >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...?
>
>
>

 
Reply With Quote
 
Kevin Spencer
Guest
Posts: n/a
 
      10th Aug 2005
See:

http://msdn.microsoft.com/library/en...asp?frame=true

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Everybody picks their nose,
But some people are better at hiding it.

"Abhilash" <(E-Mail Removed)> wrote in message
news:416A930C-7DCB-4E85-9B64-(E-Mail Removed)...
>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
>



 
Reply With Quote
 
Mark Rae
Guest
Posts: n/a
 
      10th Aug 2005
"Abhilash" <(E-Mail Removed)> wrote in message
news:C1F7F77D-9DB6-4EC2-AFC3-(E-Mail Removed)...

> 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...?


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling SQL from code has different behaviour than calling it from MS SQL Server Management Studio jeeji Microsoft C# .NET 1 29th Jun 2006 10:43 AM
Calling DoCmd.RunCommand acCmdSaveRecord, after calling an API function Savvoulidis Iordanis Microsoft Access Form Coding 2 19th Mar 2005 06:34 PM
Fail to send fax when making international fax calling / calling c =?Utf-8?B?c2Ftd2lzZQ==?= Windows XP Help 1 28th Dec 2004 02:31 PM
Calling FormsAuthentication.SignOut() after calling Response.Flush =?Utf-8?B?TWFydGluIExlZQ==?= Microsoft ASP .NET 1 28th Sep 2004 01:47 PM
Server Side button calling page_load before calling it's own click event. Ryan Ternier Microsoft ASP .NET 4 29th Jul 2004 02:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:42 PM.