Enable BI Center as a subsite

August 4, 2011 Leave a comment

Enabling the following features at a team site collection will allow you to create a BI Centre as a subsite to it.

Site -> Site Actions -> Site Collections Administration -> Site Collection Features -> SharePoint Server Publishing Infrastructure

Site -> Site Settings -> Site collection administration -> Site Collection Features -> PerformancePoint Services Site collection features

Site -> Site Settings -> Site Features -> PerformancePoint Services Site Features

Hope this helps–
Rehman.

Error: cannot connect to performancepoint services

August 4, 2011 2 comments

Here is what worked for me:

Go to Central Admin > Application Management > Configure service application associations > click default.

You should see that PerformancePoint Services will be unchecked. Check that box and you should be good to go.

Hope this helps–
Rehman.

Performance Point – “Code blocks are not allowed”

When you try to launch performance point designer you get “An error occurred during the processing of /mysitecollection/pages/ppssample.aspx. Code blocks are not allowed in this file” ….

Go to your web.config and add the following:

<PageParserPaths>
	<PageParserPath VirtualPath="/mysitecollection/Pages/ppssample.aspx" CompilationMode="Always" AllowServerSideScript="true" />
</PageParserPaths>

Hope this helps–
Rehman.

SQL Server taking up too much memory on your VM

Courtesy Christophe:

Try the following:

Go to sql server management studio, right click on your server instance, take properties:

Change the memory allocation as under:

Hope this helps–
Rehman.

Finding SharePoint Release Version – Patch/Update level

It is on the “Manage Servers in this Farm” page in Central Admin:

http://<ServerName:PortNumber>/_admin/FarmServers.aspx

Hope this helps–

Rehman

Javascript from within CSharp

This is how you can write javascript from within c#:

if (dtStart.SelectedDate != dtEnd.SelectedDate)
			{
			    Response.Write(@"<script language='javascript'>alert('Start date must be equal to end date. Only hours and minutes can be different.');</script>");
			}

Hope this helps-
Rehman.

Viewstate error on sharepoint custom page

March 2, 2011 2 comments

Created a custom aspx form in my sharepoint application. Put that under layouts folder. Placed a gridview control on it and started receiving the following error:


Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.   at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)    at System.Web.UI.Control.AddedControl(Control control, Int32 index)    at xxxxx.SharePoint.EventsMgmt.BookingForm.RenderSearchResults(DataTable roomAvailabilityTable)    at Telstra.SharePoint.EventsMgmt.BookingForm.OnClickOK(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.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Solution:

Set enableViewState=false in gridview tag on the aspx page…….(not code behind). solved the problem.

Hope this helps-

Rehman.