Visual Studio 2012在添加新的ASP.NET MVC控制器时冻结 [英] Visual Studio 2012 Freezes while adding a new ASP.NET MVC Controller

查看:109
本文介绍了Visual Studio 2012在添加新的ASP.NET MVC控制器时冻结的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的MVC 4项目位于分布式文件系统(DFS)上.一切都像魅力一样,但是最近我发现创建一个控制器(右键单击Controllers-> Add-> Controller ...)会冻结VS.一会儿之后,弹出窗口显示"VS is busy ...",并且它从未完成任何操作.

My MVC 4 project is located on Distributed File System (DFS). Everything works like a charm, but recently I found that creating a controller (right click on Controllers -> Add - > Controller...) freezes VS. After a while popup shows "VS is busy..." and it never completes an action.

因此,问题是:以前它可以正常工作,但现在冻结了.

So, the problem is: previously it worked OK and now it freezes.

创建控制器的唯一方法是转到添加-新项目->控制器",但是我缺少向导添加的一些详细信息.

The only way I can create a controller is to go "Add - New Item - > Controller", but I'm missing some nice details added by wizard.

如果我将项目移动到本地驱动器中,则它可以正常工作.

If I move project into my local drives, it works without a problem.

我现在找到的最佳链接是添加控制器MVC4时Visual Studio 2012崩溃类似问题,但不适用于此问题.

The best link I've found by now is this. Similar issues are reported to Microsoft but there is no clear solution. Also, Visual Studio 2012 crash on adding controller MVC4 is similar question but not applicable for this problem.

当然,包含项目文件的网络位置已设置为受信任".

Sure, network location with project's files is set as trusted.

事件查看器中没有有用的信息.操作系统是Win7.

No useful info in event viewer. OS is Win7.

有人遇到类似问题吗?

Anyone with similar problem?

推荐答案

感谢管理员,我们提供了一个解决方案. 仅在映射的驱动器上发生问题.

Thanks to my admin, we have a solution. The problem occurs only with mapped drives.

因此,请使用绝对路径而不是映射的驱动器!

Therefore, use absolute path instead of mapped drive!

对我来说,问题已解决.当然,问题仍然存在–为什么会这样?

For me, the problem has been solved. Sure, the question remains – why is that so?

这篇关于Visual Studio 2012在添加新的ASP.NET MVC控制器时冻结的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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