使用问题ASP.NET MVC RC1添加视图对话框强类型的视图 [英] Problem using Add View dialog in ASP.NET MVC RC1 for strongly typed view

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

问题描述

我喜欢与RC1发布了新的Add View对话框。如果指定一个视图数据类,它为您生成一个脚手架视图。这似乎很好地工作与我的解决方案内的项目中定义的类。我的一些领域类从在外部组件定义(在我的web项目中引用)的基类继承。当我指定这些领域类之一,我得到一个错误。 Visual Studio是报告在外部基类TypeLoadException。

I like the new Add View dialog that was released with RC1. If you specify a view data class, it generates a scaffolded view for you. It seems to work fine with classes defined in projects within my solution. Some of my domain classes inherit from a base class that is defined in an external assembly (and referenced in my web project). I get an error when I specify one of these domain classes. Visual Studio is reporting a TypeLoadException on the external base class.

我做了讨论procmon一点点调试,发现它在寻找基类的DLL,其他地方,一个临时文件夹中。该文件夹并包含带有我的派生的域模型类的DLL。我没有看到基类的DLL。所以为了好玩,我也把它抄了,瞧,我可以添加视图。

I did a little debugging with ProcMon and found that it was looking for the base class DLL in, among other places, a temporary folder. That folder did contain the DLL containing my derived domain model class. I did not see the base class's DLL. So for fun, I copied it there and voila, I could add the view.

这是一个错误吗?

推荐答案

是的,这是一个错误。请把它放在 HTTP://$c$cplex.com/aspnet

Yes this is a bug. Please file it on http://codeplex.com/aspnet

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

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