Skip to main content

Posts

Showing posts from June, 2012

Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe - error in Sharepoint 2010

Deployed solution using powershell in production, and activated the feature in the site collection. But when trying to add the webpart, it shows "Web Part Error :A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe" Checked in the webpart gallery and when trying to open the webpart, it is the same error. In web.config the entry is present for the custom webpart and it is set as Safe = True On further anlaysis found that the namespace mentioned in the web.config entry is not correct and corrected the same. Change the namespace in web.config to the name mentioned in .webpart file. Open the .webpart file in notepad and check the entry, the namespace is available under type name. Just remove the text after the last period. Refreshed the page - It worked !!

How to delete backup/restore job which is stuck in Sharepoint 2010

Sometimes when doing restore thru Central Admin, the job would go on for a long time without any progress being shown on the page. To stop the process and to re-run the restore job again, user would have to kill the running job. To force stop the job - Go to Cental Admin -> Monitoring -> Review Job Definitions -> Select Backup/Restore Timer Job and click Delete.

Audit Log Reports issue in sharepoint 2010

When enabling audit log reports, there were a couple of issues faced, given below 1.        I could not find the Audit Log Reports link in Site Collection Administration. Enabled it using stsadm as given in the below link How to enable the audit log reports link - http://www.danielbrown.id.au/Lists/Posts/Post.aspx?List=276dae61%2D6562%2D4ad1%2D8ca5%2Dba66c07b0cff&ID=47&Web=8a2513e7%2D4048%2D450e%2Dbd08%2Dea5ab59830ef 2.        When trying to generate audit reports or when trying to click Browse to select the location, I was getting an error "An unexpected error has occurred” with a correlation id. a.        As mentioned in sites, I checked in ULS logs for the description – The ULS logs can be found in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS b.       There was an exception related to Search c.        Checked the Search Service, it was enabled. But the search did not work in the site. So deleted and enabled Search serv