Chapter 6 - Code does not send any Emails
Discussion Thread
Auto-Response08/05/2009 09:31 AM
Suggested Solutions Displayed.
Customer (Don Baechtel)08/05/2009 09:31 AM
I am following the instructions in Chapter 6 of Professional SharePoint 2007 Development ISBN-9780470117569. The source code for this Chapter is not included with the Source code download from your site. I have built the Xyz.HumanResources class library project, built it with debug, and install the debug dll in the system GAC. I also built a DeployHR console app as instructed and ran it to deploy the Event Receiver as instructed. I made the changes to the Hiring Management website as instructed. But when I add a new applicant to the Applicant list, no emails are sent to the managers. I am trying to debug the code. I use VS2008 and attach to the w3wp.exe processes on the system, but I get an error message: "The following module was built with either optimizations enabled or without debug information:
c:\Windows\assembly\GAC_MSIL\XyzHumanResources\1.0 .0.0_c13c44a9bc81dadd\Xyz.HumanResources.dll".
But the build command line from VS2008 below clearly shows that the dll was build with debug full and optimimze turned off.
How do I debug this dll with Sharepoint running to find out why the emails were not sent when the new applicant was added?
------ Rebuild All started: Project: Xyz.HumanResources, Configuration: Debug Any CPU ------
C:\Windows\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1701,1702 /errorreport:prompt /warn:4 /define:DEBUG;TRACE /reference:"C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\ISAPI\Microsoft.SharePoint.dll" /reference:"c:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.dl l" /reference:"c:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Data.Da taSetExtensions.dll" /reference:C:\Windows\Microsoft.NET\Framework\v2.0. 50727\System.Data.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0. 50727\System.dll /reference:"c:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Net.dll " /reference:C:\Windows\Microsoft.NET\Framework\v2.0. 50727\System.Xml.dll /reference:"c:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Xml.Lin q.dll" /debug+ /debug:full /filealign:512 /keyfile:XYZ.snk /optimize- /out:obj\Debug\Xyz.HumanResources.dll /target:library ApplicantEventReceiver.cs Properties\AssemblyInfo.cs
How do I get the Chapter 6 code to run as expected?
|