简体   繁体   English

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

[英]Publish ASP.NET website + database to Windows Azure Websites

I've signed up for a test account on Windows Azure to test it out. 我已经在Windows Azure上注册了一个测试帐户来测试它。 I build a Hello world ASP.NET web application + database just for testing. 我构建了一个Hello world ASP.NET Web应用程序+数据库,仅用于测试。

I installed Visual Studio 2012 RC and installed the Windows Azure software. 我安装了Visual Studio 2012 RC并安装了Windows Azure软件。

In Windows Azure I've created a new Website e+ Database, I think that is running fine ( http://azuretest.azurewebsites.net ) 在Windows Azure中,我创建了一个新的网站e +数据库,我认为运行正常( http://azuretest.azurewebsites.net

I downloaded the Publish profile from Windows Azure and import it in Visual Studio. 我从Windows Azure下载了发布配置文件并将其导入Visual Studio。 When I publish the website I select to publish the database, select the right connection string (from the publish profile). 当我发布我选择发布数据库的网站时,选择正确的连接字符串(来自发布配置文件)。

After publishing I get this error: 发布后我收到此错误:

Error 1 Web deployment task failed. 错误1 Web部署任务失败。 (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 (使用Web管理服务进行连接时,无法使用指定的提供程序(“dbSqlPackage”)完成操作。如果服务器管理员未授权用户执行此操作,则会发生这种情况.dbSqlPackage http://go.microsoft.com/ fwlink /?LinkId = 178034了解更多信息,请访问: http//go.microsoft.com/fwlink/ ?LinkId = 221672 #ERROR_USER_NOT_AUTHORIZED_FOR_DEPLOYMENTPROVIDER 。)0 0 azuretest

The url's in this error message links to articles from 2008 and 2010. I don't think that I can find any good info there.. 此错误消息中的URL链接到2008年和2010年的文章。我认为我不能在那里找到任何好的信息..

The error says 错误说

This can occur if the server administrator has not authorized the user for this operation 如果服务器管理员未授权用户执行此操作,则可能会发生这种情况

but I don't think I can authorize anything on a shared Windows Azure Website, can I? 但我不认为我可以在共享的Windows Azure网站上授权任何东西,是吗?

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

Hi Marcel, I work on the Visual Studio Web team. 嗨Marcel,我在Visual Studio Web团队工作。 When we released VS 2012 RC we had the hopes that we would be able to finalize the server side components of the Update Database checkbox by the time that the RC went out. 当我们发布VS 2012 RC时,我们希望能够在RC出来之前完成更新数据库复选框的服务器端组件。 Unfortunately we were not able to do that, so the Update Database checkbox in VS 2012 RC only works if you are publshing to localhost. 遗憾的是我们无法做到这一点,因此只有在发布到localhost时,VS 2012 RC中的“更新数据库”复选框才有效。

We are working to get the server side pieces ready but we cannot commit to a schedule yet. 我们正在努力让服务器端部件准备就绪,但我们还不能提交计划。 I've blogged about this at http://blogs.msdn.com/b/webdevtools/archive/2012/06/14/vs-publish-dialog-update-database-dialog-disabled.aspx . 我在http://blogs.msdn.com/b/webdevtools/archive/2012/06/14/vs-publish-dialog-update-database-dialog-disabled.aspx上发表过关于此的博客。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM