Friday, October 26, 2012

Activate Office Web Apps Feature on site collections in SharePoint 2010

g_instanceId undefined error in Meeting Workspaces

When I have moved MOSS 2007 site to SharePoint 2010 server and applied custom SharePoint 2010 master page - at that time I was getting JavaScript error ‘g_instanceId undefined error’ in every meeting workspace site from moving from one date to another date.

After searching online, I have found that it is known issue in custom SharePoint 2010 master page. To resolve the issue we have to add 3 lines to custom master page.

SharePoint Development Best Practices

How to make ASP.NET Image button as default button




I have 2 textbox and 2 image button and I wanted to trigger first image button when any user press 'enter' key. so for making any image button as default button, we need to add 'defaultfocus' attribute into HTML FORM tag with image button name.

e.g.
<form id="form1" runat="server" defaultfocus="imagebutton1">

Tuesday, October 23, 2012

General SharePoint 2010 Migration Issues



I think every developer working with SharePoint 2010 Migration might have seen issues related to MissingFeature and MissingWebPart in Test Content DB report file. Depending on site customization, we may ignore MissingWebPart category because it is not going to block us from migrating site to SharePoint 2010. still it is always good to resolve every issues identify into Test Content DB report.

Here is very good link which is describing how to troubleshoot and resolve issue related to MissingFeature and MissingWebPart: http://blogs.msdn.com/b/paulking/archive/2011/10/05/removing-missingfeature-database-amp-missingwebpart-webpart-class-errors-from-sharepoint-2010.aspx

Happy Migration!

SharePoint 2010 Migration Issue : Exception: Backup, file manipulation operations (such as ALTER DATABASE ADD FILE) and encryption changes on a database must be serialized. Reissue the statement after the current backup or file manipulation operation is completed. ALTER DATABASE statement failed



I have received below error while mounting / attaching content database to SharePoint 2010 site during SharePoint 2010 migration process. after debugging more into issue, I have found there is database backup running at the same time when I have mounted database to SharePoint farm.

Error: [powershell] [SPUpgradeSession] [ERROR] Exception: Backup, file manipulation operations (such as ALTER DATABASE ADD FILE) and encryption changes on a database must be serialized. Reissue the statement after the current backup or file manipulation operation is completed. ALTER DATABASE statement failed.
[powershell] [SPUpgradeSession] [ERROR]:    at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
   at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
   at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at Microsoft.SharePoint.Utilities.SqlSession.ExecuteNonQuery(SqlCommand command)
   at Microsoft.SharePoint.Upgrade.SPContentDatabaseSequence.Upgrade()
   at Microsoft.SharePoint.Upgrade.SPUpgradeSession.Upgrade(Object o, Boolean bRecurse)

Resolution: We have to disabled all the database backup job when we are mounting database. after making sure there is no database backup job running on SharePoint side and SQL Server side - I am successfully able to mount the content database to SharePoint 2010 site.

Every time, I learn new issue and resolution while working with SharePoint 2010 migration.

:)