469,646 Members | 1,692 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,646 developers. It's quick & easy.

Accessing Interop dll from ASP.Net


I am having problems accessing a vb6 dll from ASP.Net.

The vb6 dll is registered. I have then created an interop file using
tlbimp. The interop has been added to the GAC.

I can run the code through a windows application with everything
working fine. In this situation I have:

Windows form front end Calling Middle tier .net assembly
Middle tier calls Interop.dll.

When I test the code using an ASP.Net front end, I get:

System.InvalidCastException: QueryInterface for interface
Interop.BEADocument._Documents failed.
Interop.BEADocument.DocumentsClass.HelloWorld()&#x D;
Beacon.BusinessEntities.Document.Letter.Create(Int 32
ApplicationProductID, Int32 LoanPurposeID, Int32 UserID, String
Address, String Salutation) in c:\sourcesafe\beacon net enterprise
objects\document\letter.cs:line 114
Beacon.BusinessComponents.DocumentManager.LetterMa nager.CreateKFI(XmlNode
xn) in c:\sourcesafe\beacon net enterprise
objects\documentmanager\lettermanager.cs:line 54"

I have added a method "HelloWorld" to test basics of object. The vb6
dll has been recompiled, registered before the interop was created.

In my web page I have set directive AspCompat="true"

In the web.config, I have set <identity impersonate="true" />

Before the error above, I was getting a "Permission Denied" error on
the call to the vb6 object.

Any help greatly appreciated!


Jun 8 '06 #1
0 1206

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Gilad Walden | last post: by
13 posts views Thread by Tom Bean | last post: by
3 posts views Thread by John | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.