Skip to main content

Posts

Attempted to use an object that has ceased to exist. (Exception from HRESULT: 0×80030102(STG_E_REVERTED))

In my web part I used followig code I used to write the code like this using (SPSite _site = SPContext.Current.Site) { using (SPWeb _web = site.RootWeb) { // your code } } To correct this issue use code like following in my web part SPSite currSite = SPContext.Current.Site; SPWeb currWeb = currSite.RootWeb; using (SPSite eSite = new SPSite(currSite.ID)) { using (SPWeb eWeb = eSite.OpenWeb(currWeb.ID)) { //Your code } } Happy coding…

Upgrade the Managed Metadata service application to SP 2013

Step 1 :  Take backup of Managed Metadata server application DB. Step 2 :  Restore the MMS DB in SP 2013 SQL environment. Step 3 :  To Store the application pool that you want to use as a variable for this service application, at the PowerShell command prompt, type the following command : $applicationPool = Get-SPServiceApplicationPool -Identity 'SharePoint Web Services default' * SharePoint Web Services default  is the name of the service application pool that will contain the new service applications. Step 4 :  To upgrade the MMS, type the following command in PowerShell command prompt: $mms = New - SPMetadataServiceApplication - Name 'My Managed Metadata Service Application' - ApplicationPool $applicationPool - DatabaseName 'Managed Metadata Service_DB' Step 4 :  Type the following command in PowerShell command prompt for creating proxy service: New - SPMetadataServiceApplicationProxy - Name " My Managed Metadata Service Proxy"...

SharePoint 2010: Unable to start UPA sync service ,stuck at “Starting”

Unable to start User Profile sync service from Central administration site -system settings-Services on server. The service freezes at "starting" and never start. Below are the information from event viewer and verbose enabled ULS logs. I found the below solution at  Here Resolution - Stop User profile service and User profile sync service on ALL SharePoint servers in the farm - Clear timer config cache by following the "resolution" documented at http://support.microsoft.com/kb/939308 - Deleted the Pending timer job related to the UPA sync service provisioning using Central administration-Monitoring-check job status - Confirmed that the security token service has only windows and anonymous enabled ( from IIS manager-SharePoint web services-Security token service-Authentication (under IIS)) - On the SharePoint server access the registry editor and confirm that the information related to FIM ( database servername , sync DB name etc ) are prope...

User Cannot be Found When Opening List/Library Settings or Workflow Settings

I have encountered the  User cannot be found  error a few times when accessing the  List Settings  or  Library Settings . Solution: To republish the workflows you can follow the next steps: Open your site in SharePoint Designer 2010 Click on the  Workflows  link from the  Site Objects  menu Click on the workflow name, this will open your workflow Click on the  Publish  button Do step 3 and 4 for all the workflows. Go back to your  List  or  Library Settings  and the error should be gone.

Setting up a managed metadata service application to server one or more web applications

Found article at http://www.lamber.info/post/2010/12/12/Setting-up-a-managed-metadata-service-application-to-server-one-or-more-web-applications.aspx Assigning two or more managed metadata service applications to a single web application You are also able to assign multiple service applications to a single web application. When doing so with a managed metadata service application, however, you have to consider some settings before proceeding. Imagine that you have to maintain two separate managed metadata service applications for two different departmental projects. You can do this by creating two separate managed metadata service applications and assign them to the corresponding web applications. After a while, you need to combine both service applications for a single web application. You can do this by following the same steps as seen in the previous scenario. Choose the service applications that you want to consume in your web application by selecting a proxy group or def...

#160005: Bad response from SMTP. Client host rejected: Access denied

Here is message from the log file C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\LOGS High     #160005: Bad response from SMTP host'mail.mydomain.com': 554 5.7.1 : Client host rejected: Access denied. I resolved this SMTP issues after adding all WFE server IP into SMTP relay address. One of our DMZ WFE IP was not added into SMTP relay address. That's the reason all the OOTB overdue mail notification failed and got the below message: The e-mail message cannot be sent. Make sure the outgoing e-mail settings for the server are configured correctly.