System.web.mail으로 메일을 보내는 오류
-
02-07-2019 - |
문제
system.web.mail을 사용하는 이전 응용 프로그램 hr@domain.com. 다른 주소는 올바르게 작동하는 것으로 보입니다. 오류가 시작될 때 메일 서버를 Exchange 2007로 변경 했으므로 문제가있는 곳이라고 가정합니다. 무슨 일이 일어나고 있는지 아는 사람이 있습니까?
예외와 스택 추적은 다음과 같습니다.
System.web.httpexception : 'cdo.message'객체에 액세스 할 수 없습니다. ---> system.reflection.targetInvocationException : 호출 대상에 의해 예외가 발생했습니다. ---> System.Runtime.InterOpServices.comexception (0x80040212) : 전송은 서버와의 연결을 잃었습니다.
--- 내부 예외 스택 추적의 끝 ---
at system.runtimetype.invokedispmethod (문자열 이름, bindingflags invokeattr, object target, 객체 [] args, boolean [] byrefmodifiers, int32 culture, string [] namedparameters)
at system.runtimetype.invokemember (문자열 이름, bindingflags invokeattr, binder binder, 객체 대상, 객체 [] args, parametermodifier [] modifiers, cultureinfo culture, string [] nameparameters)
at system.web.mail.lateboundaccesshelper.callmethod (Object obj, String MethodName, Object [] args)
--- 내부 예외 스택 추적의 끝 ---
at system.web.mail.lateboundaccesshelper.callmethod (Object obj, String MethodName, Object [] args)
at System.Web.Mail.CDOSYSHELPER.SEND (MailMessage 메시지)
at System.Web.Mail.smtpmail.Send (MailMessage 메시지)
AT ProcessEmail.Main ()
해결책
다음은 튜토리얼입니다 이러한 예외를 진단하는 경우 (많은 의미가있는 매우 일반적인 것).
다른 팁
고객의 호스트 머신은 Exchange Sever를 통해 메일을 보낼 수있는 권한이 있습니까?