2013-11-27 24 views
2

我創建了一個內容類型和投影來查看內容類型,但在嘗試訪問投影時,我收到以下異常:果園形狀類型ResizeMediaUrl未發現異常,MediaLibrary組件不工作

Server Error in '/' Application. 

Shape type ResizeMediaUrl not found 

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: Orchard.OrchardException: Shape type ResizeMediaUrl not found 

Source Error: 


Line 3: @{ 
Line 4:  ImagePart imagePart = Model.ContentPart; 
Line 5:  var mediaPart = ((ContentItem)Model.ContentItem).As<MediaPart>(); 
Line 6: }   
Line 7: 

Source File: c:\inetpub\wwwroot\Staging\Themes\BodyLogicMD\Views\Parts.Image.Summary-Image.cshtml Line: 5 

在測試性能時,媒體庫被禁用並啓用了多次,但現在它和它的所有依賴項模塊都已啓用。該網站也從服務器內的一個位置移動到另一個位置,但媒體文件夾和它的結構處於相同的果園結構中。

當媒體庫模塊禁用時,將顯示投影,但沒有與之關聯的圖片。當啓用上述例外發生時。

請指教,

感謝,

亞歷克斯。

+0

什麼? –

回答