473,657 Members | 2,395 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ERROR: Call to Interop.VBA.dll

Hi,

we are finding some very strange behaviour in an ASP.NET application that
references a VB6 DLL. When the reference is created to the VB6 DLL, Visual
Studio generates an interop DLL for both our DLL and also for the VBA DLL
(Interop.VBA.dl l).

When we run our web application, periodically we obtain the following error
message:

Parser Error Message: Access is denied: 'Interop.VBA'.

Source Error:

Line 196: <add assembly="Syste m.EnterpriseSer vices, Version=1.0.500 0.0,
Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"/>
Line 197: <add assembly="Syste m.Web.Mobile, Version=1.0.500 0.0,
Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"/>
Line 198: <add assembly="*"/>
Line 199: </assemblies>
Line 200: </compilation>

Source File:
c:\windows\micr osoft.net\frame work\v1.1.4322\ Config\machine. config Line:
198

The bizarre thing is that then the problem seems to disappear on its own.
It's as if the application has temporarily lost its' reference and then
finds it again.

Has anyone encountered this before? Does anyone know what the reason for it
is?

Thanks for your help,

Mauro
Nov 18 '05 #1
1 3972
Just as an update, it seems that the problem occurs when there are multiple
VS.NET instances running on a PC, each loaded with a solution that
references Interop.VBA.dll . Even if we are only running 1 debug session, it
seems that VS.NET gets confused about where to find the DLL. It would be
interesting to hear any additional feedback from anyone that's seen this
and/or can explain it.

Mauro
"Mauro" <ma*****@mpt-ltd.com> wrote in message
news:eh******** *****@tk2msftng p13.phx.gbl...
Hi,

we are finding some very strange behaviour in an ASP.NET application that
references a VB6 DLL. When the reference is created to the VB6 DLL, Visual
Studio generates an interop DLL for both our DLL and also for the VBA DLL
(Interop.VBA.dl l).

When we run our web application, periodically we obtain the following error message:

Parser Error Message: Access is denied: 'Interop.VBA'.

Source Error:

Line 196: <add assembly="Syste m.EnterpriseSer vices, Version=1.0.500 0.0,
Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"/>
Line 197: <add assembly="Syste m.Web.Mobile, Version=1.0.500 0.0,
Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"/>
Line 198: <add assembly="*"/>
Line 199: </assemblies>
Line 200: </compilation>

Source File:
c:\windows\micr osoft.net\frame work\v1.1.4322\ Config\machine. config Line: 198

The bizarre thing is that then the problem seems to disappear on its own.
It's as if the application has temporarily lost its' reference and then
finds it again.

Has anyone encountered this before? Does anyone know what the reason for it is?

Thanks for your help,

Mauro

Nov 18 '05 #2

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

Similar topics

0
2249
by: jb_in_marietta | last post by:
I have a Dot Net project that references a COM DLL called "Crypto.dll," which is registered on my machine. I added the reference via the "Add Reference" dialog in Visual Studio Dot Net, and I am successfully accessing methods in this DLL in some of my classes. "Interop.CRYPTOLib" is the name of the interop VS.NET created for me when I added the reference. Frequently, when I try to run my application, I get the error that follows.
8
3172
by: sudha | last post by:
Hi, To open a word doc from c#, i use the following code : Word.ApplicationClass WordApp = new Word.ApplicationClass (); // give any file name of your choice. object fileName = "C:\\test.doc"; object readOnly = false;
1
13217
by: Ayende Rahien | last post by:
reparing resources... Updating references... Performing main compilation... error CS0583: Internal Compiler Error (0xc0000005 at address 53168B12): likely culprit is 'BIND'. An internal error has occurred in the compiler. To work around this problem,
6
10299
by: Dave H | last post by:
You'll have to excuse me if I don't know what I'm talking about, but I'm new to webservices. I'm attempting to compile a C# file with csc /r:dmcorex.dll C:\InetPub\wwwroot\asptest\mtm\OBWebSvc.asmx.cs. dmcorex is in a using statement in the file 'using dmcorex;'. After running this I get the following error: 'c:\WINNT\Microsoft.NET\Framework\v2.0.40607\dmcorex.dll' could not beopened -- 'There isn't metadata in the memory or stream' ...
3
5555
by: B Vidyadhar Joshi | last post by:
I was writing an Bluetooth Application which makes calls to Windows APIs. I feel I'm doing something wrong with the structure. Could somebody help me? The code that I'm using is pasted below: using System; using System.Runtime.InteropServices; namespace System.Net.Bluetooth { public class BLUETOOTH_FIND_RADIO_PARAMS
2
2417
by: Rob G | last post by:
Hi, I am new to this ASP.NET thing and while going very slow, I am learning. Then I got a Configuration Error out of nowhere when I ran my project. I do have Excel as reference (but I haven't been able to use it yet). My project has been running just fine and I am sure I did something strange to make this occur, but I have no idea what I did. So now, all the work I've put into this, is gone. Well, I hope not.
0
2481
by: MarkD | last post by:
I have an ASP.NET (VB.NET) application that calls all VB6 COM DLL via Interop. The DLL uses functionality contained in a Custom OCX Control (Also VB6) that in turn contains a standard TreeView control. The Custom OCX is not used for visual purposes, but has some functionality that we require (hence hosting an OCX in a DLL). Everything worked fine until we installed the latest service pack for each respective windows operating system:...
0
3230
by: zfraile | last post by:
I'm getting this error from the JIT compiler at runtime, but only on my boss' machine, not my development machine. I believe the error is generated from a call to an Excel object, but I can't tell why or what specific action on the object is causing it. We both are running version 2.0 of the .net framework with Office 2003 installed, though I am running XP and she has Win2000. Also, I do not get this error when running another sub in...
0
1748
by: dprjessie | last post by:
Hello, I am a Web programmer and I'm working on my first desktop application as a favor for a friend. I'm sure I have a stupid error here, but there is no error being thrown so I can't figure out what is wrong. I have code that reads an excel file and fills a datagridview and it works just fine. It is also supposed to fill a database though and that is not working. The executeNonQuery command is returning a 1 which as I understand, means it has...
0
8306
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8825
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8503
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8605
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7327
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6164
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4152
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1615
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.