如何部署SQL CE 4 CTP共享托管? [英] How to deploy SQL CE 4 CTP to shared hosting?

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

问题描述

我怎样EF4到一个共享的托管服务提供商为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应用程序项目用几个简单的步骤所需的程序集。你右击Solution Explorer中的项目节点,然后选择添加部署的依赖......上下文菜单项。

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

部署的相关性

(<一个href=\"http://blogs.msdn.com/b/webdevtools/archive/2011/01/06/how-to-bin-deploy-sql-compact-edition-4-0-and-razor-web-projects.aspx\">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天全站免登陆