Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

SP2010 Hands on Lab 2 - Bugs List Definition - code being skipped

$
0
0

Hi all,

I am going through the HOLs for SP 2010 on our demo server (not in the Virtual Lab environment) and I have the first one working with no problems. All I have is the PDF files, so I had to set up the Employees and Projects lists myself, but I have also done this lab in the Virtual Lab before so I knew what fields those lists needed. Everything in Lab 1 works as expected and the provider/consumer web parts are fine.

The problem is with Lab 2 involving the Bugs list definition. Everything works fine except for the event handler for when an item is added or updated. The list does not autopopulate the Assigned To field as the event receiver is coded to do. I ran the debugger to try and pinpoint the problem and discovered that the block of code for pre-populating the field is being skipped entirely. The code will step into the AutoAssign method and I see the projectName being populated if I put a breakpoint on it, but then the foreach loop that would actually populate the Assigned To field is skipped altogether, even if I put a breakpoint on it.

I have seen other posts where people have mentioned issues with the debugger and separate threads being the cause of why we wouldn't see the debugging of that code. But I can verify that this isn't that type of issue, because whether in debug mode or not, the expected behavior is not occurring. I went back and tried this lab in the Virtual Lab environment to verify, and it works fine there. The issue is only occurring on our server. I have checked and re-checked that in both cases I put the code in in the exact same way.

I would greatly appreciate any help in getting this working! I want to find the cause of this issue so that I can verify that there isn't an underlying problem with our server.

Thanks in advance!


Viewing all articles
Browse latest Browse all 11571

Trending Articles