0
で発生した、完全な例外は、次のようになります。System.Net.WebExceptionが」System.dllの
Public Function GetHash(password As String) As String Implements IHashManager.GetHash
Dim uRL As String = HttpContext.Current.Request.Url.Scheme & "://" & HttpContext.Current.Request.Url.Host & ":" & HttpContext.Current.Request.Url.Port & "/md5_hash.asp?val=" & password
' Dim myWebClient As New Net.WebClient
Using myWebClient As New Net.WebClient
Return myWebClient.DownloadString(uRL)
End Using
End Function
それは、リターンライン上の例外がスローされます。
An exception of type 'System.Net.WebException' occurred in System.dll but was not handled in user code
Additional information: The remote server returned an error: (404) Not Found.
私のコードは次のようになります。
コードの目的は、現在のURLを使用して、パスワードのハッシュを返すことです。私はこのコードを書いていないし、なぜそれがエラーなのか分からない。なぜ誰が知っていますか?
また、わからないコードを使用しないでください。 –
ご回答いただきありがとうございます。この質問の目的は、コードをよりよく理解し、問題を解決することでした。私は理解していないコードを使用しないようにしています – Andrew