panoramix7 Posted March 18, 2009 Report Share Posted March 18, 2009 Καλημέρα, αντιμετωπίζω πρόβλημα με εναν χρήστη όταν προσπαθεί να μπεί σε ενα ΣΥΓΚΕΚΡΙΜΕΝΟ site. Server Error in '/' Application. -------------------------------------------------------------------------------- Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [NullReferenceException: Object reference not set to an instance of an object.] Microsoft.SharePoint.WebPartPages.ListViewWebPart.OnPreRender(EventArgs e) +333 System.Web.UI.Control.PreRenderRecursiveInternal() +80 System.Web.UI.WebControls.WebParts.WebPart.PreRenderRecursiveInternal() +42 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842 Ο χρήστης έχει όλα τα απαραίτητα δικαιώματα για το συγκεκριμένο site. Κάτι άλλο που παρατήρησα είναι πως, αν προσθέσω ενα νέο χρήστη στα permissions, δεν μπορεί ούτε αυτός να μπεί στο site και μου επιστρέφει αυτό ακριβώς το μύνημα. Στα υπόλοιπα site κάτω απο αυτό έχει την δυνατότητα να μπεί... Δεν κατάφερα να βρώ κάποια λύση στην MS. Κάθε βοήθεια ευπρόσδεκτη.. Link to comment Share on other sites More sharing options...
pkanavos Posted March 18, 2009 Report Share Posted March 18, 2009 Μήπως στην πρώτη σελίδα του site υπάρχει κάποιο custom web part ή κάποιο custom template? Στην πρώτη κιόλας γραμμή του stack trace φαίνεται ότι το πρόβλημα εμφανίστηκε μέσα στην OnPreRender του ListViewWebPart. Αυτό το control όμως είναι το βασικό control το οποίο εμφανίζει όλες τις λίστες του Sharepoint, οπότε είναι μάλλον απίθανο να έχει πρόβλημα. Είναι πιο πιθανό το site να χρησιμοποιεί κάποιο custom web part βασισμένο στο ListViewWebPart το οποίο προκαλεί το πρόβλημα. Παρόμοια περίπτωση, είναι το site να χρησιμοποιεί μεν ένα απλό ListViewWebPart αλλά να του περάσει κάποιο custom template, το οποίο έχει πρόβλημα. Δεν αποκλείεται βέβαια να είναι κάποιο άλλο το πρόβλημα. Σε κάθε περίπτωση, θα πρέπει να γυρίσεις για λίγο το logging του Sharepoint στο Verbose για να δεις τί συμβαίνει. Όσο και αν φαίνονται μεγάλα τα logs που δημιουργεί το Sharepoint στην κανονική του λειτουργία, δεν είναι παρά το default setting. Αν γυρίσεις το logging στο verbose, θα σου γράψει ακόμα και τα sql statements που εκτελεί. Προσοχή όμως, καθώς τα Logs θα γίνουν πραγματικά τεράστια. Link to comment Share on other sites More sharing options...
Recommended Posts