2015-10-20 63 views
0

我使用popclient接收來自我的Gmail的郵件,它在我的電腦上工作,但在VPS上不行,我不知道發生了什麼。我使用Gmail的特定密碼,我試圖改變端口。C#無法在VPS上收到郵件

輸出:

<< +OK Gpop ready for requests from 'IP1' f15mb392228917lds 

>> USER 'GMAIL ADRESS' 

<< +OK send PASS 

>> PASS ******** 

<< +OK Welcome. 

>> STAT 

<< +OK 14 3002232 

Event Fired: QueryPopInfoCompleted 
Count: 14, Total Size: 3002232 bytes 
>> LIST 1 

<< +OK 1 1853 

>> UIDL 1 

<< +OK 1 GmailId15081a8efb4c1eba 

>> RETR 1 

<< +OK message follows 
Delivered-To: 'GMAIL ADRESS' 
Received: by 'IP2' with SMTP id g1csp520741wjl; 
     Mon, 19 Oct 2015 12:52:23 -0700 (PDT) 
X-Received: by 'IP3' 
Event Fired: MailPopCompleted 
MailPopCompletedEventArgs.Aborted : True 
Exception has been thrown by the target of an invocation. 
+0

添加'試穿catch'並檢查'Exception.InnerException'看到一個更加有用的錯誤消息。當前錯誤消息不會告訴除「有例外」之外的任何內容。 – cubrr

+0

行,現在只有「ole32.dll」 – Xizt

回答

0
System.DllNotFoundException: ole32.dll 
    at (wrapper managed-to-native) System.__ComObject:CoCreateInstance (System.Guid,intptr,uint,System.Guid,intptr&) 
    at System.__ComObject.Initialize (System.Type t) [0x00000] in <filename unknown>:0 
    at (wrapper remoting-invoke-with-check) System.__ComObject:Initialize (System.Type) 
    at Mono.Interop.ComInteropProxy.CreateProxy (System.Type t) [0x00000] in <filename unknown>:0 
    at System.Runtime.Remoting.RemotingServices.CreateClientProxyForComInterop (System.Type type) [0x00000] in <filename unknown>:0 
    at System.Runtime.Remoting.Activation.ActivationServices.CreateProxyForType (System.Type type) [0x00000] in <filename unknown>:0 
    at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&) 
    at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0 
相關問題