473,503 Members | 338 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Interop Reference Problem

Why does Office create a compile error when doing a Release compile but not
when doing a Debug complie. Release compile is compiled to the network share
drive

- Excel Interop is added as a reference in the VS Project window.
- Excel PIA Interop is located on the same network location as the exe and
the share directory with PIA is included in the project path
- Other projects in the same solution also reference Office with no problem

Compile Error:
using Excel = Microsoft.Office.Interop.Excel;

C:\BusinessInformationSoftware\ADONetLibrary\Datab aseControlsImplementation.cs(13):
The type or namespace name 'Office' does not exist in the class or namespace
'Microsoft' (are you missing an assembly reference?)

Nov 17 '05 #1
1 8405
I solved it but im even more confused

the knowledgebase says interop assemblies for my simple local application
has to be in the same directory as the exe (a directory on the share, call it
L:\Foo). But the other project of my solution reference Interop Assemblies
in a subdirectory (L:\Foo\PIA) . So i changed the reference and obtained the
Excel dll of that one project giving compile errors to that subdirectory and
it compiled fine.

Now I have PIA's in L:\Foo because the program won't load with out them
there (I learned that lesson) but there referenced from L:\Foo\PIA

Hmmm
Steve

"Steve B." wrote:
Why does Office create a compile error when doing a Release compile but not
when doing a Debug complie. Release compile is compiled to the network share
drive

- Excel Interop is added as a reference in the VS Project window.
- Excel PIA Interop is located on the same network location as the exe and
the share directory with PIA is included in the project path
- Other projects in the same solution also reference Office with no problem

Compile Error:
using Excel = Microsoft.Office.Interop.Excel;

C:\BusinessInformationSoftware\ADONetLibrary\Datab aseControlsImplementation.cs(13):
The type or namespace name 'Office' does not exist in the class or namespace
'Microsoft' (are you missing an assembly reference?)

Nov 17 '05 #2

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

Similar topics

0
2336
by: roy | last post by:
I try to call com written in VB 6.0. When I use VS.net Studio to do the debuging, some time it works fine, some time I got the following message: Server Error in '/GISOnlineReservation'...
0
1544
by: roy | last post by:
I try to call com written in VB 6.0., some time it works fine, some time I got the following message: Server Error in '/GISOnlineReservation' Application....
8
9992
by: Chango V. | last post by:
Hello, We seem to need a PIA for MSXML 4. According to the documentation, only the original publisher of a COM type library is supposed to create a .NET PIA. As far as I know, Microsoft hasn't...
1
3956
by: Mauro | last post by:
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...
8
3395
by: Rob Edwards | last post by:
When trying to add the Microsoft CDO for Exchange Management Library (aka CDOEXM.dll) I receive the following message: "A reference to 'Microsoft CDO for Exchange Management Library' could not be...
2
11437
by: William LaMartin | last post by:
I have created a program that allows for the automation of things in Word documents, like changing the values of DocVariables and the links to Excel Sheets. I did it using interoperoperatability,...
2
7264
by: JC | last post by:
Anybody knows what problem has this code? I think, in the Garbage Collector? You know the Solution? The program in the test's case, whit 350 contacts, run OK before number 86. The error is a...
0
2033
by: Tina | last post by:
I've gotten this before where it says there is a problem with Interop.MSDASC but I can't remember what causes this. This is a 1.1 app I'm trying to debug in vs2005. It was running yesterday just...
1
5206
by: Bhrionn | last post by:
Hello World, I am working on implementing a build for my companies application. The scenario implemeted is producing the error: ‘Class does not support automation or does not support expected...
0
7203
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,...
0
7087
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...
0
7334
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5579
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,...
0
4675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3168
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...
0
3156
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1514
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 ...
0
383
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...

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.