English 中文(简体)
空白页/直线问题,编号为p.net mvc 2iis7
原标题:blank pages/routing issue with asp.net mvc 2 iis7 integrated windows7 vs2010

我一直在寻找一些职位,似乎仍然可以找到一个直截了当的答案,或至少一个为我工作的答案。 从我可以说的那类路由问题。 事实上,我只是其中一部分。 当我访问我的任何网页时,它就回过了一个没有数据的空白页。

另外,我还在利用7台综合机把VS2010作为窗口7上的p.net mvc2。 使用二舍七综合系统的原因是,当我向我的达达达达德提供商公布网站时,我想能够在公布网站后在当地复制安全许可,不应有任何令人惊讶的问题。

我尝试使用以下网址上描述的Default.aspx trick:ASP.net MVC on IIS 7 re blank page,但同一问题只有一个根页,没有其他路线。

I have also tried crating a empty route described here routing to blank request in mvc asp.net using IIS 6.0 and here I am getting a blank page while deploying MVC application on IIS

I am also using the Route debugger found here http://haacked.com/archive/2008/03/13/url-routing-debugger.aspx

在我访问。 这条路 the倒,显示 fall浅。

http://j.imagehost.org/0476/routes.png

增 编

路线。 MapRoute(“Default2”,“”,新的{控制器=“Home”,行动=“Index”};

超过或低于总航道

routes.MapRoute( "Default", // Route name "{controller}/{action}/{id}", // URL with parameters new { controller = "Home", action = "Index", id = UrlParameter.Optional }); // Parameter defaults

当我访问。 这条路 the倒了浮桥,显示出了 fall

http://a.imagehost.org/0115/routes2.png

是否有其他东西可以试图让我的网页适当展示? 象很多人一样,有同样的问题,但是有二分六种经典或旧的乳房类的人很少看到有人用我配置的VS2010年VS.net mvc2在窗户上用二s7集成。

任何帮助都得到了很大的启发。

问题回答

必须在“网络服务器”(IIS)的作用中增加“HTTP Errors”和“HTTP Redirection”服务。 如果你放弃像CSS和Javascript这样的固定内容,也使“内容”服务成为可能。





相关问题
WebForms and ASP.NET MVC co-existence

I am trying to make a WebForms project and ASP.NET MVC per this question. One of the things I ve done to make that happen is that I added a namespaces node to the WebForms web.config: <pages ...

Post back complex object from client side

I m using ASP.NET MVC and Entity Framework. I m going to pass a complex entity to the client side and allow the user to modify it, and post it back to the controller. But I don t know how to do that ...

Create an incremental placeholder in NHaml

What I want to reach is a way to add a script and style placeholder in my master. They will include my initial site.css and jquery.js files. Each haml page or partial can then add their own required ...

asp.net mvc automapper parsing

let s say we have something like this public class Person { public string Name {get; set;} public Country Country {get; set;} } public class PersonViewModel { public Person Person {get; ...

structureMap mocks stub help

I have an BLL that does validation on user input then inserts a parent(PorEO) and then inserts children(PorBoxEO). So there are two calls to the same InsertJCDC. One like this=>InsertJCDC(fakePor)...

ASP.NET MVC: How should it work with subversion?

So, I have an asp.net mvc app that is being worked on by multiple developers in differing capacities. This is our first time working on a mvc app and my first time working with .NET. Our app does not ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

热门标签