Consuming WCF service from windows ce 5.0 - c#

I am experiencing a strange problem. I know there are quite a few questions about WCF around, but I am almost sure I have already seen the majority of them and cant solve my problem yet. The problem is, I have a WCF service up and running on the remote server and I am able to consume it from the program I have written on the motorola mc65 device(OS is Windows Embedded Handheld 6.5). Now I need a slightly different web service on the same server, for another Motorola device, mk4000 kiosk that has Windows ce 5.0 running on it. Both of the devices are using .NET CF 3.5 and since generating the proxy for WCF using NetCFSvcutil worked for first case, I thought I would be able to use the same proxy for Windows ce app, but I am getting this error: This protocol version is not supported and that's all. There no error description in inner exception, too. I have no idea what can be the cause of this message, after a bit of research I found what it means that the server does not support http, but I am able to exchange information via http from another device. I would really appreciate if anyone could at least point me to the right direction about solving this matter :/

The problem turned out to be pretty funny in the end, once I connect my laptop to the device via usb port, the device cannot connect to anything, ethernet connection just stops and I found out about it pretty randomly, because I had our IT guys check if everything is ok with connection to the server and all was good. I have never thought about checking the connection right after usb connection, as the message was so unclear. I still do not know the exact reasons of this, but still it may help others working with that Motorola MK4000 Micro Kiosk device.

Related

Deploying a .NET application as a server with Playfab

What's my problem
I'm reaching you guys because I'm stuck on a problem for over 2 weeks now. I'm trying to deploy a simple .NET app on Playfab. I'm planning on creating a simple multiplayer game with UDP sockets. When I'm debugging locally with the LocalMultiplayerAgent, everything works fine in process mode but when I switch to container mode, I get some non-understandable error probably from Docker desktop (as shown in this image).
And since it is working fine in process mode, I planned to use this mode on Playfab server. So I deployed my executable, I got the "stand-by" statut and then I asked Playfab an instance of it with the MpsAllocatorSample. On the Playfab dashboard, I see my server going from "stand-by" to "active", but after this, nothing works... I don't have any response of my instance and yes, I carefully take the IP and the port given by the Playfab and not the port used in my .NET application.
What I have tried
Installing gameserverSDK in my project
Reaching the server with UDP sockets
Reaching the server with .NET request with a Controller
Removing .NET in my project and only using UDP sockets
Deploying in container mode and in process mode
Thanks in advance for your help guys, I start to lose hope in Playfab. The documentation is not clear for me and every tutorial on internet is with Unity and I'm not using it.

Xamarin.iOS + RestSharp and IPv6 App Store Rejection

I'm developing an iOS app using Xamarin.iOS and RestSharp to send requests to my server.
The app has been already beena approved in January but now, after some fixes, I try to update it with no success.
AppStore has sent me a message (on iTunesConnect) saying:
Please revise your app and test it on a device while connected to an IPv6 network (all apps must support IPv6) to ensure that it runs as expected.
After some researches I found that IPv6 compatibility is now required.
The problem is that I don't need that and I'm not able to test on a IPv6-only network also because I'm developing and testing the application from Visual Studio on Windows using VMware build-host with Mac OSX installed on it.
How can I resolve this issue? Is there a way to test my app emulating IPv6 network on VMware making it works using RestSharp or maybe is there a way to make AppStore to approve my application?
NOTE: I've already try to change HttpClient implementation selecting CFNetwork (iOS 6+) as suggested on many articles on the Web but AppStore still reject my app without any advice and keeping on saying the same (useless) things.
Please help me, I'm stuck and I really don't know how to resolve this :(
Thanks in advance
This morning Apple has approved my application. It seems that I had to perform a clean rebuild of the project after setting the HttpClient implementation to CFNetwork (iOS 6+).
The problem is solved, for now.

Serial Port Comm with Arduino Device from Windows Store C# App

I'm currently working on getting a Leonardo device recognized and communicating with my app over a serial port in C# for the Windows 8 App Store. I'm using http://msdn.microsoft.com/en-us/library/windows/hardware/dn312121(v=vs.85).aspx#step2 as a guide, in conjunction with http://code.msdn.microsoft.com/windowsapps/USB-CDC-Control-sample-5ba19caa to guide me.
I'm having problems however in the sense that my Arduino device isn't showing up despite me entering my PID/VID and Class/Subclass/Protocol so I feel I'm missing some steps and was hoping someone that has experience with this could point me to a more specific/granular example.
My device is an Arduino Leonardo and I'm running windows 8.1 using Visual Studio 2013 Ultimate, code is in C#
Any help is appreciated!
Just general thoughts on regular windows applications (not aware of W8 AppStore):
Might help or might not, in the second case, sorry for wasting your time...
To get a "regular COM" device in Windows, without any additional drivers, you should make the device appear as USB Communication Device Class (aka CDC) - this is, among others, done via the appropriate class/subclass/protocol. The VID/PID don't care. This means the device should provide CDC/ACM USB descriptors to the enumerating USB host (windows) and implement the required endpoints and commands - supposedly there is already something existing for your board and you downloaded the firmware to it, right? You might want to try to connect such configured device to windows and after successful enumeration, new COM port should appear. If you program regular application, you just connect to such COM port via SerialPort class instance, no matter it is provided via USB subsystem... If this works, you should be able to start the AppStore part (where I have no clue how to help).
I'm just going to answer this as not currently possible. I ended up writing a desktop WPF application using metro UI/UX guidelines. Between that and ClickOnce deployment the store app feel is fairly well recreated, despite the store being ideal.
I sincerely hope that Microsoft decides to support this in the near future, the Metro SDK is really nice and I would love to eventually port it.

webservices smart device c#

Hello guys I really have a big problem. Everytime I try to consume a webservice from an emulator, I always receive the message "Unable to connect to remote server". I already tried installing mobile device center and cradle the emulator. I literally tried doing all the stuff I see on the internet but no success. Hope you have new suggesion. Thanks in advance! By the way even my professor cant fix this problem LOL
Ensure, that you're connecting to the My Work networks in control panel, not the My ISP and craddle the emulator with the emulator device manager (you'll find it under Tools in Visual Studio 2008). Verify, that you can access your webservice from the mobile version of IE. I'm currently not at work, so I can't give you a more detailed description.

Windows Mobile - Device to Device via WiFi?

Are there any good api's or examples of communicating between two devices via WiFi?
I am programming an app for 600 window's mobile (version 5) devices. They occasionally will need to connect with another device and exchange info.
Each device connects to the internet via GPRS (using the phone line). I could do the communications via that, but it is slow and may not work in all locations (this app will be used nationwide).
Just as an FYI, I also plan to look into bluetooth, but the stack we get on our Symbol Devices (MC70) is the Stonestreet One stack (we cannot change that). It is a very difficult to use stack with no managed code API. Also, it requires manual setup to use. My users will not be very technically inclined.
If there is another way to communicate (ie via the WiFi connection) I would love that.
(Ideally, I would like to be able to programmatically turn on the WiFi, send/receive data and then turn off the WiFi (to save batteries).)
Any help/suggestions are appreciated.
Motorola (who have bought Symbol a few years ago) do release an Enterprise Mobility Developer Kit for .NET CF which also has some libraries for controlling the WLAN on a Symbol MC70. I have worked with this in the past and it seems to work very well. The SDK comes with the full documentation and some sample applications.
Here is an earlier question on this subject:
better way to communicate between ad hoc wifi windows mobile devices
... which suggests that this is at least possible.
As an alternative, if the devices have infrared ports, you could have them communicate that way (I think).
Update: just found this example:
http://community.opennetcf.com/articles/cf/archive/2008/06/09/exchanging-data-using-windows-mobile-windows-communication-foundation-net-compact-framework-and-exchange-2007.aspx
It looks like you can do peer-to-peer communications with it. It requires .Net CF 3.5, however.
Someone is welcomed to prove me wrong but, as far as i know, out of the box it has to be bluetooth. WiFi is for networks. If you setup each device to also act as an access point you could make this happen. So I am sure it can be done, but it's not a clear path.
I see other issue slike security as well, because a router would handle this and now each of the 600 devices would be an access point handling this security, i am just shooting from the hip now which is basically my long winded advice to not go that direction.
-update
maybe i am a bad answerer, I just thought this was a bad direction. You can google windows mobile wifi peer to peer. Here is one site that covers it.
http://www.smartphonemag.com/cms/blogs/3/588

Categories