不受支持的上下文键入mvc [英] UnSupported Context Type in mvc

查看:66
本文介绍了不受支持的上下文键入mvc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我在我的系统中安装了mvc。使用Model First和Entity Framework 4.1。当我创建控制器时,它显示错误消息不支持的上下文类型。我在谷歌搜索但我没有找到实际的解决方案。是我的安装问题还是问题..



我认为有关实体框架版本的问题。我的操作系统是xp.so我们添加了额外的powershellpackage来运行mvc

当我尝试安装mvcscaffolding时显示如下信息..

安装-Package MvcScaffolding 
试图解决依赖'T4Scaffolding'。
尝试解析依赖关系'EntityFramework(≥4.1.10311.0)'。
您正在从Microsoft下载EntityFramework,其许可协议可从http://go.microsoft.com/fwlink/?LinkId=224682获取。检查软件包是否有其他依赖关系,这可能与他们自己的许可协议一起提供。您对软件包和依赖项的使用即表示您接受其许可协议。如果您不接受许可协议,请从设备中删除相关组件。
已成功安装'EntityFramework 4.1.10715.0'。
成功安装'T4Scaffolding 1.0.5'。
成功安装'MvcScaffolding 1.0.6'。
从MvcApplication2成功删除了'EntityFramework 4.1.10331.0'。
成功将'EntityFramework 4.1.10715.0'添加到MvcApplication2。
成功将T4Scaffolding 1.0.5添加到MvcApplication2。
成功将MvcScaffolding 1.0.6添加到MvcApplication2。
成功卸载'EntityFramework 4.1.10331.0'。





并且当试图添加控制器时,错误不支持的上下文类型是显示。





期待您的回复..





谢谢,



Aswathi Narayan。

解决方案

看看这个讨论: 类似讨论已解决 [ ^ ]

Hi all,

I installed mvc in my system.Am using Model First and Entity Framework 4.1. And when i am creating controller it shows an error message "UNSUPPORTED CONTEXT TYPE" .I searched in google but i didnt find the actual solution. Is it installation problem or problem from me..

i think the problem regarding the entity framework version . my os is xp.so that we add extra powershellpackage to run mvc
When am trying to install mvcscaffolding the message showing like this..

Install-Package MvcScaffolding
Attempting to resolve dependency 'T4Scaffolding'.
Attempting to resolve dependency 'EntityFramework (≥ 4.1.10311.0)'.
You are downloading EntityFramework from Microsoft, the license agreement to which is available at http://go.microsoft.com/fwlink/?LinkId=224682. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device.
Successfully installed 'EntityFramework 4.1.10715.0'.
Successfully installed 'T4Scaffolding 1.0.5'.
Successfully installed 'MvcScaffolding 1.0.6'.
Successfully removed 'EntityFramework 4.1.10331.0' from MvcApplication2.
Successfully added 'EntityFramework 4.1.10715.0' to MvcApplication2.
Successfully added 'T4Scaffolding 1.0.5' to MvcApplication2.
Successfully added 'MvcScaffolding 1.0.6' to MvcApplication2.
Successfully uninstalled 'EntityFramework 4.1.10331.0'.



and when amtrying to add controller the error "UNSUPPORTED CONTEXT TYPE" is showing.


Expecting your reply..


Thanks,

Aswathi Narayan.

解决方案

Have a look at this discussion: Similar discussion resolved[^]


这篇关于不受支持的上下文键入mvc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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