NullReference Exception when viewing Content page in Orchard CMS
问题 In OrchardCMS v1.8.1.0, I receive the following error message when clicking on the Content link (/Admin/Contents/List) file name Modules\Orchard.MediaLibrary\Views\Parts\Document.SummaryAdmin.cshtml : Object reference not set to an instance of an object. Source Error: Line 3: @{ Line 4: DocumentPart documentPart = Model.ContentPart; //The following line throws the exception Line 5: var mediaPart = ((ContentItem)Model.ContentItem).As<MediaPart>(); Line 6: } Line 7: Stack trace: