Orchardcms Orchard CMS主题图像未显示
我正在使用正确的helper调用获取主题中图像的URL:Orchardcms Orchard CMS主题图像未显示,orchardcms,Orchardcms,我正在使用正确的helper调用获取主题中图像的URL: @Url.Content(Html.ThemePath(WorkContext.CurrentTheme, "/Content/Images/my-image.png") …我知道图像就在那里并且可读。然而,当我试图浏览到它时,它却没有出现!为什么会发生这种情况?来自文档(): 要启用文件服务,包含静态文件(如样式表、图像或JavaScript代码)的每个文件夹都应包含包含以下内容的web.config文件: <?xml ve
@Url.Content(Html.ThemePath(WorkContext.CurrentTheme, "/Content/Images/my-image.png")
…我知道图像就在那里并且可读。然而,当我试图浏览到它时,它却没有出现!为什么会发生这种情况?来自文档():
要启用文件服务,包含静态文件(如样式表、图像或JavaScript代码)的每个文件夹都应包含包含以下内容的web.config文件:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.web>
<httpHandlers>
<!-- iis6 - for any request in this location,
return via managed static file handler -->
<add path="*" verb="*" type="System.Web.StaticFileHandler" />
</httpHandlers>
</system.web>
<system.webServer>
<handlers accessPolicy="Script,Read">
<!-- iis7 - for any request to a file exists on disk,
return it via native http module.
accessPolicy 'Script' is to allow for a managed 404 page. -->
<add name="StaticFile" path="*" verb="*" modules="StaticFileModule"
preCondition="integratedMode" resourceType="File"
requireAccess="Read" />
</handlers>
</system.webServer>
</configuration>