如何将SQL CE 4 CTP部署到共享主机? [英] How to deploy SQL CE 4 CTP to shared hosting?

查看:145
本文介绍了如何将SQL CE 4 CTP部署到共享主机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

How do I deploy SQL CE 4.0 with EF4 to a shared hosting provider for ASP.NET MVC 2.0?

我附带了System.Data.SqlServerCe.dll ,和我的bin文件夹中的amd64 + x86目录,但是不断获得.net提供程序找不到。我意识到它目前在CTP,但这只是为了测试目的。我的项目+主机配置为.net 4.0

I've included System.Data.SqlServerCe.dll, and the amd64 + x86 directories in my bin folder, but keep getting a ".net provider not found". I realize it's currently in CTP, but this is just for testing purposes. My project + host is configured for .net 4.0

推荐答案

使用Visual Studio 2010现在有一种简单的方法来部署SQL CE 4通过使用可部署的依赖关系到共享托管环境。您不需要手动将dll复制到您的bin文件夹或修改您的web.config。这两个都是为您完成的。

With Visual Studio 2010 there is now an easy way to deploy SQL CE 4 to a shared hosting environment through the use of "Deployable Dependencies". You do not need to manually copy dlls to your bin folder or modify your web.config. Both of these are done for you.


我们可以通过几个简单的步骤在Web站点或Web应用程序项目中包含所需的程序集。右键单击解决方案资源管理器中的项目节点,然后选择添加可部署依赖关系...上下文菜单项。

"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."

可部署的依赖关系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

这篇关于如何将SQL CE 4 CTP部署到共享主机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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