[mono-android] Web Service in Visual Studio

2012-02-14 Thread johnv
hi, has anyon on the forum got a web service working on the android using Visual Studio? I have created a simple project, deploys fine. I added a simple web service, but it bombs with a System.Net.WebException when trying to invoke the method (in the generated Reference.cs file) Ther web service w

Re: [mono-android] Web Service in Visual Studio

2012-02-15 Thread johnv
hi Wally, just a very simple web service .. I get the same problem with wcf or asmx .. as I say, it works fine on a non android problem. This is using the emulator at the moment, I can't purchase the product until I can get a sample web service working thanks for your time -- View this message in

Re: [mono-android] Web Service in Visual Studio

2012-02-15 Thread johnv
Jonathen, I have tried both, with the same result. It failes in the reference.cs file. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Web-Service-in-Visual-Studio-tp5482944p5485195.html Sent from the Mono for Android mailing list archive at Nabble.com.

Re: [mono-android] Web Service in Visual Studio

2012-02-15 Thread johnv
hi Karl, interesting, I'll try that, but it would be a bit of a pain if thie is the only way of getting a web service to work! -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Web-Service-in-Visual-Studio-tp5482944p5485202.html Sent from the Mono for Android mailing

Re: [mono-android] Web Service in Visual Studio

2012-02-15 Thread johnv
stack trace: Unhandled Exception: System.Net.WebException: Unhandled Exception: System.Net.WebException: [ERROR] FATAL UNHANDLED EXCEPTION: System.Net.WebException: Error: ConnectFailure (Connection refused) ---> System.Net.Sockets.SocketException: Connection refused at System.Net.Sockets.S

Re: [mono-android] Web Service in Visual Studio

2012-02-15 Thread johnv
thanks for your reply. This is currently using the emulator, so I'm not sure that I can test web access? How do I check if the App has internet permissions? (this looks like favourite!) -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Web-Service-in-Visual-Studio-tp

Re: [mono-android] Web Service in Visual Studio

2012-02-15 Thread johnv
there was no manifest file, so I created one, and added the INTERNET permissions .. no joy, same result. I then tried to access my service through the emulator, and got WEB Page Not Available message The emulator will find pages on the internet If I access my service through a browser on my PC it c

Re: [mono-android] Web Service in Visual Studio

2012-02-15 Thread johnv
thanks .. I can't see anything that I'm doing that is obviously different to the tutorial. It doesn't mention the Internet permission in the manifest file? Is it something to do with the emulator set up, as it can't see my service? -- View this message in context: http://mono-for-android.1047100.

Re: [mono-android] Web Service in Visual Studio

2012-02-15 Thread johnv
yes it does, Wally, I can access the internet with the emulator, just not my (localhost) webserver! very frustrating ... -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Web-Service-in-Visual-Studio-tp5482944p5486202.html Sent from the Mono for Android mailing list a

Re: [mono-android] Web Service in Visual Studio

2012-02-15 Thread johnv
I created the manifest file through the project settings page in VS the project is running in debug mode an ASP.NET c# web project works using the same web service referenced in the same way ... 10.0.2.2 does access the webservice in the emulator I have referenced it as localhost in the project,

Re: [mono-android] Web Service in Visual Studio

2012-02-15 Thread johnv
it works! using the ip address of the local machine to load the web service into the project instead of localhost solved the problem thanks all for all your help ... -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Web-Service-in-Visual-Studio-tp5482944p5486342.html