WebMatrix 2上传到主机的站点问题

时间:2013-04-26 21:47:14

标签: webmatrix

我使用WebMatrix 2为我公司开发了一个Web Pages 2网站,其中包含一个简单的SQL Compact Edition(.sdf文件)数据库。听起来很简单。完全在我的本地开发盒上运行。

然而,在FTP到我的Web主机时,它是不行的。我收到的第一个错误是:


Server Error in '/' Application.

Unable to find the requested .Net Framework Data Provider.  It may not be installed.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.ArgumentException: Unable to find the requested .Net Framework Data Provider.  It may not be installed.

Source Error: 


Line 1:  @{
Line 2:      WebSecurity.InitializeDatabaseConnection("Omniflow", "UserProfile", "UserId", "Email", true);
Line 3:  }

我搜索并搜索并搜索了互联网,试图找出问题的根源以及解决方法。我还没有找到答案。我收集的比显然某些所需的程序集/ dll没有与应用程序一起上传。我已经尝试了FTP和Web Deploy方法,没有修复。

这是问题的根源吗?为什么WebMatrix不会上传所有依赖项?如果不能,为什么微软的在线文献中没有任何内容 - 它应该来自微软 - 还是其他任何描述这个问题的人?

3 个答案:

答案 0 :(得分:0)

您使用的是Microsoft WebMatrix页面上列出的托管站点之一:http://www.microsoft.com/web/webmatrix/吗?我知道当我将WebMatrix站点部署到通用IIS服务器时,它在bin目录中需要一些额外的DLL,并且在它工作之前要对其进行微调。

答案 1 :(得分:0)

发布时检查您是否选择了数据库文件(.sdf文件)。如果没有,则选择并发布。 希望它对你有用。

答案 2 :(得分:0)

确保您具有访问SqlCE数据库所需的所有SqlCE DLL。 它们应该出现在bin \,bin \ x86 \和bin \ AMD64 \文件夹中。

您可以尝试使用网站模板创建新网站 - >清空站点(ASP.NET)并检查bin文件夹以查看所有dll存在。

如果您的网站中还没有它们,请添加它们。这应该可以解决你的问题。