很长的读盘时间为MVC3初始视图 [英] Very long load times for the initial view in MVC3

查看:105
本文介绍了很长的读盘时间为MVC3初始视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个间歇性的问题,即无论大家认为我设置为我的观点出发,为了我的MVC3项目,在VS 2010中,我得到非常长的加载时间长。我现在在看超过2分钟,没有任何东西,除了浏览器等待发生。我与当地的DB我开发的机器上工作,并构建时间为项目快。如果我停止VS调试,没有我的code的运行。

I have an intermittent problem where whatever view I set as my starting view, for my MVC3 project, in VS 2010, I get extremely long long load times. I'm now looking at over 2 minutes without anything happening except the browser waiting. I am working with a local DB on my dev machine, and the build time for the project is quick. If I stop to debug in VS, none of my code is running.

当我在VS,这需要很长的,以及停止调试,然后我终于在浏览器中404。这可能是造成这一点,我可以采取什么措施来诊断和解决这个问题?

When I stop debugging in VS, which takes very long as well, then I finally get a 404 in the browser. What could be causing this, and what measures can I take to diagnose and resolve this issue?

我使用的是VS内置的Web服务器,而不是IIS和VS 2010专业版,所以没有选择的IntelliTrace

I am using the VS built-in web server, not IIS, and VS 2010 Pro, so no IntelliTrace options.

:当我尝试了机重新启动,我的机器似乎挂在了注销的消息。我试图重新启动,因为我遇到的问题甚至访问我的C:\\ Development文件夹,也无法解释的悬挂。重启后,在试图再次运行该项目,我立刻得到了一个编译错误。这个错误在那里从重新启动之前,我怀疑它有东西做的彻底垮台,但它是在一个视图中一个简单的拼写错误的属性名称。

NEW: When I tried a machine restart, my machine seemed to hang up on the 'logging off' message. I tried the restart because I experienced problems even accessing my C:\Development folder, also unexplained hanging. After the restart, on trying to run the project again, I immediately got a compilation error. That error was there from before the restart, and I suspect it had something to do with the total meltdown, but it's a simple misspelled property name in a view.

固定编译错误之后,事情恢复正常。

After fixing the compilation error, things are back to normal.

推荐答案

尝试<一个href=\"http://connect.microsoft.com/VisualStudio/feedback/details/535799/debugging-mvc-is-very-very-slow\"相对=nofollow>关闭的IntelliTrace

这篇关于很长的读盘时间为MVC3初始视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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