2

我创建了一个内容类型和一个投影来查看该内容类型,但是在尝试访问该投影时,我得到了以下异常:

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 

媒体库在测试性能时被禁用和启用了几次,但现在它和它的所有依赖模块都被启用了。该站点也在服务器内从一个位置移动到另一个位置,但媒体文件夹及其结构处于相同的果园结构中。

当媒体库模块被禁用时,会显示投影,但没有与之关联的图片。启用时会发生上述异常。

请指教,

谢谢,

亚历克斯。

4

1 回答 1

1

这里...

https://stackoverflow.com/a/28671852/1814343

这都是关于将 附加Media part到您的内容类型,并将其 Stereotype 设置为Media

于 2015-04-18T05:03:14.047 回答