I have a requirement to save incoming email details in pdf format when a document library received an email. So in the EmailReceived event receiver I created the code to retrieve all the email details using the SPEmailMessage and save it into pdf format by using iTextSharp. When I try to debug, the event receiver will not get hit. If I remove all the code that are based on the iTextSharp api the event receiver will get hit.
What is the problem here, is there any other way for me to achieve the same thing using different api.