473,545 Members | 2,663 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Accessing Interop dll from ASP.Net

Hi

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.InvalidC astException: QueryInterface for interface
Interop.BEADocu ment._Documents failed.
&#x A; at
Interop.BEADocu ment.DocumentsC lass.HelloWorld ()
 at
Beacon.Business Entities.Docume nt.Letter.Creat e(Int32
ApplicationProd uctID, Int32 LoanPurposeID, Int32 UserID, String
Address, String Salutation) in c:\sourcesafe\b eacon net enterprise
objects\documen t\letter.cs:lin e 114
 at
Beacon.Business Components.Docu mentManager.Let terManager.Crea teKFI(XmlNode
xn) in c:\sourcesafe\b eacon net enterprise
objects\documen tmanager\letter manager.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="tr ue" />

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

Any help greatly appreciated!

Toby

Jun 8 '06 #1
0 1350

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1340
by: John Svazic | last post by:
Hi, I'm trying to create an Add-In for MS Project and I want to be able to read some custom properties out from the Project. I'm using the Office Interop module that came with MS Project, and there is a property in the Microsoft.Office.Interop.MSProject.Project object called CustomDocumentProperties which returns me an object, but this...
7
7091
by: Gilad Walden | last post by:
I use C# in .NET framework. I have an ActiveX implemented in C++ that has a COM interface method that gets as it’s out parameter a BSTR* . The interop translates this BSTR* into C# string. From my managed code, I am calling that function with ‘out’ parameter of ‘string’ type. For normal size strings it works fine, but when the...
13
7209
by: Tom Bean | last post by:
I developed a C# application to automate input to elements of a web page displayed in an AxWebBrowser control. The app calls GetEnumerator() on the HTMLDocument's HTMLElementCollection (i.e. HTMLDocument.all) to walk elements of the document. This works perfectly on my development system with both Debug and Release builds, however, when I...
9
6717
by: Srinivas | last post by:
hi all how to access the outlook user profiles through VB.net any help.... thanks in advanc Srinivas
3
6030
by: John | last post by:
Hi I am trying to access outlook contacts folders and delete the contacts that do not contain a certain category value in the categories field. I have written the below code but am stuck with the error on the indicated line. Any help would be appreciated. Thanks Regards
20
3489
by: Randall Arnold | last post by:
I've got an asp.net page that dynamically generates an html table on the server side. On the client side, I need to copy the rendered table to the clipboard programmatically (using vbscript). I just need to be pointed toward a resource for accessing the DOM this way. I must be searching on the wrong keywords because so far I can't find...
2
1801
by: Marlon R | last post by:
Is there a way to access COM object like VB.NET when Option Strict is set to Off. I am write an application that will interop with Excel. But the target machines all have different version (9,10,11) . Option Strict Off Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
1
2454
by: omantawy | last post by:
Hi, I have some legacy ASP web applications that use an unmanaged COM component to connect to a third party application. The third part application has moved to the managed code in the current release with backward compatibility with the unmanaged code. In the future releases, the vendor is going to drop backward compatibility and as a...
1
2122
by: zumbo | last post by:
I'm accessing MSOutlook via Microsoft.Office.Interop.Outlook. It works fine if I add a reference to either version 11 (Outlook 2003) or version 12 (Outlook 2007) of the interop assembly to my project. However, I don't want to build two different applications for each version; I want my application to detect and use the current version at...
0
7490
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7425
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7449
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7780
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6009
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5351
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3465
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1911
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1037
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.