Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

MVP阿,幫幫忙啊!!!!

12 views
Skip to first unread message

榴彈炮

unread,
May 17, 2006, 9:40:45 PM5/17/06
to
我用wince5.0(.net 2.0 compact 開發)連接web service(.net 2.0)開發.

異常類別: WebException (status = ServerProtocolViolation,message = "the
protocol version is not supported");

請問我該如何處理?

MS MVP 連錦雄 for VB.NET

unread,
May 18, 2006, 6:59:39 AM5/18/06
to
榴彈炮,

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...

榴彈炮

unread,
May 18, 2006, 9:02:03 PM5/18/06
to
謝謝,經過兩天的排查,已經將問題縮小到下面的範圍:

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");

謝謝大大.


MS MVP 連錦雄 for VB.NET

unread,
May 18, 2006, 11:22:03 PM5/18/06
to
Dear 榴彈炮,

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...

MS MVP 連錦雄 for VB.NET

unread,
May 18, 2006, 11:58:05 PM5/18/06
to
Dear 榴彈炮,

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...

0 new messages