2009-12-11 8 views
1

나는이 이벤트는 2010 년Sharepoint 2010 전자 메일 이벤트 수신자가 실행되지 않습니까?

첫 번째는 때마다 작동하는 ItemAdded 리시버입니다에 목록에 설치를 recievers 있습니다

<?xml version="1.0" encoding="utf-8"?> 
<Elements xmlns="http://schemas.microsoft.com/sharepoint/"> 
    <Receivers ListTemplateId="10000"> 
     <Receiver> 
     <Name>ListItemReceiverItemAdding</Name> 
     <Type>ItemAdding</Type> 
     <Assembly>$SharePoint.Project.AssemblyFullName$</Assembly> 
     <Class>SSW.TipDontRant.Sharepoint.ListItemReceiver</Class> 
     <SequenceNumber>10000</SequenceNumber> 
     </Receiver> 
    </Receivers> 
</Elements> 

두 번째는 나는 단지 preiodicaly에 가지고 이메일 이벤트 리시버입니다 30-40 번의 디버깅 시도에서 2 가지 경우에만 작동했습니다.

<?xml version="1.0" encoding="utf-8"?> 
<Elements xmlns="http://schemas.microsoft.com/sharepoint/"> 
    <Receivers ListTemplateId="10000"> 
     <Receiver> 
     <Name>EmailReceiverEmailReceived</Name> 
     <Type>EmailReceived</Type> 
     <Assembly>$SharePoint.Project.AssemblyFullName$</Assembly> 
     <Class>SSW.TipDontRant.Sharepoint.EmailReceiver</Class> 
     <SequenceNumber>10000</SequenceNumber> 
     </Receiver> 
    </Receivers> 
</Elements> 

OWSTimer에 연결되어 있고 ListTemplateId가 실제로 맞습니다. 여기 읽을

12/11/2009 17:12:54.01 OWSTIMER.EXE (0x2314)      0x046C SharePoint Foundation   Monitoring      nasq Medium  Entering monitored scope (Timer Job job-email-delivery) 7b525bbb-0972-4115-97b1-19b1d94ff8c5 
12/11/2009 17:12:54.03 OWSTIMER.EXE (0x2314)      0x046C SharePoint Foundation   E-Mail       6873 Warning  An error occurred while processing the incoming e-mail file C:\inetpub\mailroot\Drop\24c6872e01ca7a8500000003.eml. The error was: Object reference not set to an instance of an object.. 7b525bbb-0972-4115-97b1-19b1d94ff8c5 
12/11/2009 17:12:54.03 OWSTIMER.EXE (0x2314)      0x046C SharePoint Foundation   E-Mail       6871 Information The Incoming E-Mail service has completed a batch. The elapsed time was 00:00:00.0190038. The service processed 1 message(s) in total. Errors occurred processing 1 message(s): Message ID: <[email protected]> 7b525bbb-0972-4115-97b1-19b1d94ff8c5 
12/11/2009 17:12:54.03 OWSTIMER.EXE (0x2314)      0x046C SharePoint Foundation   Monitoring      b4ly Medium  Leaving Monitored Scope (Timer Job job-email-delivery). Execution Time=23.4762559268986 7b525bbb-0972-4115-97b1-19b1d94ff8c5 

그것의 약간의 dificult,하지만 내가 생각하는 중요한 비트는 다음과 같습니다 : sugested로 로그를 확인에

은 내가 때라도 오류를 발견

오류가 처리하는 동안 발생 받는 전자 메일 파일 C : \ inetpub \ mailroot \ Drop \ 24c6872e01ca7a8500000003.eml. 오류 : 개체 참조가 개체의 인스턴스로 설정되지 않았습니다 .. 7b525bbb-0972-4115-97b1-19b1d94ff8c5 저를 많이 말하지 않는

을! Visual Studio 내에서 던지기 때문에 내 코드에서 오류라고 생각하지 않습니다. 문서 라이브러리로 보낸 전자 메일이 올바르게 작동하는지 확인할 수 있습니다.

  1. 다른 누구도 이러한 문제가 있었습니까?
  2. 아무도 동의하지 않고이 작업을 수행 할 수 있습니까?

[업데이트] 주말 내내 코드를 남기고 전혀 건드리지 않았으며 현재 작동 중입니다! 이 솔기는 Sharepoints 부분에서 매우 솔직합니다.

그래서, 지금 (I 훨씬 전에이 못해서 참고) 실패 내 코드의 라인을 가지고 있고 그것은 내가 다른 질문 Sharepoint 2010 Project package: Cannot add a new project output assembly to the package

답변

1

를 열었습니다있는 외부 어셈블리에 대한 참조에 이것은 VS2010 Beta 2 또는 Sharepoint 2010 베타 중 하나의 버그입니다.

imediate 문제를 해결하려면 사이트를 삭제하고 솔루션을 비활성화했다가 제거한 다음 환경을 다시 부팅하십시오. 당신이 당신의 목록과 이벤트 접수가 및 이메일 이벤트 리시버에 영향을 미치는 유일한 솔기의 구조 변경을 할 때

이것은 단지 ... 일

+0

내 유일한 잠시 그 ​​후 자체를 해결하는이 이상한 셰어 행동을보고 생각 목록 이벤트 수신자를 배치 한 후 아마도 IISRESET이 필요합니다. –

+0

John 배포를 수행 할 때 수행되는 작업은 매우 확실합니다 ... –

관련 문제