Wrox Programmer Forums
BOOK: Professional SharePoint 2007 Development ISBN: 978-0-470-11756-9
This is the forum to discuss the Wrox book Professional SharePoint 2007 Development by John Holliday, John Alexander, Jeff Julian, Eli Robillard, Brendon Schwartz, Matt Ranlett, J. Dan Attis, Adam Buenz, Tom Rizzo; ISBN: 9780470117569
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional SharePoint 2007 Development ISBN: 978-0-470-11756-9 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 11th, 2009, 11:09 AM
Authorized User
Join Date: Jul 2009
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Angry 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?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Code to send emails maitias C# 2005 2 February 1st, 2006 01:09 PM
send emails to several users femig VBScript 4 April 15th, 2005 07:42 AM
Send two emails instead of one ss2003 Beginning PHP 3 January 28th, 2005 11:54 AM
Send Emails in ASP tdaustin Classic ASP Basics 4 August 12th, 2004 07:09 PM
Send Emails and Attachments. mistry_bhavin General .NET 2 August 11th, 2004 10:05 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.