Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C#can';不要在VPS上接收邮件_C#_Email_Gmail_Pop3 - Fatal编程技术网

C#can';不要在VPS上接收邮件

C#can';不要在VPS上接收邮件,c#,email,gmail,pop3,C#,Email,Gmail,Pop3,我过去经常从我的gmail接收信息,它在我的PC上工作,但在VPS上不工作,我不知道发生了什么。我使用了gmail的特定密码,并试图更改端口 输出: << +OK Gpop ready for requests from 'IP1' f15mb392228917lds >> USER 'GMAIL ADRESS' << +OK send PASS >> PASS ******** << +OK Welcome. >>

我过去经常从我的gmail接收信息,它在我的PC上工作,但在VPS上不工作,我不知道发生了什么。我使用了gmail的特定密码,并试图更改端口

输出:

<< +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.
>用户“GMAIL地址”
>通过********
>统计
>清单1
>UIDL 1
>RETR 1
System.DllNotFoundException:ole32.dll
在(包装器管理到本机)系统中。\uuu-ComObject:CoCreateInstance(System.Guid、intptr、uint、System.Guid、intptr&)
在System.\uuuComObject.Initialize(System.Type t)[0x00000]中:0
在(带检查的包装器远程调用)系统中。\uuu ComObject:Initialize(System.Type)
在0中的Mono.Interop.cominteroproxy.CreateProxy(System.Type t)[0x00000]处
0中的System.Runtime.Remoting.RemotingServices.CreateClientProxyForComInterop(System.Type类型)[0x00000]处
在:0中的System.Runtime.Remoting.Activation.ActivationServices.CreateProxyForType(System.Type类型)[0x00000]处
at(包装器管理为本机)System.Reflection.MonoCMethod:InternalInvoke(System.Reflection.MonoCMethod,object,object[],System.Exception&)
在System.Reflection.Method.InternalInvoke(System.Object obj,System.Object[]参数)[0x00000]中:0

添加一个
try catch
并检查
异常。InnerException
以查看更有用的错误消息。当前的错误消息除了“有一个异常”之外什么都不告诉。好的,现在只有“ole32.dll”
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