Featured post
Bing Maps APIs and Microsoft.Phone.Controls.Maps ambiguous Reference -
i facing weird issue. dont know whether issue or not. appreciated.
i developing map application. had working code. trying integrate project. when add service reference bing route , geocode service following issues.
the references.cs file automatically generated contains new project
public partial class requestbase : object, system.componentmodel.inotifypropertychanged { private tourguideapp.bing.route.credentials credentialsfield;
while previous working project
public partial class requestbase : object, system.componentmodel.inotifypropertychanged { private microsoft.phone.controls.maps.credentials credentialsfield;
the same happening location field have new field location in bing route service not present in earlier project
[system.diagnostics.debuggerstepthroughattribute()] [system.codedom.compiler.generatedcodeattribute("system.runtime.serialization", "4.0.0.0")] [system.runtime.serialization.datacontractattribute(name="location", namespace="http://dev.virtualearth.net/webservices/v1/common")] [system.runtime.serialization.knowntypeattribute(typeof(tourguideapp.bing.route.geocodelocation))] [system.runtime.serialization.knowntypeattribute(typeof(tourguideapp.bing.route.userlocation))] public partial class location : object, system.componentmodel.inotifypropertychanged {
so able use microsoft.phone.controls.maps.location .. if port same code new project says
'location' ambiguous reference between 'microsoft.phone.controls.maps.platform.location' , 'tourguideapp.bing.route.location'
similar thing happening credentials provider
i grateful
thanks , regards surya
this means these dll-s both contain classes same name - in case location
. need ever using type location give full reference.
instead of:
private location something;
you write
private microsoft.phone.controls.maps.location something;
this way compiler knows location mean.
- Get link
- X
- Other Apps
Comments
Post a Comment