質問編集履歴
1
エラーが発生していそうな箇所のソースとログを添付しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -5,6 +5,8 @@
|
|
5
5
|
情報は少ないのですが、よろしくお願いいたします。
|
6
6
|
|
7
7
|
|
8
|
+
|
9
|
+
追記、エラーが発生していそうな箇所のコード記述とログを添付します。
|
8
10
|
|
9
11
|
###発生している問題・エラーメッセージ
|
10
12
|
|
@@ -24,7 +26,47 @@
|
|
24
26
|
|
25
27
|
```ここに言語を入力
|
26
28
|
|
29
|
+
'信頼されないSSL証明書をパスする処理
|
30
|
+
|
31
|
+
ServicePointManager.ServerCertificateValidationCallback =
|
32
|
+
|
33
|
+
New RemoteCertificateValidationCallback(AddressOf OnRemoteCertificateValidationCallback)
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
''==FTPリクエストの作成==
|
38
|
+
|
39
|
+
Dim wFtpReq As FtpWebRequest = _
|
40
|
+
|
41
|
+
DirectCast(WebRequest.Create(CStr(OrderListForm.gIniFile("FTPServerURI")) & wDirUri), FtpWebRequest)
|
42
|
+
|
43
|
+
'接続情報がある場合、リクエスト情報に設定する
|
44
|
+
|
45
|
+
If Me.mFtpCredential IsNot Nothing Then
|
46
|
+
|
47
|
+
'Trueの場合SSL通信を行う
|
48
|
+
|
49
|
+
wFtpReq.EnableSsl = True
|
50
|
+
|
51
|
+
'接続情報を設定
|
52
|
+
|
53
|
+
wFtpReq.Credentials = Me.mFtpCredential
|
54
|
+
|
55
|
+
End If
|
56
|
+
|
57
|
+
'FTPサーバーへ送信するコマンドを設定。ディレクトリ一覧を取得する
|
58
|
+
|
59
|
+
wFtpReq.Method = WebRequestMethods.Ftp.ListDirectory
|
60
|
+
|
27
|
-
|
61
|
+
'Passiveモードで処理を行う
|
62
|
+
|
63
|
+
wFtpReq.UsePassive = True
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
'取得したディレクトリリスト
|
68
|
+
|
69
|
+
Dim wDirList As New List(Of String)()
|
28
70
|
|
29
71
|
```
|
30
72
|
|
@@ -32,7 +74,107 @@
|
|
32
74
|
|
33
75
|
###試したこと
|
34
76
|
|
77
|
+
エラーログを拾いました
|
78
|
+
|
79
|
+
2016/09/23,11:30:01,CommonFtps,TryGetFtpDirectoryList,例外に関連するヘルプファイルへのリンク,,
|
80
|
+
|
81
|
+
2016/09/23,11:30:01,CommonFtps,TryGetFtpDirectoryList,HelpLink:,,
|
82
|
+
|
83
|
+
2016/09/23,11:30:01,CommonFtps,TryGetFtpDirectoryList,特定の例外に割り当てられるコード化数値,,
|
84
|
+
|
85
|
+
2016/09/23,11:30:01,CommonFtps,TryGetFtpDirectoryList,HResult:-2146233087,,
|
86
|
+
|
87
|
+
2016/09/23,11:30:01,CommonFtps,TryGetFtpDirectoryList,例外の原因となるExcption,,
|
88
|
+
|
89
|
+
2016/09/23,11:30:01,CommonFtps,TryGetFtpDirectoryList,InnerException:System.ComponentModel.Win32Exception (0x80004005): 検証のために提供されたメッセージまたは署名が変更されています,,
|
90
|
+
|
91
|
+
2016/09/23,11:30:01,CommonFtps,TryGetFtpDirectoryList,例外説明,,
|
92
|
+
|
93
|
+
2016/09/23,11:30:01,CommonFtps,TryGetFtpDirectoryList,Message:A call to SSPI failed, see inner exception.,,
|
94
|
+
|
95
|
+
2016/09/23,11:30:01,CommonFtps,TryGetFtpDirectoryList,エラーの原因となったアプリケーションまたはオブジェクト名,,
|
96
|
+
|
97
|
+
2016/09/23,11:30:01,CommonFtps,TryGetFtpDirectoryList,Source:System,,
|
98
|
+
|
99
|
+
2016/09/23,11:30:01,CommonFtps,TryGetFtpDirectoryList,直前のフレームの文字列形式,,
|
100
|
+
|
101
|
+
2016/09/23,11:30:01,CommonFtps,TryGetFtpDirectoryList,StackTrace: at System.Net.FtpWebRequest.SyncRequestCallback(Object obj)
|
102
|
+
|
103
|
+
at System.Net.FtpWebRequest.RequestCallback(Object obj)
|
104
|
+
|
105
|
+
at System.Net.CommandStream.Dispose(Boolean disposing)
|
106
|
+
|
35
|
-
|
107
|
+
at System.IO.Stream.Close()
|
108
|
+
|
109
|
+
at System.IO.Stream.Dispose()
|
110
|
+
|
111
|
+
at System.Net.ConnectionPool.Destroy(PooledStream pooledStream)
|
112
|
+
|
113
|
+
at System.Net.ConnectionPool.PutConnection(PooledStream pooledStream, Object owningObject, Int32 creationTimeout, Boolean canReuse)
|
114
|
+
|
115
|
+
at System.Net.FtpWebRequest.FinishRequestStage(RequestStage stage)
|
116
|
+
|
117
|
+
at System.Net.FtpWebRequest.GetResponse()
|
118
|
+
|
119
|
+
at SyohousenJyusinIchiran.CommonFtps.TryGetFtpDirectoryList(String wDirUri, List`1& wFileList),,
|
120
|
+
|
121
|
+
2016/09/23,11:30:01,CommonFtps,TryGetFtpDirectoryList,例外がスローされたメソッド名,,
|
122
|
+
|
123
|
+
2016/09/23,11:30:01,CommonFtps,TryGetFtpDirectoryList,TargetSite:Void SyncRequestCallback(System.Object),,
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
パターン2
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
2016/09/23,11:44:55,CommonFtps,TryGetFtpDirectoryList,例外に関連するヘルプファイルへのリンク,,
|
132
|
+
|
133
|
+
2016/09/23,11:44:55,CommonFtps,TryGetFtpDirectoryList,HelpLink:,,
|
134
|
+
|
135
|
+
2016/09/23,11:44:55,CommonFtps,TryGetFtpDirectoryList,特定の例外に割り当てられるコード化数値,,
|
136
|
+
|
137
|
+
2016/09/23,11:44:55,CommonFtps,TryGetFtpDirectoryList,HResult:-2146233087,,
|
138
|
+
|
139
|
+
2016/09/23,11:44:55,CommonFtps,TryGetFtpDirectoryList,例外の原因となるExcption,,
|
140
|
+
|
141
|
+
2016/09/23,11:44:55,CommonFtps,TryGetFtpDirectoryList,InnerException:System.ComponentModel.Win32Exception (0x80004005): 関数に提供されているバッファーが小さすぎます。,,
|
142
|
+
|
143
|
+
2016/09/23,11:44:55,CommonFtps,TryGetFtpDirectoryList,例外説明,,
|
144
|
+
|
145
|
+
2016/09/23,11:44:55,CommonFtps,TryGetFtpDirectoryList,Message:A call to SSPI failed, see inner exception.,,
|
146
|
+
|
147
|
+
2016/09/23,11:44:55,CommonFtps,TryGetFtpDirectoryList,エラーの原因となったアプリケーションまたはオブジェクト名,,
|
148
|
+
|
149
|
+
2016/09/23,11:44:55,CommonFtps,TryGetFtpDirectoryList,Source:System,,
|
150
|
+
|
151
|
+
2016/09/23,11:44:55,CommonFtps,TryGetFtpDirectoryList,直前のフレームの文字列形式,,
|
152
|
+
|
153
|
+
2016/09/23,11:44:55,CommonFtps,TryGetFtpDirectoryList,StackTrace: at System.Net.FtpWebRequest.SyncRequestCallback(Object obj)
|
154
|
+
|
155
|
+
at System.Net.FtpWebRequest.RequestCallback(Object obj)
|
156
|
+
|
157
|
+
at System.Net.CommandStream.Dispose(Boolean disposing)
|
158
|
+
|
159
|
+
at System.IO.Stream.Close()
|
160
|
+
|
161
|
+
at System.IO.Stream.Dispose()
|
162
|
+
|
163
|
+
at System.Net.ConnectionPool.Destroy(PooledStream pooledStream)
|
164
|
+
|
165
|
+
at System.Net.ConnectionPool.PutConnection(PooledStream pooledStream, Object owningObject, Int32 creationTimeout, Boolean canReuse)
|
166
|
+
|
167
|
+
at System.Net.FtpWebRequest.FinishRequestStage(RequestStage stage)
|
168
|
+
|
169
|
+
at System.Net.FtpWebRequest.GetResponse()
|
170
|
+
|
171
|
+
at SyohousenJyusinIchiran.CommonFtps.TryGetFtpDirectoryList(String wDirUri, List`1& wFileList),,
|
172
|
+
|
173
|
+
2016/09/23,11:44:55,CommonFtps,TryGetFtpDirectoryList,例外がスローされたメソッド名,,
|
174
|
+
|
175
|
+
2016/09/23,11:44:55,CommonFtps,TryGetFtpDirectoryList,TargetSite:Void SyncRequestCallback(System.Object),,
|
176
|
+
|
177
|
+
|
36
178
|
|
37
179
|
|
38
180
|
|