在Windows 10上的IIS使MVC 6部署 [英] Making MVC 6 deploy on IIS on Windows 10

查看:259
本文介绍了在Windows 10上的IIS使MVC 6部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的 1.0.0-RC1-UPDATE1 并在IIS防爆preSS它工作正常,但是当我部署到IIS,我得到一个空白页。没有。没有错误,没有在事件日志 - !这是即使是香草MVC6 web应用同样的问题,所以我怀疑这是我的code

I'm using 1.0.0-rc1-update1 and on IIS Express it works fine, but when I deploy to IIS, I get a blank page. Nothing. No errors, nothing in the event log - this is the same problem even for a vanilla MVC6 web application, so I doubt it's my code!

我指着应用到 WWW 发布的文件夹下的文件夹中,我有我的应用程序池设置为.NET 4

I am pointing the application to the www folder under the published folder and I have my app pool set up for .net 4

敢来走出IIS的错误,但是这是我的一个新的!
会有人能够帮助?或者,也许至少指向我的一些日志文件?

Am quite used to getting errors out of IIS, but this is a new one on me! Would anyone be able to help? Or maybe at least point me at some log files?

在这里输入的形象描述

在这里输入的形象描述

推荐答案

感谢@Ruslan为您的网站的帮助。

Thanks @Ruslan for your help here.

您所提供的链接有答案了它作为当前字周围Beta8,这也似乎是围绕一个必要的工作RC1!

The link you provided had the answer off it as a "current word around for Beta8", which also appears to be a necessary work around for RC1!!!

https://github.com/aspnet/Hosting/issues/416

基本上,黑屏我得到实际上是404(我得到了通过添加更多的信息 app.UseStatus codePages(); 我启动

Basically, the "blank screen" I was getting was actually a 404 (I got more info by adding app.UseStatusCodePages(); to my startup.

变通方法是重命名的配置方法(我把它叫做Configure1按照上面的链接),并创建一个存根配置方法,通过app.Map间接调用它()方法:

The work around was to rename the Configure method (I called it Configure1 as per the link above) and to create a stub Configure method to call it indirectly via the app.Map() method:

    public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
    {
        app.Map("/GilLecORM", (app1) => this.Configure1(app1, env, loggerFactory));
    }

现在的工作 - 但显然这是对RC一个相当大的问题:)

It now works - but clearly this is a fairly big problem for the RC :)

这篇关于在Windows 10上的IIS使MVC 6部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆