ASP.NET MVC添加视图对话闭幕 [英] ASP.NET MVC Add View Dialog closing

查看:171
本文介绍了ASP.NET MVC添加视图对话闭幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近一个大的项目,我的工作开始有与添加视图对话框中的一个问题。当点击添加强类型的视图复选框,微调出现的第一次约一两秒钟,然后整个对话只是关闭并消失。如果我打开对话框,再次单击该按钮,它只是再次迅速关闭。

Recently a large project I work on started having a problem with the Add View dialog. When clicking the Add Strongly-typed View checkbox, the spinner comes up the first time for about a second or two, and then the entire dialog just closes and disappears. If I open the dialog and click the button again, it just closes again quickly.

该项目使用ASP.NET MVC 2,我已经安装了SP1 VS2010与或没有安装MVC3工具更新发生此问题。它仅与此项目发生,我已经复制在2个不同的开发机器的问题。如果我创建一个新的MVC2或MVC3项目,这不会发生在所有,也不做任何其他的小我有中型项目。

The project is using ASP.NET MVC 2, I have installed VS2010 SP1 and this problem occurs with or without the MVC3 tools update installed. It only happens with this project, and I have replicated the problem on 2 different development machines. If I create a new MVC2 or MVC3 project, this does not happen at all, nor do any other small to medium sized projects I have.

我可以创造一个普通视图,并更改为强烈的自己类型的,所以有一种解决方法,但这仍然是pretty烦人。任何想法可能会导致这或如何解决?

I can of create a regular view and change it to strongly typed by myself, so there is a workaround, but this is still pretty annoying. Any ideas what could be causing this or how to fix it?

推荐答案

您是否使用版本控制?确保所有您的项目依赖于组件是同步的(即项目本身或者其引用的程序集引用)。我刚刚进入这个运行更新从SVN一堆项目,重建后的一些(既添加视图和添加控制器的问题)。我重建几个库后,我的MVC项目取决于这个问题是固定的。

Do you use version control? Make sure all the assemblies that your project depends on (i.e. referenced by the project itself or by its referenced assemblies) are in sync. I've just run into this (both "Add View" and "Add Controller" problems) after updating a bunch of projects from SVN and rebuilding some. The issue was fixed after I rebuilt several libraries that my MVC project depends on.

这篇关于ASP.NET MVC添加视图对话闭幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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