MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Troubles with map point in C#

This is a discussion on Troubles with map point in C# within the MapPoint Web Service and Virtual Earth forums, part of the Map Forums category; Hello guys, I've got some troubles with the webservice map point , while instancin' an object of : FindServiceSoap , ...


Go Back   MapPoint Forums > Map Forums > MapPoint Web Service and Virtual Earth

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  2 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 01-18-2008
Junior Member
White Belt
 
Join Date: Jan 2008
Location: Algiers
Posts: 10
Send a message via MSN to Amokrane
Troubles with map point in C#

Hello guys,

I've got some troubles with the webservice map point , while instancin' an object of : FindServiceSoap , it seems that FindServiceSoap become now an abstract class !

Look at this piece of code :

Quote:
FindServiceSoad fss = new FindServiceSoap();
I've got this error :

Quote:
Error 1 Cannot create an instance of the abstract class or interface 'PickMeUp_BusinessLayer.ReferenceMapPoint.FindServ iceSoap' C:\Documents and Settings\COMPAQ\My Documents\Visual Studio 2008\Projects\PickMeUp_BusinessLayer\PickMeUp_Busi nessLayer\MapPoint.cs 15 35 PickMeUp_BusinessLayer
Even , if all the documentations that i've read before , were indicating that the instanciation has to be like that ! (with new)

That's the first problem .

Second one , i've done this :
Quote:
FindServiceSoap fss;
FindAddressSpecification addressSpecif = new FindAddressSpecification();

FindResults resultats;
Address address = new Address();
// On insère les données relatives à l'adresse
address.AddressLine =_address;
address.PostalCode = _postal_code;
address.PrimaryCity = _city;
address.CountryRegion = _country;

addressSpecif.InputAddress = address;
addressSpecif.DataSourceName ="MapPoint.EU";



resultats = fss.FindAddress(addressSpecif);
latlongobj = resultats.Results[0].FoundLocation.LatLong;
and got those errors :
Quote:
Error 1 The best overloaded method match for 'PickMeUp_BusinessLayer.ReferenceMapPoint.FindServ iceSoap.FindAddress(PickMeUp_BusinessLayer.Referen ceMapPoint.FindAddressRequest)' has some invalid arguments C:\Documents and Settings\COMPAQ\My Documents\Visual Studio 2008\Projects\PickMeUp_BusinessLayer\PickMeUp_Busi nessLayer\MapPoint.cs 34 25 PickMeUp_BusinessLayer

Error 2 Argument '1': cannot convert from 'PickMeUp_BusinessLayer.ReferenceMapPoint.FindAddr essSpecification' to 'PickMeUp_BusinessLayer.ReferenceMapPoint.FindAddr essRequest' C:\Documents and Settings\COMPAQ\My Documents\Visual Studio 2008\Projects\PickMeUp_BusinessLayer\PickMeUp_Busi nessLayer\MapPoint.cs 34 41 PickMeUp_BusinessLayer
Strange , that this doesn't correspond to what i've read on documentation , i said strange because in the map point website, they said that in each new version of mappoint , we don't need at all to modify the code ..

Where is the problem then ?

Thank you very much

Last edited by Amokrane; 01-18-2008 at 06:22 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 01-20-2008
Junior Member
White Belt
 
Join Date: Jan 2008
Location: Algiers
Posts: 10
Send a message via MSN to Amokrane
Re: Troubles with map point in C#

Hello again ,

No body works on mappoint with C# ?
Please i need a help that's very easy i think
Thank you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/troubles-map-point-c-7013.html

Posted By For Type Date
The Magazine for MapPoint - MP2K Magazine This thread Refback 01-19-2008 04:53 AM
Eco Drive Blog » Blog Archive » Troubles with map point in C# This thread Pingback 01-18-2008 12:19 PM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Get direction from point a to point b??? jonknapek MapPoint 2006/2009 Discussion 7 07-09-2005 04:33 PM
Map Point Point Of Interest Anonymous MapPoint Web Service and Virtual Earth 1 02-14-2005 08:19 AM
Mouse Down Troubles Matrices MapPoint 2006/2009 Discussion 0 11-24-2003 05:51 AM
troubles Anonymous MapPoint 2006/2009 Discussion 0 03-30-2003 12:16 PM
How can I find nearest point on a road from a point off-road Anonymous MapPoint 2006/2009 Discussion 1 11-12-2002 06:14 AM


All times are GMT -5. The time now is 11:30 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map

Pamporovo Ski
Pamporovo ski holidays are situated high in the Rhodope Mountains. With an average of 270 days of beautiful sunshine and good snow, Pamporovo ski holidays are value for money.

Cruise Travel Agent
Travel Counsellors is a leading Cruise Travel Agent. Visit the site to view details of your preferred Cruise Line.

Holidays Jamaica
Holidays to Jamaica are a great way to immerse yourself in a different culture. Soak up some sun, indulge in some shopping, and relax at a beach resort. Use dealchecker.co.uk.

Holidays to Cancun
The Holiday Place has special offers on holidays to Cancun during the month of September. Book a late summer holiday with us!

Turkey
Before booking a holiday to Turkey check out the ULookUBook travel guide. Find out about the rich culture in Turkey before you go there to help you to make the most of your holiday.

Travel Deals
Click here and read up on the travel deals available online.

Cheap Sharm el Sheikh Holidays
Visit the Red Sea Riviera! Info on cheap Sharm el Sheikh holidays, found at On The Beach.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51