'Exception' is ambiguous in the namespace 'System'


J

Johnny van Cadsand

Hi,

I get the following errors when trying to build my solution:
'Exception' is ambiguous in the namespace 'System'
'EventArgs' is ambiguous in the namespace 'System'
'IDisposable' is ambiguous in the namespace 'System'

I know it has something to do with double references, but i can't find
anything... I think it's weird because it's in the namespace 'System'

Anyone an idea??

Johnny
 
Ad

Advertisements

J

Johnny van Cadsand

And some more...
'StreamReader' and 'StreamWriter' are ambiguos in the namespace 'System.IO'

Johnny
 
C

Cor Ligthert

Johny,

When you have references to namespaces in which different methods are used
with the same name you get this.

And than to use the streamreader you can by instance do io.streamreader
or set in top of your file
Imports system.io

I hope this helps?

Cor
 
H

Herfried K. Wagner [MVP]

Johnny van Cadsand said:
I get the following errors when trying to build my solution:
'Exception' is ambiguous in the namespace 'System'
'EventArgs' is ambiguous in the namespace 'System'
'IDisposable' is ambiguous in the namespace 'System'

I know it has something to do with double references, but i can't find
anything... I think it's weird because it's in the namespace 'System'

What assemblies are you referencing by your project?
 
Ad

Advertisements

J

Johnny van Cadsand

System
System.Data
System.Drawing
System.Net.Irda
System.Windows.Forms
System.XML

and in some files on top it says:
Imports System
Imports System.IO
and so on...

This explains a lot ??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top