469,320 Members | 2,189 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,320 developers. It's quick & easy.

'Exception' is ambiguous in the namespace 'System'

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
Nov 21 '05 #1
4 9180
And some more...
'StreamReader' and 'StreamWriter' are ambiguos in the namespace 'System.IO'

Johnny

"Johnny van Cadsand" <software ( ) skyliner ! nl> schreef in bericht
news:10*************@corp.supernews.com...
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

Nov 21 '05 #2
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" <software ( ) skyliner ! nl>
And some more...
'StreamReader' and 'StreamWriter' are ambiguos in the namespace
'System.IO'

Johnny

"Johnny van Cadsand" <software ( ) skyliner ! nl> schreef in bericht
news:10*************@corp.supernews.com...
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


Nov 21 '05 #3
"Johnny van Cadsand" <software ( ) skyliner ! nl> schrieb:
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?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #4
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 ??

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> schreef in bericht
news:O1**************@TK2MSFTNGP12.phx.gbl...
"Johnny van Cadsand" <software ( ) skyliner ! nl> schrieb:
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?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Gurmeet2796 | last post: by
reply views Thread by mdpf | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.