Asp.Net-MVC应用程序奄奄一息 [英] Asp.Net-MVC application dying

查看:65
本文介绍了Asp.Net-MVC应用程序奄奄一息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有与Asp.NET MVC应用程序一个奇怪的问题。

I have a strange issue with an Asp.NET MVC application.

在IIS 7.5使用Asp.NET MVC 3 preVIEW 1 - 集成

Using Asp.NET MVC 3 Preview 1 on IIS 7.5 - Integrated

在构建应用程序后,一切运行正常。再经过一些时间随机量(或之后有时更新视图或js文件)申请死亡。

After building the application everything runs fine. Then after some random amount of time (or sometimes after updating a view or js file) the application dies.

含义,请求根页,我得到的403错误,并要求任何其他网页,我得到一个404错误。

Meaning, requesting the root page, I get the 403 error and requesting any other page I get a 404 error.

在一个重建一切一会儿再正常工作,直到它再次死亡。

After a rebuild everything works fine again for a little while until it dies again.

我在两台不同的机器的发展看到了这个。另外,我有两个开发机器的另一个应用程序非常类似(MVC 3,IIS等),这样一个没有问题的运行。我已经考察了详细的配置文件,看不出显着差异的东西。

I am seeing this on two different development machines. Also, I have another application which is very similar (MVC 3, IIS etc) on both dev machines and this one runs without problem. I have inspected the config files in detail and cannot see anything of notable difference.

有谁知道什么可能会导致应用程序死亡或到哪里寻找更多信息吗? (我仍然可以访问elmah.axd虽然没有信息是存在的)。

Does anyone know what could cause an application to die or where to look for further information? (I can still access elmah.axd though no information is there).

推荐答案

有没有太多去这里,但是403和404是线索,至少ASP.NET路由不工作;由于Web服务器认为你想做一个目录浏览,404因为你的请求没有一个有效的相应资源403回来了。

There's not much to go on here, but the 403 and 404 are clues that at least ASP.NET routing is not working; 403 is coming back because the web server thinks you want to do a directory browse, 404 because your request doesn't have a valid corresponding resource.

由于您使用MVC的新版本,我怀疑该问题可能碱液那里。当你的错误,你可以浏览到一个普通.aspx页面中?它是否正确执行服务器端code?

Since you are using the new version of MVC, I would suspect the issue may lye there. When you get the error condition, can you browse to a regular .aspx page? Does it execute server side code correctly?

您在IIS 7.5主办的网站,而不是仅仅内置在Visual Studio的Web服务器,对不对?是否有可能打开监控/事件记录,看是否IIS正在一击?

You have the site hosted in IIS 7.5, not just the built in Visual Studio web server, right? Is it possible to turn on monitoring/event logging to see if IIS is taking a hit?

对于我没有任何实际的答案道歉,听起来像是你有一个棘手的问题进行调试。

I apologize for not having any actual answer, sounds like you have a tough issue to debug.

祝您好运!

这篇关于Asp.Net-MVC应用程序奄奄一息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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