異常類別: WebException (status = ServerProtocolViolation,message = "the
protocol version is not supported");
請問我該如何處理?
Please give more detail, for example, what your webservice is providing?
What your winCE5.0 coding is calling to.
What your program logic is trying to get from webservice?
--
Hope this help and welcome to reply the testing result.
Regards
Ken Lin, Kam Hung
Founder and VP of Hong Kong .NET User Group(http://HKNetUG.com)
MCP, MCP+I, MCDST, MCSA, MCSE(NT4 & win2k),
MCSE+I, MCDBA(SQL7 & SQL2K), MCSD(VB6 & .NET), MCAD(.NET)
Microsoft Community Star(Hong Kong & Taiwan)
Microsoft Most Valuable Professional(.NET since 2003)
MCT2004 - 2006
"榴彈炮" <liud...@tom.com> wrote in message
news:uKiAewhe...@TK2MSFTNGP02.phx.gbl...
Server端: Windows XP / IIS 5.1 / .net framework 2.0
Client端: Symbol MC3000 / Win CE 5.0 (Upgrade from WinCE4.2) / .net
framework 2.0
Client程式:
WebRequest myHttpWebRequest =
WebRequest.Create("http://xxxx/test/HTMLPage.htm");
WebResponse myHttpWebResponse = null;
try
{
myHttpWebResponse =
(WebResponse)myHttpWebRequest.GetResponse();
// 此處出現WebException
// err.ToString() "System.Net.WebException: 不支持此??版本。\r\n位于 System.Net.HttpWebRequest.finishGetResponse()\r\n位于
// System.Net.HttpWebRequest.GetResponse()\r\n位于
TESTClient.Form1.button1_Click()\r\n位于
System.Windows.Forms.Control.OnClick()
// \r\n位于 System.Windows.Forms.Button.OnClick()\r\n位于
System.Windows.Forms.ButtonBase.WnProc()\r\n位于
//System.Windows.Forms.Control._InternalWnProc()\r\n位于
Microsoft.AGL.Forms.EVL.EnterMainLoop()\r\n位于
//System.Windows.Forms.Application.Run()\r\n位于
TESTClient.Program.Main()\r\n" string
// WebException.Status =
System.Net.WebExceptionStatus.ServerProtocolViolation
}
catch(Exception err)
{
MessageBox.Show(err.ToString());
return;
}
MessageBox.Show("OK");
謝謝大大.
I am not sure if CF support SSL or windows authentication from WebService's
config, Do you mind change into Form Authentication and try.
--
Hope this help and welcome to reply the testing result.
Regards
Ken Lin, Kam Hung
Founder and VP of Hong Kong .NET User Group(http://HKNetUG.com)
MCP, MCP+I, MCDST, MCSA, MCSE(NT4 & win2k),
MCSE+I, MCDBA(SQL7 & SQL2K), MCSD(VB6 & .NET), MCAD(.NET)
Microsoft Community Star(Hong Kong & Taiwan)
Microsoft Most Valuable Professional(.NET since 2003)
MCT2004 - 2006
"榴彈炮" <liud...@tom.com> wrote in message
news:uB4xf$teGHA...@TK2MSFTNGP04.phx.gbl...
try this code,
HttpWebRequest myReq =
(HttpWebRequest)WebRequest.Create(http://www.msncom/);
to replace your old one,
WebRequest myHttpWebRequest =
WebRequest.Create("http://xxxx/test/HTMLPage.htm");
--
Hope this help and welcome to reply the testing result.
Regards
Ken Lin, Kam Hung
Founder and VP of Hong Kong .NET User Group(http://HKNetUG.com)
MCP, MCP+I, MCDST, MCSA, MCSE(NT4 & win2k),
MCSE+I, MCDBA(SQL7 & SQL2K), MCSD(VB6 & .NET), MCAD(.NET)
Microsoft Community Star(Hong Kong & Taiwan)
Microsoft Most Valuable Professional(.NET since 2003)
MCT2004 - 2006
"榴彈炮" <liud...@tom.com> wrote in message
news:uB4xf$teGHA...@TK2MSFTNGP04.phx.gbl...