Skip to main content

Posts

Showing posts from October, 2011

How to do SharePoint 2010 Content Deployment

There are many articles in the web by describing Content Deployment in SharePoint 2010. But most of the time ( In my case it do not work fine always in first time :-( )  it is not working property and giving plenty of errors which direct us to restoring the backup rather than trying Content Deployment in the SharePoint Server. Here I'm going to my experiences and how I'm resolving those errors and little bit of background about the  SharePoint Content Deployment. Luckily i have manage to successfully proceed with the SharePoint Content Deployment most of the time. What is SharePoint Content Deployment   Content deploy can be use to export (deploy) content from one site collection to another site collection. content deployment is taking care of following contents in the source site collection. Web pages – Deploy corresponding images styles , master pages and etc. libraries lists resources Content Deployment do not deploy programs assemblies features config

Repair SharePoint Database

sometimes you may encountered with problems such as restoring failures and  content deployment failures thus it is better to repair the database and see where is there any orphan objects in the site collection. For that go to SharePoint Management Shell as an administrator , use following command stsadm -o databaserepair -url <url name> -databasename <database name> Example, here no Orphaned Objects found if they are listed run the command with deletecorruption option. stsadm -o databaserepair -url <url name> -databasename <database name> -deletecorruption

Power Shell Command for get SharePoint Feature (SP Feature) By ID

Use following power shell command to  search and get the SharePoint Feature. Get-SPFeature -Identity ID

SharePoint Solution deployment not working and Falling in the front end after installing the SP1 (SharePoint Service Pack 1)

This issue is also generate the following event log. Application Server Administration job failed for service instance Microsoft.Office.Server.Search.Administration.SearchServiceInstance Reason: Requested registry access is not allowed. Technical Support Details: System.Security.SecurityException: Requested registry access is not allowed.    at Microsoft.Office.Server.Search.Administration.SearchServiceInstance.Synchronize()    at Microsoft.Office.Server.Administration.ApplicationServerJob.ProvisionLocalSharedServiceInstances(Boolean isAdministrationServiceJob) these might be other reason also like not having correct permission to the application pool running user. But in my case i solved it by running the SharePoint Product Configuration Wizard .  

Presentation - MVC 3 @ University of Moratuwa

Mvc3 crash View more presentations from Melick Rajee @ University Of Moratuwa 20 Oct 2011 10.30AM – 11.30AM I have conducted this presentation  for IT students in Moratuwa University. The entire workshop is organized by Student Champs with great guidance of Wela . I hope presentation went well and few questions are asked from student also. The presentation gave an introduction and guidance to Microsoft MVC 3 application development.  

Generic Type Convert in C#

Cannot implicitly convert type 'object' to 'T'. An explicit conversion exists (are you missing a cast?)   Following code can be use to convert your object to generic value. T ret = (T) Convert .ChangeType( yourobject , typeof (T));

SharePoint 2010 List Template Ids

  ID List ID List 1200 Administrator tasks list 202 Meeting Attendees list 104 Announcements list 204 Meeting Decisions list 303 Blog Categories list 207 Meeting Objectives list 302 Blog Comments list 200 Meeting Series list 301 Blog Posts list 210 Meeting text box 105 Contacts list 211 Meeting Things To Bring list 120 Custom grid for a list 212 Meeting Workspace Pages list 118 Custom Workflow Process 117 No-Code Workflows 130 Data Connection library 2002 Personal document library 110 Data sources 109 Picture library 108 Discussion board 300 Portal Sites list 101 Document library 2003 Private document library 106 Events list 111 Site template gallery 150 Gantt Tasks list 102 Survey 100 Generic list / Custom List 107 Tasks list 1100 Issue tracking 112 User Information list 103 Links list 113 Web Part gallery 114 List template gallery 119 Wiki Page library 116 Master pages gallery 14

Form resubmit on Refresh

I had issue with resubmitting the form  when user refresh the form. i had to disable this accidental behavior in the MVC3. Yes of cause we can redirect to another action to prevent this behavior. but in my case i do not want to do that. there fore i used following JavaScript to disable browser refresh and back button . < script > window.history.forward(1); document.attachEvent( "onkeydown" , my_onkeydown_handler); function my_onkeydown_handler() { switch (event.keyCode) { case 116: // 'F5' event.returnValue = false ; event.keyCode = 0; window.status = "F5 disabled" ; break ; } } </ script >

InfoPath Repeating Rows Selection Issue/Problem

I had a problem with selecting InfoPath repeating rows for applying a condition. Therefore for i used following mechanism to correctly select the current row.  Here is my scenario, I’m writing a formula for fld_CorpStatus by accessing field fld_corpOff . but i should access the same row data in the run time. there for i used following xpath expression to access the fld_corpOff. current()/../fld_corpOff Explanation :- we are getting the current (fld_CorpStatus)  and then go to it’s parent (CorpOfficeGroup) the access the fld_corpOff