.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

How to write the Web service in asp.net for Windows mobile application which find the nearest Restu

Posted By:      Posted Date: October 18, 2010    Points: 0   Category :.NET Framework

hi , i am developing the window mobile application in Asp.net, which will find the nearest Restaurant map on window mobile, but i am new to asp.net ,

  how to write the web service  in which i send my location address and  through window mobile and the web serivce find the neareset Restaurant map on window mobile ,

can this is possible ?

please help me

i dont know how to write the web service for this problem ,


please help me


many thanks in advacne


View Complete Post

More Related Resource Links

How to Find out Windows service application path from Code ?

Dear frnds, Could you please help me to find out the path of  windows serivce exe ( application path ) from code?   Regards. Sajid P K  

What is the best practice to write a web service for Mobile device such as Android, Windows 7 or eve


Hi, all,

I want to create a web service to serve request coming from mobile device such as Android, Windows Phone 7, iPhone, iPad etc. The request could be very simple query such as update status, send in an order, or upload a file etc.

What is the best approach?


Cannot find Manage services under Service Application of Central admin

We have Intranet solution based on SharePoint 2010 small farm. Somehow we don't see Manage services on server under the Service Applications in the central admin. Portal seem to work otherwise fine. When we opened the page to browser http://servername:14082/_admin/Server.aspx we received error: Access denied. We have tried to login with Admin, SP_Farm and SP_Admin user, but access denied every time. I checked who have Full user rights in the Central admin. It is SP_Admin Admins of the Sitecollection is SP_admin and Administrator. Why this happens?Kenny_I

Backward Compatibility of Windows Mobile 6 application

Hello, I have a app developed to run on Windows Mobile 6 (using VS 2008).  The requirement now is to get it running on Windows CE 5.0. (basically backport it to the very old version of windows mobile OS as the client is reluctant to upgrade the mobile OS) I did some research but havent found a convincing solution yet and still dont know whether this is even possible.  If it is possible, can you please let me know the detailed procedure? My environment details are: Win 7 (64 bit), running Visual Studio 2008. The application uses SQL CE 3.5. Thanks, P Joe      

Hosting web service inside Windows Application

  I would like to host my web service inside windows application. I prepared a short example basing on: http://msdn.microsoft.com/en-us/library/aa529311.aspx I have 2 projects created with default templates: Web Service project where I did not change anything: namespace WebService1 { [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] public class Service : System.Web.Services.WebService { public Service() { } [WebMethod] public string HelloWorld() { return "Hello World"; } } } Windows Project in which I changed only the main form class: public partial class Form1 : Form { public Form1() { InitializeComponent(); Uri address = new Uri("soap.tcp://localhost/TestService"); SoapReceivers.Add(new EndpointReference(address), typeof(WebService1.Service)); } } The problem is that when I compile and run this Windows Application, I can`t discover this Web Service. There must be something wrong in my solution. Could you please help me by telling what may be wrong? Thank you for help in advance.MCP

Using Windows Service in Web Application.

Hi All,I wanna embed the windows service in the web application. I have seen few posts in the web. where they generate separate exe for the windows service and use it as an installable. The same process i tried doing it but it threw an OS error in my server which is windows 2000 and didnt supported the executable.However the website of mine runs fine in the same server. Thus i was thinking if i cd embed the same code in the web application.Also, in my case the website of mine takes job for simulation. These jobs are taken for simulation execution and nearly takes 12hrs for completion and if they are not completed within twelve hours then they are supplied extra twelve hours to complete the simulation jobs.The simulation executables are a series of executable and bat files.The results of the simulation gets updated in the tables of MySql and hence are displayed to the user.Please let me know as how shd i go abt it.Best Regards,Sharad Jain

Windows mobile application using .net

Dear All, I am here asking for some help about Windows mobile application. Do you guys have any good references to learn about how to create a windows mobile application using .net?I have a big curiousity to learn about this technology since I have my new cell phone with windows mobile 6.5 OS. In this case, the application that I want to create is about controlling a device via bluetooth. Kindly need your willingness to help me!!..Best Regards, Hery He

the list cannot be imported because a windows sharepoint service-compatible spreadsheet application

I have googled this for 3 days now, without any solution. I have install, reinstall services and ms office, save as web the excel file for import, without any results, have anyone encounter this error. I need help.

SelfHosted WCF Service in a Windows Form Application

Hey,   I have a simple console app that is a self hosted service and a second console app that acts as the client.  I can pass a message between the client and service.  Obviously for this to work the service has to stay up and running, so I put a Console.ReadLine(); command as the last line in the service console app to prevent the service from closing until the user presses enter. My problem is, I would like to (self)host the service in a windows form.  If, for example, I put the ServiceHost decleration in the form load method, the service does not stay open once the form load method is complete. Does anyone have any tips on how I can self host the service in a windows form application and keep the service alive?   Thanks ;o)

how to build a facebook application on a windows mobile 6.5

Hello every one I want to ask about the facebook toolkit on the Compact .net framework. I was doing research and I understand that the original toolkit doesn't support smart devices. and I found this subject that shows some updates to the toolkit http://msdn.microsoft.com/en-us/library/bb932386.aspx#Conclusion but when I download the source code, It doesn't work and the only existing class is not clear. plz, Is there a clear source code that illustrate an example for a facebook application on a smart device thanks in advance

Convert 'Windows Application' to 'Windows Service' .... imposible?


Hi all!

I want run my server application as system service, but i starts the project as 'Windows Application' ... how to convert it now to 'Windows Service' ? :S

I try to add the component "Windows Service", and change the "Application type" to 'Windows Service', but i can't select 'Service1' as my "Startup Object", then when i register de service and launch it from the "Services" magnagement mmc  ... die at 30 seconds because the services mmc can't comunicate with it :(

Nevertheless, if i create a new project like 'Windows Service' runs ok.



Connection Pooling VS Steady Connection in Windows Service Application


Hi All,

We are developing a windows service application which queries the sql db every second. For now, we have enabled connection pooling and every time we open and close connection at every access. Since it is a windows service can I open connection at service startup and close the connection shutdown

Please let me know the right approach in this scenario.





"Windows SharePoint Services Web Application" service is showing 'Error starting'.


I just installed MOSS SP2 and ran the config wizard on the server.
I am facing issue with our farm. Found that "Windows SharePoint Services Web Application" is in a problem.

I tried below commands:-
stsadm -o provisionservice -action stop -servicetype spwebservice -servicename ""
stsadm -o provisionservice -action start -servicetype spwebservice -servicename ""
But getting error:- Provision of service failed. Additional information: 1387.

Checked eventvwr and found below error log:-
Event Type: Error
Event Source: Windows SharePoint Services 3
Event Category: Topology
Event ID: 7034
Date:  10/21/2010
Time:  5:16:10 AM
User:  N/A
Computer: <Servername>
An attempt to start/stop instance  of service Windows SharePoint Services Web Application on server <servername> did not succeed. Re-run the action via UI or command line on the specified server.

None of the sites are working and I cannot see anything in the IIS folder nor in the IIS manager. All application folders are missing. But, I can see all the sites & Content databasesin the Central Admin.

Can someone please help?


Why to write Service Application

I have a question: why to write custome Service Application. What are advantages of custom Service Application, if we compare it to pure WCF service.

OCX Control for Windows Service application


I need to use a custom OCX control with a Windows Service application.

I have built a Windows Form application test harness to test interoperability with the OCX control. To do that I added the OCX to the Toolbox, dragged it onto the form and used it successfully.

I now want to do the same in the Service application. However when I create and open the project the OCX control has disappeared from the toolbox.

I have read some similar posts from the past and the general response is that there is no need for an OCX control in a Service application because the service has no visible real-setate to use the OCX on. However in this case the OCX does not have any visual components. It is used to expose functionality to communicate with a third party application. The same third party has provided the OCX to allow others to implement certain functionality in their applications.

Is there any way to be able to use this type of OCX in a Service application? If not, is there a work-around?


Bas Groeneveld

No such interface supported - running windows mobile phone application


I open sample project, build goes OK.
When i try to run it (or just deploy it) i get error "No such interface supported" and project does not strat.

It was working ok a day ago, i had to install VS 2008 since and this is my suspect No1.

Any ideas? Thank you.

Running on Windows 7.


How to call Windows service from another Application



I have Created one  Windows Service using ATL and COM,How to call this Service from My application which is also in ATL and COM.

Please help me.

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend