Wednesday, August 20, 2014
Monday, August 11, 2014
Sharepoint CSS cache issue
Below post from Chris O'Brian has some useful ideas to keep css refreshed with each version
http://www.sharepointnutsandbolts.com/2011/11/avoiding-bugs-from-cached-javascript.html
http://www.sharepointnutsandbolts.com/2011/11/avoiding-bugs-from-cached-javascript.html
SharePoint 2010 Error: No language-neutral solution exists in the store
While uninstalling wsp solution using Remove-SPSolution command, I suddenly started getting this error
Uninstalling solution: MySolution.wsp.
Solution uninstalled.
Removing solution: MySolution.wsp
Error occurred, during SharePoint deployment.
Object reference not set to an instance of an object.
After investigating further, I found out that a solution with the name already exists in the solution store, so after searching on internet I found out that a temporary work around is to remove solution entry from SharePoint_Config database and then add it back again using the same powershell script.
http://ftduarte.blogspot.co.uk/2009/07/sharepoint-no-language-neutral-solution.html?_sm_au_=iVVFhhM3k6FkL4Np
Uninstalling solution: MySolution.wsp.
Solution uninstalled.
Removing solution: MySolution.wsp
Error occurred, during SharePoint deployment.
Object reference not set to an instance of an object.
After investigating further, I found out that a solution with the name already exists in the solution store, so after searching on internet I found out that a temporary work around is to remove solution entry from SharePoint_Config database and then add it back again using the same powershell script.
http://ftduarte.blogspot.co.uk/2009/07/sharepoint-no-language-neutral-solution.html?_sm_au_=iVVFhhM3k6FkL4Np
Friday, August 8, 2014
COMException: 0x80131904 while deleting sharepoint 2010 files
I was getting below error while trying to delete files in a sharepoint 2010 site collection.
StackTrace: ' at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)
at Microsoft.SharePoint.Library.SPRequest.DeleteItem(String bstrUrl, String bstrListName, Int32 lID, UInt32 dwDeleteOp, Guid& pgDeleteTransactionId) at Microsoft.SharePoint.SPListItem.DeleteCore(DeleteOp deleteOp) at Microsoft.SharePoint.SPListItem.Delete() at VFS.PMS.ApplicationPages.CommonMaster.DeleteCompetenciesDraft(Int32 appraisalPhaseId, String currentUser, String listName) at VFS.PMS.ApplicationPages.Layouts.H2initial.SelfEve.SaveCompetenciesDraft(Int32 appraisalID, Int32 appraisalPhaseId, String listName) at VFS.PMS.ApplicationPages.Layouts.H2initial.SelfEve.b_0() at Microsoft.SharePoint.SPSecurity.<>c_DisplayClass4.b__2() at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode) at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param) at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode) at VFS.PMS.ApplicationPages.Layouts.H2initial.SelfEve.btnSave_Click(Object sender, EventArgs e)' Source: 'Microsoft.SharePoint' TargetSite: 'Void HandleComException(System.Runtime.InteropServices.COMException)' ------------------------------------------------------------ Inner exception:
------------------------------------------------------------ ExceptionType: 'COMException' ExceptionMessage: '0x80131904'
StackTrace: ' at Microsoft.SharePoint.Library.SPRequestInternalClass.DeleteItem(String bstrUrl, String bstrListName, Int32 lID, UInt32 dwDeleteOp, Guid& pgDeleteTransactionId) at Microsoft.SharePoint.Library.SPRequest.DeleteItem(String bstrUrl, String bstrListName, Int32 lID, UInt32 dwDeleteOp, Guid& pgDeleteTransactionId)' Source: '' TargetSite: 'Void DeleteItem(System.String, System.String, Int32, UInt32, System.Guid ByRef)' 8f922003-389d-4edf-b75f-7e69c5818a7a
It was resolved after I added myself in farm administrators group and then gave dbo permissions on the content database for the site collection and then shrinked database files using below post
http://support.powerdnn.com/kb/a447/how-to-shrink-your-mssql-database-log-file-truncate.aspx
More reference can be found in the comments in the post below:
http://stackoverflow.com/questions/10723746/sharepoint-2010-error-0x80131904-after-uploading-large-amount-of-files
Powershell command to delete sharepoint files
I have used poweshell commands from below post to delete files from sharepoint document libraries
http://sharepoint.stackexchange.com/questions/6511/download-and-delete-documents-using-powershell
http://sharepoint.stackexchange.com/questions/6511/download-and-delete-documents-using-powershell
Monday, August 4, 2014
Rich text editor custom styles
This blog has very useful information about how to create custom css styles in a rich text editor in sharepiont 2010
http://www.eblogin.com/eblogin/post/2012/05/03/sp-custom-rtStyles.aspx#.U99ZF_ldXts
http://www.sharepointeurope.com/blog/2013/7/17/how-to-create-custom-sharepoint-2013-content-editor-web-part-styles
http://www.eblogin.com/eblogin/post/2012/05/03/sp-custom-rtStyles.aspx#.U99ZF_ldXts
http://www.sharepointeurope.com/blog/2013/7/17/how-to-create-custom-sharepoint-2013-content-editor-web-part-styles
Subscribe to:
Posts (Atom)
c# httpclient The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch
If we get this error while trying to get http reponse using HttpClient object, it could mean that certificate validation fails for the remo...
-
SharePoint has a great feature to set terms which can be used to tag contents and enable terms based navigation and several other interesti...
-
Responsive design http://webdesignerwall.com/tutorials/5-useful-css-tricks-for-responsive-design http://palantir.net/blog/responsive-de...
-
Secure Microservices Using JWT With Ocelot in .NET Core (code-maze.com)