Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a wsp package installed as farm solution. package has event reciever on activating feature. When I go to Site Collection Features and activate this feature i get an error

     Error
     File Not Found.
     Troubleshoot issues with Microsoft SharePoint Foundation.
     Correlation ID: 958eb25f-0b7b-423c-a8da-95ce43cdae0d

     Date and Time: 10/8/2012 2:51:21 PM

I cant find corelation ID in 14/LOGS. I don't understand the error.

What cause the issue?

Updated:

Elements.xml from CAB

        <?xml version="1.0" encoding="UTF-8"?>
           <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
              <Module Url="_catalogs/wp" List="113" Name="PCenter"> 
                  <File Url="Processing_Center.webpart" Type="GhostableInLibrary" Path="PCenter\ProcessingCenter.webpart"> 
                     <Property Name="Group" Value="Custom"/> 
                  </File>  
              </Module> 
           </Elements>

manifest.xml from CAB

        <?xml version="1.0" encoding="utf-8"?>
          <Elements xmlns="http://schemas.microsoft.com/sharepoint/" >
           <Module Name="PCenter" List="113" Url="_catalogs/wp">
              <File Path="PCenter\ProcessingCenter.webpart" Url="Processing_Center.webpart" Type="GhostableInLibrary" >
               <Property Name="Group" Value="Custom" />
              </File>
           </Module>
        </Elements>

feature.xml from CAB

        <?xml version="1.0" encoding="utf-8"?>
          <Feature xmlns="http://schemas.microsoft.com/sharepoint/" Description="Web Part for Displaying Server Errors" Id="83cd6230-f065-4990-a54e-50975a539076" ReceiverAssembly="PCenter, Version=1.0.0.0, Culture=neutral, PublicKeyToken=307cd31083df2d5c" ReceiverClass="PCenter.Features.Feature1.Feature1EventReceiver" Scope="Site" Title="Processing Center">
           <ElementManifests>
             <ElementManifest Location="PCenter\Elements.xml" />
               <ElementFile Location="PCenter\ProcessingCenter.webpart" />
             </ElementManifests>
           </Feature>
share|improve this question
    
Please provide some more details, with only this much detail only wild guess is possible, provide your feature.xml file and any other details, one wild guess I can give you right now - are you deploying your assemblies to GAC? if not then please do so and check if this error appears –  Diptarag Oct 8 '12 at 9:21
    
As Diptarag said, we need more info. The problem isn't specific to one thing, it could be a missing module file, a missing page/list/other reference in codebehind, etc... You should try to include some info about the feature structure, possibly with some code snipped from the event receiver. –  SPArchaeologist Oct 8 '12 at 10:29
    
I guess i deploy it to Gac (see updates above <Assembly Location="PCenter.dll" DeploymentTarget="GlobalAssemblyCache"> ) –  Lena Oct 8 '12 at 11:31
add comment

3 Answers

For general troubleshooting for errors like this you can perform the following steps:

  • Make sure that diagnostic logging in CA is set to verbose (CA - Monitoring - Reporting - Configure diagnostic logging)
  • Using SharePoint Log Viewer found at http://sharepointlogviewer.codeplex.com/ enable live farm monitoring. The icon looks like the "play" button in the tool bar.
    • Activate your custom site collection feature and wait for the error message.
    • Go back to SharePoint Log Viewer and pause the live monitoring.

This will show you only the relevant logs for you to look at. Pay particular attention to items of Level "Unexpected".

If the correlation ID or the error messages still do not appear in the log then perhaps you may be looking in the wrong folder. Sometimes the log files are stored in a different folder. This can also be verified from CA site.

Please provide the Element XML it will help with identifying the issue.

share|improve this answer
    
Thank you, I checked all categories and set critical event to report to the event log and trace log to verbose and saved it. But still can't fild correlation ID in 14/LOGS.In Sharepoint Log Viewer my Correlation ID didn't appear... Trace Log appear here %CommonProgramFiles%\Microsoft Shared\Web Server Extensions\14\LOGS\ as mentioned in CA –  Lena Oct 8 '12 at 11:05
add comment

Go to the IIS virtual directory nd modify the web.config file. Set

    <customErrors mode="Off" />
     CallStack="true"
     <compilation batch="false" debug="true">

This way you will get a more useful error which can help in identifying the real issue.

share|improve this answer
    
I have already done it. But stil get this short message –  Lena Oct 8 '12 at 9:27
    
Then configure diagnostic logging in your CA site by following Central Administration - Monitoring - Reporting - Configure diagnostic logging - SharePoint Foundation. Set Least critical event to report to the trace log to verbose. Try activating the feature and look for the correlation ID in logs. –  Nadeem Yousuf Oct 8 '12 at 9:33
    
I checked all categories and set critical event to report to the event log and trace log to verbose and saved it. But still can't fild correlation ID in 14/LOGS –  Lena Oct 8 '12 at 9:39
    
try to reset IIS –  MicroSumol Jan 4 '13 at 21:40
add comment

Deploy this solution to the same Web Application of the Site Collection where you are trying to activate this Feature.

This issue generally arises if the assemblies which are referenced in the solution are missing at virtual directory of the Web Application (Usually assemblies in 'Bin' folder of the IIS Web Application, C:\inetpub\wwwroot\wss\VirtualDirectories\\bin)

-- Hope this might help someone out there as this post is quite old.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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