0

After the 2007 to 2010 SharePoint upgrade i have taken notice that when i try to activate a feature under the site collection admin for a root site page and also with manage site features i keep on getting an error page as mentioned below.

<configuration>
         <system.web>
           <custom Errors mode="Off"/>
        </system.web>
    </configuration>

I am confused as to why this problem would is occurring.

3
  • do you know what this custom feature contains? Jun 9, 2012 at 12:14
  • It happens for all the features even the ones that are activated, when i try to deactivate they throw a custom error also
    – wayne9999
    Jun 9, 2012 at 21:21
  • see my response. Jun 10, 2012 at 17:21

2 Answers 2

1

It appears that you don't have enough permissions to activate custom features. I would recommend you opening SharePoint Management Shell (run it as an administrator) and run the following powershell to activate features:

Get-SPWebApplication nameofwebapplication| Get-SPSite -Limit ALL | % {Enable-SPFeature "nameoffeature" -Url $_.Url}

One more thing you can enable the custom error messages for layouts pages by changing the web.config in the following folder.

C:\Program Files\Common files\Microsoft Shared\Web Server Extensions\14\template\layouts

web.config change:

<customErrors mode="Off" />

Follow this blog for more details:

4
  • Permission should not be a issue because i have the farm admin account and also the webapp admin account also.
    – wayne9999
    Jun 10, 2012 at 18:06
  • did you the try the powershell as mentioned above? Jun 10, 2012 at 18:08
  • I tried the powershell cmd and it still didnt activate it was complaining about a duplicate content type name "resource" was found
    – wayne9999
    Jun 12, 2012 at 0:42
  • could you paste the complete error message? Jun 13, 2012 at 22:14
0

What is that feature supposed to do? You can try activating the feature again and check the log files at (14\Logs) to get the actual error message. Or you could turn on custom errors in web.config to get the actual message (but if this is already in prod, I would not do it this way). Check this page on how to turn on errors in web.config.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.