Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 2 of 2

Troubles with map point in C#

This is a discussion on Troubles with map point in C# within the Bing Maps and MapPoint Web Service 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 , ...

  1. #1
    Amokrane is offline Junior Member White Belt
    Join Date
    Jan 2008
    Location
    Algiers
    Posts
    10

    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 :

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

    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 :
    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 :
    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.

  2. #2
    Amokrane is offline Junior Member White Belt
    Join Date
    Jan 2008
    Location
    Algiers
    Posts
    10

    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Get direction from point a to point b???
    By jonknapek in forum MapPoint Desktop Discussion
    Replies: 7
    Last Post: 07-09-2005, 04:33 PM
  2. Map Point Point Of Interest
    By Anonymous in forum Bing Maps and MapPoint Web Service
    Replies: 1
    Last Post: 02-14-2005, 08:19 AM
  3. Mouse Down Troubles
    By Matrices in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 11-24-2003, 05:51 AM
  4. troubles
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 03-30-2003, 12:16 PM
  5. How can I find nearest point on a road from a point off-road
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 11-12-2002, 06:14 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91