Posted by Steve Pietrek on April 11, 2008
I have been working on a few custom Web Controls/Web Parts. One of the controls is a stock quote which updates every 10 minutes (or whatever the user defines). This is done by using an UpdatePanel and Timer. In my custom application.master page, I have the stock quote Web Control. When I attempt to view the People and Groups page in Site Settings (/_layouts/people.aspx?MembershipGroupId=4), I receive the following error.
Script controls may not be registered before PreRender. at System.Web.UI.ScriptControlManager.RegisterScriptControl[TScriptControl](TScriptControl scriptControl)
at System.Web.UI.UpdateProgress.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
What’s weird is I can access other pages within _layouts without issues. My thinking is there must be some extra things going on in the people.aspx page which is causing the error. I will review it over the weekend. Anybody else seen this?
Posted in SPErrors | No Comments »
Posted by Steve Pietrek on February 26, 2008
Posted in SPErrors, SPLife | No Comments »
Posted by Steve Pietrek on February 18, 2008
Today I was looking to roll my own site map. Nothing special - just wanted to display the content in a SPTreeView. The code is fairly basic:
...
PortalSiteMapProvider portalSiteMap = new PortalSiteMapProvider();
portalSiteMap.IncludePages = PortalSiteMapProvider.IncludeOption.Always;
portalSiteMap.IncludeHeadings = false;
portalSiteMap.EncodeOutput = true;
…
Read the rest of this entry »
Posted in SPErrors | No Comments »
Posted by Steve Pietrek on February 18, 2008
I have been working on a custom application.master file for a client. Things look good but when I attempted to add a workflow to a list, I received the following error:
Unable to validate data. at System.Web.Configuration.MachineKeySection.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString)
RESOLUTION: Duh! I knew this was an issue but forgot to remove it. The problem is I had the Search box included in application.master - a no-no. After removing it from the application.master, things seem to be working now - at least I was able to add a workflow. Next step is to create a HTTPModule which will automatically switch the application.master for _layouts pages. I’ll blog about this when I am complete.
Posted in SPErrors | No Comments »
Posted by Steve Pietrek on February 13, 2008
Today I mysteriously lost over 8GB of disk space since Monday. They say size doesn’t matter but this is crazy… 8+ GB of SharePoint logs!!!!

Nothing in the Event Viewer shows anything out of the ordinary. The only thing I can think of is I have not been shutting down my VM recently. I just put the host into hibernate. Yesterday, I noticed my time was off by 9 hours so I reset the time in the guest. Bet I threw SharePoint for a loop doing that.
Bottom line: If you use VMware, I would suggest at least suspending the VM before hibernating the host. Weird!
Posted in SPErrors | No Comments »
Posted by Steve Pietrek on January 30, 2008
OK, learn something new everyday. After the success of creating a custom application.master and applying it correctly (I am currently using Method #1 until I can find the time to do an application development method), I ran into an issue creating a new list column. Within IE7, I received an “undefined or null” script error. Firefox wouldn’t do anything.
Fired up Firebug and reviewed the SubmitPage() method. Set a few breakpoints and realized the FrmSubmit object is undefined. Doh!
Realizing the FrmSubmit information is set by the PlaceHolderUtilityContent placeholder, I quickly saw my error. The problem was I had embedded the PlaceHolderUtilityContent placeholder within the main <Form>. Moved the following line outside of </form> but above </body> and I am good to go.
<asp:ContentPlaceHolder id="PlaceHolderUtilityContent" runat="server"></asp:ContentPlaceHolder>
Posted in SPErrors | No Comments »
Posted by Steve Pietrek on January 29, 2008
Today I was modifying application.master and ran into the following error:
“Cannot convert type ‘Microsoft.SharePoint.WebControls.DelegateControl’ to ‘System.Web.UI.IAttributeAccessor’”
Instead of following my own advice on disabling My Site and My Links, I commented out the two lines in the custom Master File I created. I copied the commented code from my custom Master File to application.master. When I refreshed the page, I received the error above. At least for the two lines I commented out, SPD adds characters for spaces and such. It does not cause any issues for end-user Master Pages but it does for application.master. Figuring that was the issue, I put back the correct code and uncommented. Error went away.
Posted in SPErrors | No Comments »
Posted by Steve Pietrek on October 24, 2007
Hey everyone,
I’m hoping for a little guidance. I created a basic team site which has a Shared Documents document library and Calendar, Tasks, and Issues lists. As you can read, pretty simple stuff.
I have two users who are running IE 6 (6.0.2900.2180) and when they click a link in the Quick Launch bar, they receive the following error. The error occurs in kernel32.exe.

I have read numerous posts on this issue. There are quite a few on users running into this issue when opening a document (Microsoft has a hotfix on this). It seems related to owssup.dll. My users are not opening documents, they are just clicking the list links in the Quick Launch. My feeling is there is an add-on which is messing up IE. I told them to disable them and figure out which one is causing it.
Update #1 (11/7/2007): I have done a little more research on the issue. I believe the issue is related to either an add-on or a conflict with having Office 2003/Office 2007 applications installed on the system. We ran into another user who has the same issue. What do all of the users have in common? They are all running Office 2003 and Project 2007. Although I told them to go through the list of add-ons and disable one at a time and retry, I believe it’s the conflict issue. I wrote up instructions for the users to hopefully resolve the issue. We’ll see when they run through the tests:
- Open C:\program files\microsoft office\office 12\
- Rename the OWSSUPP.DLL file to something like OWSSUPP.backup.
- Go to Start –> All Programs –> Microsoft Office –> Microsoft Office Tools –> Microsoft Office Diagnostics.
- Run the tool after it runs you will have a new OWSSUPP.DLL file. If you look at the time stamp it should be an hour newer than the other dlls.
Posted in SPErrors | No Comments »