Purtroppo mi segnala una serie di errori... posto quanto risulta:
Errore di compilazione
Descrizione: Errore durante la compilazione di una risorsa necessaria per soddisfare la richiesta. Rivedere i dettagli relativi all'errore e modificare in modo appropriato il codice sorgente.
codice:
Messaggio di errore del compilatore: BC30002: Tipo 'MyMailMessage' non definito.
Errore nel codice sorgente:
Riga 123: '' tcpC.close
Riga 124: End Function
Riga 125:Private Sub GetMessage(ByVal message As MyMailMessage)
Riga 126: Dim Bs As Integer = 0
Riga 127: Dim SendByte() As Byte
File di origine: D:\GestionePosta\Index.aspx Riga: 125
Mostra dettagli dell'output del compilatore:
c:\windows\system32\inetsrv> "C:\Windows\Microsoft.NET\Framework\v2.0.50727\vbc.exe" /t:library /utf8output /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\Windows\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Windows\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /out:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\3dd1e6ea\a2f675d9\App_Web_hqpiq8bs.dll" /D:DEBUG=1 /debug+ /win32resource:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\3dd1e6ea\a2f675d9\hqpiq8bs.res" /define:_MYTYPE=\"Web\" /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Specialized,System.Configuration,System.Text,System.Text.RegularExpressions,System.Web,System.Web.Caching,System.Web.SessionState,System.Web.Security,System.Web.Profile,System.Web.UI,System.Web.UI.WebControls,System.Web.UI.WebControls.WebParts,System.Web.UI.HtmlControls "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\3dd1e6ea\a2f675d9\App_Web_hqpiq8bs.0.vb" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\3dd1e6ea\a2f675d9\App_Web_hqpiq8bs.1.vb"
Compilatore Microsoft (R) Visual Basic versione '8.0.50727.3053'
per Microsoft (R) .NET Framework versione '2.0.50727.3603'
Copyright (c) Microsoft Corporation. Tutti i diritti riservati.
D:\GestionePosta\Index.aspx(21) : warning BC42021: Funzione senza clausola 'As'. Verrà utilizzato il tipo restituito Object.
Function SendCommand(byRef NetStream as NetworkStream, byVal sToSend as String)
~~~~~~~~~~~
D:\GestionePosta\Index.aspx(28) : warning BC42021: Funzione senza clausola 'As'. Verrà utilizzato il tipo restituito Object.
Function GetResponse(byRef NetStream as NetworkStream)
~~~~~~~~~~~
D:\GestionePosta\Index.aspx(37) : warning BC42021: Funzione senza clausola 'As'. Verrà utilizzato il tipo restituito Object.
Function ReadMail(host as string, user as string, pass as string)
~~~~~~~~
D:\GestionePosta\Index.aspx(58) : warning BC42030: La variabile 'NetStream' viene passata per riferimento prima che le venga assegnato un valore. In fase di esecuzione potrebbe venire generata un'eccezione di riferimento null.
MyResponse = SendCommand(netstream,"user " & user & vbCrLF)
~~~~~~~~~
D:\GestionePosta\Index.aspx(124) : warning BC42105: La funzione 'ReadMail' non restituisce un valore in tutti i percorsi del codice. Potrebbe verificarsi un'eccezione di riferimento null in fase di esecuzione quando verrà utilizzato il risultato.
End Function
~~~~~~~~~~~~
D:\GestionePosta\Index.aspx(125) : error BC30002: Tipo 'MyMailMessage' non definito.
Private Sub GetMessage(ByVal message As MyMailMessage)
~~~~~~~~~~~~~
D:\GestionePosta\Index.aspx(130) : error BC30451: Nome 'Stream' non dichiarato.
Stream.Write(SendByte, 0, SendByte.Length)
~~~~~~
D:\GestionePosta\Index.aspx(141) : error BC30451: Nome 'Client' non dichiarato.
If Client.Available > 999 Then
~~~~~~
D:\GestionePosta\Index.aspx(143) : error BC30451: Nome 'Stream' non dichiarato.
Stream.Read(ByteReceive, 0, ByteReceive.Length)
~~~~~~
D:\GestionePosta\Index.aspx(149) : error BC30451: Nome 'Client' non dichiarato.
If Client.Available > 0 Then
~~~~~~
D:\GestionePosta\Index.aspx(150) : error BC30451: Nome 'Stream' non dichiarato.
Stream.Read(ByteReceive2, 0, ByteReceive2.Length)
~~~~~~
D:\GestionePosta\Index.aspx(156) : error BC30451: Nome 'Client' non dichiarato.
If message.Size < 0 And Client.Available = 0 Then
~~~~~~
D:\GestionePosta\Index.aspx(159) : error BC30451: Nome 'Client' non dichiarato.
Loop Until message.Size < 0 And Client.Available = 0
~~~~~~
D:\GestionePosta\Index.aspx(165) : error BC30451: Nome 'MessageBox' non dichiarato.
MessageBox.Show("File corrotto" & message.Id)