- PR -

「サーバーは要求を処理できませんでした。」エラーの処理、おねがいします。

1
投稿者投稿内容
スキロ
会議室デビュー日: 2008/01/12
投稿数: 1
投稿日時: 2008-01-14 11:48
皆さん、はじめまして:

C#でファイルアップロードを処理して、以下のエラーメッセージを返りました。

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><soap:Code><soap:Value>soap:Receiver</soap:Value></soap:Code><soap:Reason><soap:Text xml:lang="ja">System.Web.Services.Protocols.SoapException: サーバーは要求を処理できませんでした。 ---&gt; System.Xml.XmlException: ルート レベルのデータが無効です。 行 1、位置 1 です。
場所 System.Xml.XmlTextReaderImpl.Throw(Exception e)
場所 System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
場所 System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
場所 System.Xml.XmlTextReaderImpl.ParseDocumentContent()
場所 System.Xml.XmlTextReaderImpl.Read()
場所 System.Xml.XmlTextReader.Read()
場所 System.Web.Services.Protocols.SoapServerProtocol.SoapEnvelopeReader.Read()
場所 System.Xml.XmlReader.MoveToContent()
場所 System.Web.Services.Protocols.SoapServerProtocol.SoapEnvelopeReader.MoveToContent()
場所 System.Web.Services.Protocols.SoapServerProtocolHelper.GetRequestElement()
場所 System.Web.Services.Protocols.Soap12ServerProtocolHelper.RouteRequest()
場所 System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMessage message)
場所 System.Web.Services.Protocols.SoapServerProtocol.Initialize()
場所 System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean&amp; abortProcessing)
--- 内部例外スタック トレースの終わり ---</soap:Text></soap:Reason><soap:Detail /></soap:Fault></soap:Body></soap:Envelope>

このエラーはWebServiceのえらーですが。
まるく
大ベテラン
会議室デビュー日: 2004/01/09
投稿数: 181
投稿日時: 2008-01-14 23:54
結局なにが聞きたいのか激しく謎。
エラーの処理? try 〜 catch 。

引用:

スキロさんの書き込み (2008-01-14 11:48) より:
皆さん、はじめまして:

C#でファイルアップロードを処理して、以下のエラーメッセージを返りました。

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><soap:Code><soap:Value>soap:Receiver</soap:Value></soap:Code><soap:Reason><soap:Text xml:lang="ja">System.Web.Services.Protocols.SoapException: サーバーは要求を処理できませんでした。 ---> System.Xml.XmlException: ルート レベルのデータが無効です。 行 1、位置 1 です。
場所 System.Xml.XmlTextReaderImpl.Throw(Exception e)
場所 System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
場所 System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
場所 System.Xml.XmlTextReaderImpl.ParseDocumentContent()
場所 System.Xml.XmlTextReaderImpl.Read()
場所 System.Xml.XmlTextReader.Read()
場所 System.Web.Services.Protocols.SoapServerProtocol.SoapEnvelopeReader.Read()
場所 System.Xml.XmlReader.MoveToContent()
場所 System.Web.Services.Protocols.SoapServerProtocol.SoapEnvelopeReader.MoveToContent()
場所 System.Web.Services.Protocols.SoapServerProtocolHelper.GetRequestElement()
場所 System.Web.Services.Protocols.Soap12ServerProtocolHelper.RouteRequest()
場所 System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMessage message)
場所 System.Web.Services.Protocols.SoapServerProtocol.Initialize()
場所 System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
--- 内部例外スタック トレースの終わり ---</soap:Text></soap:Reason><soap:Detail /></soap:Fault></soap:Body></soap:Envelope>

このエラーはWebServiceのえらーですが。

ぴんふ
ベテラン
会議室デビュー日: 2006/07/13
投稿数: 80
投稿日時: 2008-01-15 12:49
こんにちは。ぴんふです。
このページを参考にすると早く解決すると思います。
http://www.hyuki.com/writing/techask.html
1

スキルアップ/キャリアアップ(JOB@IT)