我们在Windows 8.1上使用Update运行IIS.我们在Orchard CMS第一次设置屏幕,IIS为所有静态内容提供401s.我们已阅读以下内容无济于事:
基于这些,这是我尝试过的不起作用.
什么做的工作虽然是核选择:给每个人的读取权限(除非我们希望继续与乌节设置;然后我们需要给每个人,甚至更多的权限).这使我相信,我一定要给允许一些原则范围小于每个人,但范围比IIS_IUSRS和应用程序池组合的范围更大.
谁/什么是原则?
我们在..\Themes\SafeMode\Styles\site.css上收到401

任务管理器确认该站点作为果园用户运行.

..\Themes\SafeMode\Styles \目录的安全属性为orchard提供了读取权限.

为什么只有当我们向每个人提供"读取"权限时它才有效?
我在Vista上有一个通过IIS7运行的网站.该站点在端口88上运行,因此http:// localhost:88应呈现默认/ Home/Index视图.
这与其他所有视图一样正常.
然而,一个问题是居民.我的脚本路径指向/ Scripts/[FILE],我的CSS路径指向/ Content/[FILE].我的假设是/ Content或/ Scripts文件夹始终位于站点的根目录,因为我无意在虚拟目录设置中运行此站点.每当页面呈现时,它们都没有CSS或脚本!所以一切看起来都很糟糕,脚本显然不起作用,因此许多观点也不起作用.
这是一个非常奇怪的问题,我确信这是因为我缺乏在IIS7下托管内容的知识.我很感激任何人都可以提供帮助.非常感谢!
我刚刚在我的服务器上部署了一个新的MVC4应用程序,并且没有加载一些CSS,JS和图像.例如,Chrome控制台说,
无法加载资源:服务器响应状态为500(内部服务器错误) http://beta.vinformative.com/Content/themes/base/jquery-ui-1.8.20.custom.css
无法加载资源:服务器响应状态为500(内部服务器错误) http://beta.vinformative.com/Content/select2.css
无法加载资源:服务器响应状态为500(内部服务器错误)http://beta.vinformative.com/Scripts/Plugins/select2.js
无法加载资源:服务器响应状态为500(内部服务器错误)http://beta.vinformative.com/Scripts/WineCreate.js
无法加载资源:服务器响应状态为500(内部服务器错误) http://beta.vinformative.com/Content/images/logo_revisedsmall.png
它们都在他们提到的位置的服务器上提供.我整晚都在排除其他事情,所以我的眼睛有点模糊,也许我错过了一些明显的东西.你也可以在beta.vinformative.com的主页上看到这些错误.
以下是我的文件布局的截图:

我正在使用捆绑并在发布模式下将网站发布到文件系统,但我不希望这会影响图像,不是吗?我会继续这个,但任何帮助将不胜感激!谢谢!
编辑请求捆绑配置:谢谢!
public class BundleConfig
{
// For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
"~/Scripts/Libraries/jquery-{version}.js",
"~/Scripts/Plugins/jquery.loaderbutton.js",
"~/Scripts/Plugins/jquery.form.js"));
bundles.Add(new ScriptBundle("~/bundles/base").Include(
"~/Scripts/Feedback.js",
"~/Scripts/Global.js",
"~/Scripts/WineSearch.js"
));
bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
"~/Scripts/Libraries/jquery-ui-{version}.js"));
bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
"~/Scripts/Libraries/jquery.validate*"));
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
"~/Scripts/bootstrap/bootstrap.js",
"~/Scripts/bootstrap/bootbox.js",
"~/Scripts/bootstrap/bootstrap-notify.js"
));
bundles.Add(new ScriptBundle("~/bundles/formhelpers").Include(
"~/Scripts/bootstrap/Form Helpers/bootstrap-formhelpers-countries.js",
"~/Scripts/bootstrap/Form Helpers/bootstrap-formhelpers-countries.en_US.js",
"~/Scripts/bootstrap/Form Helpers/bootstrap-formhelpers-phone.js",
"~/Scripts/bootstrap/Form Helpers/bootstrap-formhelpers-phone.format.js",
"~/Scripts/bootstrap/Form Helpers/bootstrap-formhelpers-states.js",
"~/Scripts/bootstrap/Form Helpers/bootstrap-formhelpers-states.en_US.js"
));
bundles.Add(new ScriptBundle("~/bundles/winedetails").Include(
"~/Scripts/WineDetails.js",
"~/Scripts/Plugins/jquery.uploadifive.js",
"~/Scripts/Plugins/jquery.fileDownload.js",
"~/Scripts/Plugins/jquery.fancybox.js",
"~/Scripts/Plugins/jquery.fancybox-media.js", …Run Code Online (Sandbox Code Playgroud) 我正在构建一个新的Web服务器,我正在重新部署一个在IIS6中运行良好的ASP.Net站点
不幸的是,没有任何图像正在加载(我正在加载404).图像位于正确的文件夹中,我甚至可以导航到网站中的页面.
有什么建议?