Ambiguous errors

G

GW

Hi,

I have imported a VS2003 project into VS2005 and am
getting a whole load of ambiguous errors

Error 9 'Split' is ambiguous between declarations in Modules
'Microsoft.VisualBasic.Strings' and 'Microsoft.VisualBasic.Strings'.

Error 39 'Trim' is ambiguous between declarations in Modules
'Microsoft.VisualBasic.Strings' and 'Microsoft.VisualBasic.Strings'.

Error 184 'Now' is ambiguous between declarations in Modules
'Microsoft.VisualBasic.DateAndTime' and 'Microsoft.VisualBasic.DateAndTime'.

Error 201 'UBound' is ambiguous between declarations in Modules
'Microsoft.VisualBasic.Information' and 'Microsoft.VisualBasic.Information'.

How do i get rid of all of these, what is the underlying cause.Please help
 
I

Ilya Tumanov [MS]

It appears you have references to Microsoft.VisualBasic.dll from both V1 and
V2.

To fix that please make sure you only have reference to V2 DLLs by removing
references to V1 DLLs.



--
Best regards,


Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 
G

GW

Hi Ilya, i think i want to keep V1 but in any case how do i remove
these references, which menu option. I've looked through the help but
can't find anything. Please can you point me to some documentation
i can read on all of this. Your help is most appreciated.

Thanks
 
I

Ilya Tumanov [MS]

Here's how to remove reference:



1. In solution explorer right click on the project and choose "Properties".

2. Property page will be shown, choose "References" tab on it.

3. Select reference to remove in the list and click "Remove" button.


--
Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 
G

GW

Thanks, under the references tab i have the following

C:\Program Files\Microsoft Visual Studio
8\SmartDevices\SDK\CompactFramework\2.0\v1.0\WindowsCE\System.dll

C:\Program Files\Microsoft Visual Studio
8\SmartDevices\SDK\CompactFramework\2.0\v1.0\WindowsCE\Microsoft.VisualBasic.dll

C:\Program Files\Microsoft Visual Studio
8\SmartDevices\SDK\CompactFramework\2.0\v1.0\WindowsCE\Microsoft.VisualBasic.dll

etc....

These all seem to be V1 so where can the V2 linkage be coming from. Is this
somehow hidden and the V1 is over and above whats already there.If so how
can i remove
the V2 as i can't see them in this tab.
 
W

Will Chapman

GW said:
Thanks, under the references tab i have the following

C:\Program Files\Microsoft Visual Studio
8\SmartDevices\SDK\CompactFramework\2.0\v1.0\WindowsCE\System.dll


These all seem to be V1 so where can the V2 linkage be coming from. Is this
somehow hidden and the V1 is over and above whats already there.If so how
can i remove
the V2 as i can't see them in this tab.
As you have selected to run a VB app I would guess that VS2005
automatically loads the V2 assemblies and wouldn't show them
in the reference tab. If you haven't already done so try deleting
the references to V1 and see what happens. If it doesn't compile,
then add references to V2.

I've experienced similar problems converting from VS2003 to VS2005
and sometimes it sorts itself out and on other occasions I've had
to open up a second instance of VS2005, create a new project and then
cut & paste code from the old one.

HTH

Will Chapman
 
G

GW

i removed the references to V1 and the errors have gone so
it appears references to V2 are already included by default.
 

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