Friday, March 30, 2012

Visual Studio 2010 debugger not stopping at SharePont page

I faced a weired problem on my dev machine today, where I was not able to debug on the SharePoint page with VisualStudio 2010. I replaced the dll in the GAC , upgraded the wsp with the latest code but still was unable to attach the code with the SharePoint page.
Then I read an article http://evan-p.blogspot.com/2010/12/visual-studio-2010-debugger-not.html where I came to know the problem is because of Visual Studio and the .Net FrameWork used.

When attaching the debugger, Visual studio by default automatically determines the code types to debug . With Visual Studio 2010 however, there’s now 2 Managed code types (v2.0, v1.1, v1.0) and (v4.0) [Check the screenshot above], as we are still using .NET 3.5 occasionally Visual Studio gets confused and automatically determines 2.0 managed code as 4.0 managed code. This causes the debugger to be successfully attached but not to stop in any breakpoints.

Hence if the debugger code is getting attached successfully and you are sure that the DLL and code is the latest in GAC or bin, then definietly check for the Attached to box as shown in the screenshot and make sure it is getting attached to the right managed path.
 
Thanks Evan for pointing this out to me......... :)

Saturday, March 17, 2012

How to order form items in DispForm, EditForm and NewForm of a List.

We can order the item in the AllItems view by creating views but how to order the item in the DispForm, EditForm, NewForm.

I had a Holiday List with the column called
  • Holiday
  • Date
  • Optional
  • Edit
Our NewForm.aspx which is used to add new holiday, takes the Holiday name first, then date and then whether it is optional or not.(As shown in the screen shot below.)
Holidays List NewForm.aspx Form

But our requirement was to take the details from the user in the following order (Optional, Holiday, Date). Hence to do this
I went into the List Setting and set the column ordering. This changes the ordering of the columns in the all the different forms of the List.(See the screenshots below)

a)
Under List Setting click column ordering

b)
Choose the new Order

After changing the Position the forms will start displaying the fields in the order as set.
If you still are facing some issue please refer to the following post. http://social.technet.microsoft.com/Forums/en/sharepointgeneral/thread/a4c02c99-3a17-422b-9a88-7303dcc5f8a0

Thursday, March 8, 2012

Event ID: 6398 data is null

The Execute method of job definition Microsoft.SharePoint.Administration.SPSqmTimerJobDefinition (ID 5ade791f-868a) threw an exception.


Issue : From past one week I am continuously getting the above error in the Event Viewer and logs. Hence one fine morning I decided that I will get rid of this beastiiiiiiie.Hence I went to Central Admin -- monitoring -- review job definitions -- job history (left) and change the view (right) to Failed jobs as shown in the below screenshot.



Here I saw that CEIP Data Collection was failing everyday. The "Customer Experience Improvement Program" can be safely disabled. It is supposed to be set at the farm level - that question about participating in the customer experience program. To know more about CEIP: http://www.wictorwilen.se/Post/About-the-Customer-Experience-Improvement-Program-in-SharePoint-2010.aspx.



After disabling this, I was not getting the above error in the farm.