阿里云服务器的坑=====部署EF+MVC

本文涉及的产品
云服务器 ECS,每月免费额度280元 3个月
云服务器ECS,u1 2核4GB 1个月
简介:

异常处理汇总 ~ 修正果带着你的Net飞奔吧!http://www.cnblogs.com/dunitian/p/4599258.html

先参考:http://www.cnblogs.com/dunitian/p/4981572.html

 

网站部署好后==>继续404

网站日记如下:

2015-11-19 23:51:52,119 [15] ERROR log - System.InvalidOperationException: 未找到具有固定名称“System.Data.SqlClient”的 ADO.NET 提供程序的实体框架提供程序。请确保在应用程序配置文件的“entityFramework”节中注册了该提供程序。有关详细信息,请参阅 http://go.microsoft.com/fwlink/?LinkId=260882。
在 System.Data.Entity.Infrastructure.DependencyResolution.DefaultProviderServicesResolver.GetService(Type type, Object key)
在 System.Data.Entity.Infrastructure.DependencyResolution.CachingDependencyResolver.<>c__DisplayClass1.<GetService>b__0(Tuple`2 k)
在 System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
在 System.Data.Entity.Infrastructure.DependencyResolution.CachingDependencyResolver.GetService(Type type, Object key)
在 System.Data.Entity.Infrastructure.DependencyResolution.ResolverChain.<>c__DisplayClass3.<GetService>b__0(IDbDependencyResolver r)
在 System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
在 System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
在 System.Data.Entity.Infrastructure.DependencyResolution.ResolverChain.GetService(Type type, Object key)
在 System.Data.Entity.Infrastructure.DependencyResolution.RootDependencyResolver.GetService(Type type, Object key)
在 System.Data.Entity.Infrastructure.DependencyResolution.ResolverChain.<>c__DisplayClass3.<GetService>b__0(IDbDependencyResolver r)
在 System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
在 System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
在 System.Data.Entity.Infrastructure.DependencyResolution.ResolverChain.GetService(Type type, Object key)
在 System.Data.Entity.Infrastructure.DependencyResolution.CompositeResolver`2.GetService(Type type, Object key)
在 System.Data.Entity.Infrastructure.DependencyResolution.DbDependencyResolverExtensions.GetService[T](IDbDependencyResolver resolver, Object key)
在 System.Data.Entity.Utilities.DbProviderFactoryExtensions.GetProviderServices(DbProviderFactory factory)

System.Data.SqlClient ==>去项目中找没看见,估计就是不完全支持ef,或者dal层有问题,后来看见dal层有个EntityFramework.SqlServer.dll 发布的bin里面并没有,于是copy了一个,就可以了。。。。。

这个是阿里云木有的一些dll

ok了~

www.dkill.net

相关实践学习
一小时快速掌握 SQL 语法
本实验带您学习SQL的基础语法,快速入门SQL。
7天玩转云服务器
云服务器ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,可降低 IT 成本,提升运维效率。本课程手把手带你了解ECS、掌握基本操作、动手实操快照管理、镜像管理等。了解产品详情:&nbsp;https://www.aliyun.com/product/ecs
目录
相关文章
|
8月前
|
弹性计算 安全 Java
关于将Web项目部署到阿里云服务器-5个步骤搞定
关于将Web项目部署到阿里云服务器-5个步骤搞定
1297 0
|
弹性计算 安全 Java
关于如何将Web项目部署到阿里云ecs服务器-5个步骤搞定
关于如何将Web项目部署到阿里云ecs服务器-5个步骤搞定
关于如何将Web项目部署到阿里云ecs服务器-5个步骤搞定
|
弹性计算 安全 Java
怎样将Web项目部署到阿里云服务器-5个步骤
怎样将Web项目部署到阿里云服务器-5个步骤
怎样将Web项目部署到阿里云服务器-5个步骤
|
NoSQL Java 关系型数据库
在云服务器上从零开始部署Spring项目
注意环境的版本,以及开放端口等问题!
|
弹性计算 监控 Java
初次尝试ecs部署spring boot个人小项目
本学期在学习课程中需要实现高级编程语言设计一个app或者web管理系统,我选择用spring boot写了一个博客管理系统,初次尝试了在aliyun部署项目
初次尝试ecs部署spring boot个人小项目
|
Web App开发 应用服务中间件 数据库
如何在云服务器上部署你的web项目和一些常见问题
第一次写博客,写的不好的地方请见谅。 1、首先你的云服务器一定要打开 2、然后远程桌面连接你的云服务器(它就像是一台电脑一样)通过给你的外网ip地址连接,密码如果给你了的话你就用给你的密码登录,如果没有给密码就重置密码(这个可以在你的云服务器的管理中心里面弄),我的是百度云的,找不到重置密码的可以看图: 3、服务器连接上之后你会发现里面什么都没有,就是一台新的电脑,既然想让它运行web项目那你首先就需要搭建好项目需要运行的环境。
2446 0
|
Web App开发 Java 应用服务中间件
小白第一次在阿里云服务器上部署web项目
做web项目开发的时候,以前都是大牛把框架搭建好,自己往里面写代码。久而久之,小白也想自己搭框架,自己在服务器上部署。所以在本地搭建了一个基于NetBeans+spring+Mybatis+MVC 的web项目框架,搭建过程可参考之前的博客。
6804 0
|
前端开发 数据库 存储
MVC5+EF6 入门完整教程11--细说MVC中仓储模式的应用
原文:MVC5+EF6 入门完整教程11--细说MVC中仓储模式的应用   摘要: 第一阶段1~10篇已经覆盖了MVC开发必要的基本知识。 第二阶段11~20篇将会侧重于专题的讲解,一篇文章解决一个实际问题。
1284 0