Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

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.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -