已答覆 Audit logs runtime error?

  • Wednesday, May 23, 2012 5:29 PM
     
     

    So I enabled auditing for a few things, but when I try to view audit logs the page loads with a runtime error.  Any suggestions?  Did I miss any steps?

    Thanks,

    L

All Replies

  • Wednesday, May 23, 2012 6:15 PM
     
     
    What is the error?

    Jason Warren
    Infrastructure Specialist

  • Wednesday, May 23, 2012 6:49 PM
     
      Has Code

    Server Error in '/' Application.

    Runtime Error

    Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed.

    Details: To enable the details of this specific error message to be viewable on the local server machine, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "RemoteOnly". To enable the details to be viewable on remote machines, please set "mode" to "Off".
    <!-- Web.Config Configuration File -->
    
    <configuration>
        <system.web>
            <customErrors mode="RemoteOnly"/>
        </system.web>
    </configuration>

    Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
    <!-- Web.Config Configuration File -->
    
    <configuration>
        <system.web>
            <customErrors mode="On" defaultRedirect="mycustompage.htm"/>
        </system.web>
    </configuration>

  • Wednesday, May 23, 2012 7:54 PM
     
     Answered
    Look in your SharePoint logs.  Odds are you are trying to generate a report which has no data in it.  For some reason, SharePoint decides to throw a server error instead of handling this gracefully.

    Bob Guidinger

    • Marked As Answer by Slynne212 Wednesday, May 23, 2012 10:00 PM
    •  
  • Wednesday, May 23, 2012 8:11 PM
     
     
    should it have data if i enabled auditing on list/library items at site collection and opened a few as a test?  also, where are the sharepoint logs located?  im a real n00b :<
  • Wednesday, May 23, 2012 9:32 PM
     
     Answered

    Hmm, the audit logs should have data.

    The SharePoint logs are conveniently located in the SharePoint Root folder: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS


    Bob Guidinger

    • Marked As Answer by Slynne212 Wednesday, May 23, 2012 10:00 PM
    •  
  • Wednesday, May 23, 2012 9:41 PM
     
     
    cool, any chance i can talk you into teaching me what to look for?  or is that really pushin my luck?
  • Wednesday, May 23, 2012 9:50 PM
     
     Answered

    Those logs can be quite daunting, eh?

    You'll probably want to look for an Unexpected event.  I would try running a report, getting the error, and then opening the most recently modified log file.  You should find the error at the bottom (or really close to the bottom) of the file.

    Edit: For example, I see that for Category "Runtime" there is an "Unexpected" event with the message: "Microsoft.SharePoint.SPException: Reports cannot be stored at ''".  This is because I didn't pick where to store the report when I tried running it.  You'll see something similar in your logs.


    Bob Guidinger


    • Edited by Bob Guidinger Wednesday, May 23, 2012 9:52 PM Added example.
    • Edited by Bob Guidinger Wednesday, May 23, 2012 9:52 PM
    • Marked As Answer by Slynne212 Wednesday, May 23, 2012 10:00 PM
    •  
  • Wednesday, May 23, 2012 10:00 PM
     
     

    Sweet, you've been super helpful!  Thanks so much for lending your expertise! :)

    All the best,

    Lynne

  • Wednesday, May 23, 2012 10:04 PM
     
     

    anyone have any insight on the following?:

    'System.ArgumentException: The specified web does not contain a reporting metadata list.'

    I've worked with metadata, but unfamiliar with the concept of reporting metadata lists...

  • Wednesday, May 23, 2012 10:25 PM
     
     Answered

    This knowledge base article should help you out: http://support.microsoft.com/kb/949605

    Basically, you need to enable the Reporting feature.


    Bob Guidinger

    • Marked As Answer by Slynne212 Wednesday, May 23, 2012 10:35 PM
    •  
  • Wednesday, May 23, 2012 10:35 PM
     
     
    you're awesome, thank you