'Exception' is ambiguous in the namespace 'System'

  • Thread starter Thread starter Johnny van Cadsand
  • Start date Start date
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
 
And some more...
'StreamReader' and 'StreamWriter' are ambiguos in the namespace 'System.IO'

Johnny
 
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
 
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?
 
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 ??
 
Back
Top