Plan to delete any OOB DispForm.aspx pages in SharePoint Designer??

Posted by

 

I ran into a particularly unique issue where any user was unable to create alerts for one discussion board. All other libraries, lists, and discussion boards worked and the same users could create alerts with no problem.

Steps to validate you’re hitting this particular problem:

1. Go to a Document Library, list, or discussion board

2. Create a new alert from a list or discussion board by select Actions/Alert me

 

clip_image001

3. Fill out the New Alert Page and click OK

Result: Get the following error: “Unknown Error”

clip_image002

 

This error doesn’t give you enough information. In order to get more information, it’s necessary to enable a couple options in the associated web.config file.

Edit the corresponding web.config file and change the following values:

For Example:

1. Access IIS Manager
2. Right click the appropriate site, choose explore
3. Right click the web.config
4. Open With, NotePad

Should now look like the following:

clip_image004

5. Change the customErrors and CallStack to the following:

CallStack=”true”

customErrors mode=”Off”

 

6. Save the web.config and now attempt to reproduce the issue.
7. Now the error should look like:

clip_image005

“Object reference not set to an instance of an object. at Microsoft.SharePoint.ApplicationPages.SubNewEditBasePage.SetAlertProperties(SPAlert a, SPWeb web, SPList list, String strAlertTemplateName, RadioButtonList RadioBtnEventType, RadioButtonList RadioBtnAlertFreq, RadioButtonList RadioBtnAlertFilter, TextBox TextTitle, DropDownList DdlView) at Microsoft.SharePoint.ApplicationPages.SubNewPage.BtnCreateAlert_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) ”

Cause:

This error occurs because the discussion board, list, or document libraries original dispform.aspx was deleted using SharePoint designer. We have some dependencies on the original dispform.aspx so if this is ever deleted within SharePoint designer, this problem will occur.

Resolution:

The best resolution is to restore the problem discussion board, list, or document library prior to when the deletion occurred. The other method is to move the items to a new library. A variety of options are available to move data over. The object model can be leveraged or the items can be moved over via Manage Content and Structure. While these methods work fine for Lists and Document libraries, discussion boards are a little more challenging. I found the easiest way to move Discussion board items was using Outlook.

Note: Using Outlook to move discussion board items will not preserve the metadata.

 

Question:

I used SharePoint designer and my custom list is pointed to my new dispform.aspx.   Can I delete the old dispform.aspx which I renamed?

Answer:

Even if SharePoint designer is used to point to a new dispform.aspx, you must keep the original.  You can rename it but it needs to say put.

 

Thanks,

Russmax