Wcf on PDA Problems

E

Edys

Good morning/afternoon,

I am using WCF with the generated files from NETCFSVCUTILL to communicate
with the PC. Now i have found a few problems which i cant seem to solve and
are hoping that you guys could help.

1) To test the speed of the connection i made a while loop and got it to
send a to the PC from the PDA. But what i found is that it was only sending 4
messages a sec.. which to me seem slow. I might be wrong.

2) when ever a message is sent to the PC the .net compact frame work throws
an System.UriFormatException . There is no Uri's in my code. This is the
message i get:

System.UriFormatException occurred
Message="Invalid URI: The hostname could not be parsed."
StackTrace:
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind
uriKind)
at System.Uri..ctor(String uriString)
at System.Net.WebProxy.CreateProxyUri(String Address)
at System.Net.WebProxy..ctor(String Address, Boolean BypassOnLocal)
at System.Net.HttpWebRequest.SubmitRequest()
at System.Net.HttpWebRequest.finishGetResponse()
at System.Net.HttpWebRequest.GetResponse()
at
System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
at System.ServiceModel.Channels.RequestChannel.Request(Message
message, TimeSpan timeout)
at System.ServiceModel.Channels.RequestChannel.Request(Message message)
at Microsoft.Tools.ServiceModel.CFClientBase`1.getReply(Message msg)
at
Microsoft.Tools.ServiceModel.CFClientBase`1.Invoke[TREQUEST,TRESPONSE](CFInvokeInfo info, PollRequest request)
at
TruTest.ExternalCommunication.ClientCode.TrutestCommnicationClient.Poll(PollRequest request)
at
TruTest.ExternalCommunication.ClientCode.TrutestCommnicationClient.Poll(DeviceInfo address, Int32 itemCountToRemove)
at
TruTest.ExternalCommunication.Service.SmartDeviceService.PollServer(Object
obj)
at System.Threading.ThreadPool.WorkItem.doWork(Object o)
at System.Threading.Timer.ring()

i am using the DNS.resolve ("PPP_PEER") to get the host address im sending
the message to.

Even enter the IP address of the computer this error gets thrown, but the
message to get passed from the PDA to the Computer. I think the channel
cinnection is been reset each time the Exception is thrown


3) the computers i am on are using proxy. Now to allow the pda and computers
to talk to each other i have to physical turn off the proxy in IE. IF i dont,
i geta proxy (407) Access denied, even tho im telling it to bypass for local
addresses.

well i hope some one can help with these problems.

Thanks in advances
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top