473,385 Members | 1,890 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Application is ambiguous reference'. error

hi all
i am trying to read excel file through my program. but when i compile
i get "Application is ambiguous reference'. error.
i am including using Excel;

May 30 '06 #1
3 6815
Hi,

Probably the Excel namespace has an Application class defined, if so it can
collide with System.Windows.Form.Application class. The solution is to
fully qualify the class: Excel.Application

--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

<sh****************@gmail.com> wrote in message
news:11**********************@38g2000cwa.googlegro ups.com...
hi all
i am trying to read excel file through my program. but when i compile
i get "Application is ambiguous reference'. error.
i am including using Excel;

May 30 '06 #2
And how would you do that? I'm having the same issue, but I don't know
how to "fully qualify the class".

Any help is much appreciated. Thanks!

Ignacio Machin ( .NET/ C# MVP ) wrote:
Hi,

Probably the Excel namespace has an Application class defined, if so it can
collide with System.Windows.Form.Application class. The solution is to
fully qualify the class: Excel.Application

--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

<sh****************@gmail.com> wrote in message
news:11**********************@38g2000cwa.googlegro ups.com...
hi all
i am trying to read excel file through my program. but when i compile
i get "Application is ambiguous reference'. error.
i am including using Excel;


Jun 21 '06 #3
Bob
Fully qualify your application run method like so:

static void Main(string[] args)
{
System.Windows.Forms.Application.Run(new fmBOM());
}

"di************@gmail.com" wrote:
And how would you do that? I'm having the same issue, but I don't know
how to "fully qualify the class".

Any help is much appreciated. Thanks!

Ignacio Machin ( .NET/ C# MVP ) wrote:
Hi,

Probably the Excel namespace has an Application class defined, if so it can
collide with System.Windows.Form.Application class. The solution is to
fully qualify the class: Excel.Application

--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

<sh****************@gmail.comwrote in message
news:11**********************@38g2000cwa.googlegro ups.com...
hi all
i am trying to read excel file through my program. but when i compile
i get "Application is ambiguous reference'. error.
i am including using Excel;
>

Aug 25 '06 #4

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

Similar topics

0
by: Stephen Cairns | last post by:
I have the following rpx file in a .Net solution and I am getting the following build errors which are driving me crazy and ive no idea where I have went wrong. The build errors I'm getting are as...
3
by: charliewest | last post by:
I am trying to execute the following code... ((Image)e.Item.FindControl("imgStatus")) .... i get the error: "'Image' is an ambiguous reference". My question is: How am i to convert the...
16
by: Paul S. Natanson | last post by:
What is a Null Reference error and how do I fix it? My newly installed VB.Net2003 gives me a "Microsoft Development Environment" error message box EVERY time I try to run/start ANY project -...
2
by: Jeff | last post by:
I'm getting an Object Reference error before I even run my app, and I'm not sure where to look to find the cause. I'd appreciate your help. When I open my Windows Application project, the...
3
by: nicolas.hilaire | last post by:
Hi group, when using unmanaged class with my managed app, I've seen errors when including (for example) <windows.h>. One of theses erros is : IDataObject : ambiguous symbol error I've seen...
4
by: David Lozzi | last post by:
Howdy, I found a nice little book called ASP.NET 2.0 Cookbook by Michael A Kittel and Geoffrey LeBlond. Anyway, they have some instructions on how to setup application level error handling. Most...
2
by: Dikbill | last post by:
Hi there, I've got a Windows project with references to an ocx file. When I run the executable and the referenced ocx isn't available I get a Windows error. How can I trip a reference error...
1
by: Nathan Sokalski | last post by:
I have a UserControl that I declare programmatically as follows: Dim userctrl as New rightside_portal() The codebehind file for this UserControl looks like the following: Partial Public...
2
by: spaz2k3 | last post by:
This is what I am trying to accomplish: To determine what type of work is most bountiful for my company, i am trying to create a query and report titled “Hours Against Each WorkCode” that includes a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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,...

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.