Are you using wsp packages to deploy to the farm? I often find that simply remove the solution altogether and then installing it again fixes itself.
From: ozmoss@ozmoss.com [mailto:ozm...@ozmoss.com] On Behalf Of Wang, Dan Sent: Thursday, January 15, 2009 11:10 AM To: ozmoss@ozmoss.com Subject: RE: event handler not updating Yes, I did reset IIS after I deploy the new assembly. I'll check out the tools you mentioned. So glad it works now. I've been struggling with this for a few days. Thanks, Dan _________________________________________ From: ozmoss@ozmoss.com [mailto:ozm...@ozmoss.com] On Behalf Of Jeremy Thake Sent: Thursday, 15 January 2009 1:00 PM To: ozmoss@ozmoss.com Subject: RE: event handler not updating Are you doing an IISreset or application pool refresh when you deploy the new assembly. It won't necessarily pick up the new dll with the new changes otherwise. Are you using a tool such as WSPBuilder or STSDEv as this has this built in when you deploy. Take a look at: http://www.sharepointdevwiki.com/display/public/Solution+package+development+tool+comparisons From: ozmoss@ozmoss.com [mailto:ozm...@ozmoss.com] On Behalf Of Wang, Dan Sent: Thursday, January 15, 2009 10:58 AM To: ozmoss@ozmoss.com Subject: RE: event handler not updating Thanks for the prompt response Tommy. I tested with different accounts that are either site collection admin or accounts with contribute access to the document lib. I've just managed to get it work with the same source code. I recreated a new solution and gave it a new namespace, and pasted the code in, then loaded the new assembly. It appears working now but I have no idea why. Regards, Dan Dan Wang Technical Consultant _________________________________________ Logica - Releasing your potential Logica (ACT) Cooyong Centre PO Box 5034 BRADDON ACT 2612 T: +61 2 6246 1906 M: 0439002371 F: +61 2 6262 8827 E: dan.w...@logica.com<mailto:dan.w...@logica.com> ________________________________ From: ozmoss@ozmoss.com [mailto:ozm...@ozmoss.com] On Behalf Of Tommy Segoro Sent: Thursday, 15 January 2009 12:31 PM To: ozmoss@ozmoss.com Subject: RE: event handler not updating The user who is running the event handler doesn't have access to a particular list, hence can't get the value/meta-data of a document/list item. From: ozmoss@ozmoss.com [mailto:ozm...@ozmoss.com] On Behalf Of Wang, Dan Sent: Thursday, 15 January 2009 10:19 AM To: ozmoss@ozmoss.com Subject: event handler not updating I've written an event handler to populate some fields when a document is uploaded. For some reason, the fields are populated fine when I log in under the system account, but not when I log in under a normal user account. I run into the following exceptions when I debug under a normal user. System.ArgumentException was unhandled by user code Message="Value does not fall within the expected range." Source="Microsoft.SharePoint" StackTrace: at Microsoft.SharePoint.SPListItemCollection.get_Item(Guid uniqueId) at NumberGenerator.NumberGenerator.<>c__DisplayClass2.<ItemAdded>b__0() in D:\temp\ItemCounter\CDN.cs:line 45 at Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object state) at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2() at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode) InnerException: Would anybody be able to shed some lights? Regards, Dan Dan Wang Technical Consultant _________________________________________ Logica - Releasing your potential Logica (ACT) Cooyong Centre PO Box 5034 BRADDON ACT 2612 T: +61 2 6246 1906 M: 0439002371 F: +61 2 6262 8827 E: dan.w...@logica.com<mailto:dan.w...@logica.com> Please help Logica to respect the environment by not printing this email / Merci d'aider Logica ` priserver l'environnement en ivitant d'imprimer ce mail / Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so Logica dabei die Umwelt zu schuetzen / Por favor ajude a Logica a respeitar o ambiente nco imprimindo este correio electrsnico. This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. ________________________________ Support procedure: https://www.codify.com/lists/support List address: ozmoss@ozmoss.com Subscribe: ozmoss-subscr...@ozmoss.com Unsubscribe: ozmoss-unsubscr...@ozmoss.com List FAQ: http://www.codify.com/lists/ozmoss Other lists you might want to join: http://www.codify.com/lists Please help Logica to respect the environment by not printing this email / Merci d'aider Logica ` priserver l'environnement en ivitant d'imprimer ce mail / Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so Logica dabei die Umwelt zu schuetzen / Por favor ajude a Logica a respeitar o ambiente nco imprimindo este correio electrsnico. This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. ________________________________ Support procedure: https://www.codify.com/lists/support List address: ozmoss@ozmoss.com Subscribe: ozmoss-subscr...@ozmoss.com Unsubscribe: ozmoss-unsubscr...@ozmoss.com List FAQ: http://www.codify.com/lists/ozmoss Other lists you might want to join: http://www.codify.com/lists ________________________________ Support procedure: https://www.codify.com/lists/support List address: ozmoss@ozmoss.com Subscribe: ozmoss-subscr...@ozmoss.com Unsubscribe: ozmoss-unsubscr...@ozmoss.com List FAQ: http://www.codify.com/lists/ozmoss Other lists you might want to join: http://www.codify.com/lists Please help Logica to respect the environment by not printing this email / Merci d'aider Logica ` priserver l'environnement en ivitant d'imprimer ce mail / Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so Logica dabei die Umwelt zu schuetzen / Por favor ajude a Logica a respeitar o ambiente nco imprimindo este correio electrsnico. This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. ________________________________ Support procedure: https://www.codify.com/lists/support List address: ozmoss@ozmoss.com Subscribe: ozmoss-subscr...@ozmoss.com Unsubscribe: ozmoss-unsubscr...@ozmoss.com List FAQ: http://www.codify.com/lists/ozmoss Other lists you might want to join: http://www.codify.com/lists ________________________________ Support procedure: https://www.codify.com/lists/support List address: ozmoss@ozmoss.com Subscribe: ozmoss-subscr...@ozmoss.com Unsubscribe: ozmoss-unsubscr...@ozmoss.com List FAQ: http://www.codify.com/lists/ozmoss Other lists you might want to join: http://www.codify.com/lists -------------------------------------------------------------------------------- Support procedure: http://www.codify.com/lists/support List address: ozmoss@ozmoss.com Subscribe: ozmoss-subscr...@ozmoss.com Unsubscribe: ozmoss-unsubscr...@ozmoss.com List FAQ: http://www.codify.com/lists/ozmoss Other lists you might want to join: http://www.codify.com/lists