asp.net - 将 ASP.NET 网站 + 数据库发布到 Windows Azure 网站

标签 asp.net azure azure-sql-database azure-web-app-service

我已在 Windows Azure 上注册了一个测试帐户来对其进行测试。我构建了一个 Hello world ASP.NET Web 应用程序 + 数据库只是为了测试。

我安装了 Visual Studio 2012 RC 并安装了 Windows Azure 软件。

在 Windows Azure 中,我创建了一个新的网站 e+ 数据库,我认为它运行良好 ( http://azuretest.azurewebsites.net )

我从 Windows Azure 下载了发布配置文件并将其导入到 Visual Studio 中。当我发布网站时,我选择发布数据库,选择正确的连接字符串(从发布配置文件中)。

发布后我收到此错误:

Error 1 Web deployment task failed. (Could not complete an operation with the specified provider ("dbSqlPackage") when connecting using the Web Management Service. This can occur if the server administrator has not authorized the user for this operation. dbSqlPackage http://go.microsoft.com/fwlink/?LinkId=178034 Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_NOT_AUTHORIZED_FOR_DEPLOYMENTPROVIDER.) 0 0 azuretest

此错误消息中的网址链接到 2008 年和 2010 年的文章。我认为我无法在那里找到任何好的信息..

错误提示

This can occur if the server administrator has not authorized the user for this operation

但我认为我无法在共享 Windows Azure 网站上授权任何内容,可以吗?

最佳答案

我刚刚在http://social.msdn.microsoft.com/Forums/en-US/windowsazurewebsitespreview/thread/3f99e1e3-e030-47e0-9e43-f029663ca806回答了这个问题.

您好,Marcel,我在 Visual Studio Web 团队工作。当我们发布 VS 2012 RC 时,我们希望能够在 RC 发布时最终确定更新数据库复选框的服务器端组件。不幸的是,我们无法做到这一点,因此 VS 2012 RC 中的“更新数据库”复选框仅在您发布到本地主机时才有效。

我们正在努力准备好服务器端的部分,但我们还不能 promise 时间表。我已在 http://blogs.msdn.com/b/webdevtools/archive/2012/06/14/vs-publish-dialog-update-database-dialog-disabled.aspx 上发表了有关此内容的博客.

关于asp.net - 将 ASP.NET 网站 + 数据库发布到 Windows Azure 网站,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11030401/

相关文章:

c# - 是否可以将 Azure 移动服务与 WP7 一起使用

node.js - 无法使用 Visual Studio 2013 将 Node js 站点发布到 azure

vb.net - 如何将我的 webrole 应用程序 (vb.net) 连接到我的 sql azure 数据库?

azure-sql-database - EF核心和SqlAzureExecutionStrategy

c# - 另一个 LINQ Pivot 问题——将 SQL 脚本转换为 LINQ

javascript - 检查对象内部是否有空值

asp.net - URL 编码的表单数据无效

asp.net - C# 从 web.config 中读取 customHeaders 值

azure - 使用 AAD Connect 工具将照片从 AD 持续同步到 AAD

php - fatal error : Call to undefined function sqlsrv_connect() in C:\xampp\htdocs