asp.net-mvc – 如何将SQL CE 4 CTP部署到共享主机?

如何使用EF4将sql CE 4.0部署到ASP.NET MVC 2.0的共享托管服务提供商?

我在我的bin文件夹中包含System.Data.sqlServerCe.dll和amd64 x86目录,但是不断找到“.net提供程序”.我意识到它目前在CTP,但这只是为了测试目的.我的项目主机配置为.net 4.0

解决方法

使用Visual Studio 2010,现在可以通过使用“可部署依赖关系”将sql CE 4部署到共享托管环境.您不需要手动将dll复制到您的bin文件夹或修改您的web.config.这两个都是为你完成的.

“We can include required assemblies in a Web site or Web Application project with a few simple steps. You right click the project node in Solution Explorer and select ‘Add Deployable Dependencies…’ context menu item.”

Deployable Dependencies http://blogs.msdn.com/cfs-filesystemfile.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-63-56-metablogapi/4403.MenuItem_5F00_1.png

(http://blogs.msdn.com/b/webdevtools/archive/2011/01/06/how-to-bin-deploy-sql-compact-edition-4-0-and-razor-web-projects.aspx)

相关文章

### 创建一个gRPC服务项目(grpc服务端)和一个 webapi项目(...
一、SiganlR 使用的协议类型 1.websocket即时通讯协议 2.Ser...
.Net 6 WebApi 项目 在Linux系统上 打包成Docker镜像,发布为...
一、 PD简介PowerDesigner 是一个集所有现代建模技术于一身的...
一、存储过程 存储过程就像数据库中运行的方法(函数) 优点:...
一、Ueditor的下载 1、百度编辑器下载地址:http://ueditor....