###前提・実現したいこと
SFTPサーバを構築し、クライアントからサーバよりファイル受信を行っているシステムでエラーが発生しました。エラーは2種類あり、クライアントがメッセージを出力してしまいます。クライアントはWINDOWSです.VB.netで構築しています。このようなメッセージが出る主な原因を知りたいです。
情報は少ないのですが、よろしくお願いいたします。
追記、エラーが発生していそうな箇所のコード記述とログを添付します。
###発生している問題・エラーメッセージ
System.ComponentModel.Win32Exception (0x80004005): 検証のために提供されたメッセージまたは署名が変更されています System.ComponentModel.Win32Exception (0x80004005): 関数に提供されているバッファーが小さすぎます。
###該当のソースコード
'信頼されないSSL証明書をパスする処理 ServicePointManager.ServerCertificateValidationCallback = New RemoteCertificateValidationCallback(AddressOf OnRemoteCertificateValidationCallback) ''==FTPリクエストの作成== Dim wFtpReq As FtpWebRequest = _ DirectCast(WebRequest.Create(CStr(OrderListForm.gIniFile("FTPServerURI")) & wDirUri), FtpWebRequest) '接続情報がある場合、リクエスト情報に設定する If Me.mFtpCredential IsNot Nothing Then 'Trueの場合SSL通信を行う wFtpReq.EnableSsl = True '接続情報を設定 wFtpReq.Credentials = Me.mFtpCredential End If 'FTPサーバーへ送信するコマンドを設定。ディレクトリ一覧を取得する wFtpReq.Method = WebRequestMethods.Ftp.ListDirectory 'Passiveモードで処理を行う wFtpReq.UsePassive = True '取得したディレクトリリスト Dim wDirList As New List(Of String)()
###試したこと
エラーログを拾いました
2016/09/23,11:30:01,CommonFtps,TryGetFtpDirectoryList,例外に関連するヘルプファイルへのリンク,,
2016/09/23,11:30:01,CommonFtps,TryGetFtpDirectoryList,HelpLink:,,
2016/09/23,11:30:01,CommonFtps,TryGetFtpDirectoryList,特定の例外に割り当てられるコード化数値,,
2016/09/23,11:30:01,CommonFtps,TryGetFtpDirectoryList,HResult:-2146233087,,
2016/09/23,11:30:01,CommonFtps,TryGetFtpDirectoryList,例外の原因となるExcption,,
2016/09/23,11:30:01,CommonFtps,TryGetFtpDirectoryList,InnerException:System.ComponentModel.Win32Exception (0x80004005): 検証のために提供されたメッセージまたは署名が変更されています,,
2016/09/23,11:30:01,CommonFtps,TryGetFtpDirectoryList,例外説明,,
2016/09/23,11:30:01,CommonFtps,TryGetFtpDirectoryList,Message:A call to SSPI failed, see inner exception.,,
2016/09/23,11:30:01,CommonFtps,TryGetFtpDirectoryList,エラーの原因となったアプリケーションまたはオブジェクト名,,
2016/09/23,11:30:01,CommonFtps,TryGetFtpDirectoryList,Source:System,,
2016/09/23,11:30:01,CommonFtps,TryGetFtpDirectoryList,直前のフレームの文字列形式,,
2016/09/23,11:30:01,CommonFtps,TryGetFtpDirectoryList,StackTrace: at System.Net.FtpWebRequest.SyncRequestCallback(Object obj)
at System.Net.FtpWebRequest.RequestCallback(Object obj)
at System.Net.CommandStream.Dispose(Boolean disposing)
at System.IO.Stream.Close()
at System.IO.Stream.Dispose()
at System.Net.ConnectionPool.Destroy(PooledStream pooledStream)
at System.Net.ConnectionPool.PutConnection(PooledStream pooledStream, Object owningObject, Int32 creationTimeout, Boolean canReuse)
at System.Net.FtpWebRequest.FinishRequestStage(RequestStage stage)
at System.Net.FtpWebRequest.GetResponse()
at SyohousenJyusinIchiran.CommonFtps.TryGetFtpDirectoryList(String wDirUri, List`1& wFileList),,
2016/09/23,11:30:01,CommonFtps,TryGetFtpDirectoryList,例外がスローされたメソッド名,,
2016/09/23,11:30:01,CommonFtps,TryGetFtpDirectoryList,TargetSite:Void SyncRequestCallback(System.Object),,
パターン2
2016/09/23,11:44:55,CommonFtps,TryGetFtpDirectoryList,例外に関連するヘルプファイルへのリンク,,
2016/09/23,11:44:55,CommonFtps,TryGetFtpDirectoryList,HelpLink:,,
2016/09/23,11:44:55,CommonFtps,TryGetFtpDirectoryList,特定の例外に割り当てられるコード化数値,,
2016/09/23,11:44:55,CommonFtps,TryGetFtpDirectoryList,HResult:-2146233087,,
2016/09/23,11:44:55,CommonFtps,TryGetFtpDirectoryList,例外の原因となるExcption,,
2016/09/23,11:44:55,CommonFtps,TryGetFtpDirectoryList,InnerException:System.ComponentModel.Win32Exception (0x80004005): 関数に提供されているバッファーが小さすぎます。,,
2016/09/23,11:44:55,CommonFtps,TryGetFtpDirectoryList,例外説明,,
2016/09/23,11:44:55,CommonFtps,TryGetFtpDirectoryList,Message:A call to SSPI failed, see inner exception.,,
2016/09/23,11:44:55,CommonFtps,TryGetFtpDirectoryList,エラーの原因となったアプリケーションまたはオブジェクト名,,
2016/09/23,11:44:55,CommonFtps,TryGetFtpDirectoryList,Source:System,,
2016/09/23,11:44:55,CommonFtps,TryGetFtpDirectoryList,直前のフレームの文字列形式,,
2016/09/23,11:44:55,CommonFtps,TryGetFtpDirectoryList,StackTrace: at System.Net.FtpWebRequest.SyncRequestCallback(Object obj)
at System.Net.FtpWebRequest.RequestCallback(Object obj)
at System.Net.CommandStream.Dispose(Boolean disposing)
at System.IO.Stream.Close()
at System.IO.Stream.Dispose()
at System.Net.ConnectionPool.Destroy(PooledStream pooledStream)
at System.Net.ConnectionPool.PutConnection(PooledStream pooledStream, Object owningObject, Int32 creationTimeout, Boolean canReuse)
at System.Net.FtpWebRequest.FinishRequestStage(RequestStage stage)
at System.Net.FtpWebRequest.GetResponse()
at SyohousenJyusinIchiran.CommonFtps.TryGetFtpDirectoryList(String wDirUri, List`1& wFileList),,
2016/09/23,11:44:55,CommonFtps,TryGetFtpDirectoryList,例外がスローされたメソッド名,,
2016/09/23,11:44:55,CommonFtps,TryGetFtpDirectoryList,TargetSite:Void SyncRequestCallback(System.Object),,
###補足情報(言語/FW/ツール等のバージョンなど)
より詳細な情報
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。