asp.net - 2014 更新后无法发布到 Azure

标签 asp.net asp.net-mvc azure azure-sql-database

我有一个 APS.net MVC 项目,已经发布到 azure 一段时间了。我最近更换了笔记本电脑并迁移到 SQL Server 2014。现在,当我尝试发布时,出现 3 个错误。第一个看起来是根类(class):

Error 3 .Net SqlClient Data Provider: Msg 2812, Level 16, State 62, Line 1 Could not find stored procedure 'sp_addextendedproperty'

另外两个错误是:

Error   4   Script execution error.  The executed script:
EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration =         0   0   AMScan

Error   5   Web deployment task failed. (Could not deploy package.
Warning SQL0: A project which specifies SQL Server 2014 as the target platform may experience compatibility issues with Microsoft Azure SQL Database.
Error SQL72014: .Net SqlClient Data Provider: Msg 2812, Level 16, State 62, Line 1 Could not find stored procedure 'sp_addextendedproperty'.
Error SQL72045: Script execution error.  The executed script:
EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 


  Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_EXECUTING_METHOD.)     0   0   AMScan

经过一些研究,我了解到 2014 年有某些扩展存储过程在 Azure SQL 中不可用,但许多早期版本(包括我之前使用的 2012 年)似乎都是这种情况。

关于如何解决这个问题的任何想法。

干杯, 凯文.

最佳答案

multiple options可供您使用,但我认为以下 2 个最能满足您的需求:

关于asp.net - 2014 更新后无法发布到 Azure,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30929969/

相关文章:

c# - 为什么不能 UnRegisterStartupScript?

asp.net-mvc - @Html.AntiForgeryToken() 有什么用?

asp.net-mvc - 路由-MVC-ASP.NET

asp.net - Html 实体名称与实体编号?

jquery - 使用 Ajax Jquery 和 asmx 服务按 Id 获取数据

javascript - 如何使用 angularjs 获取用户所属的安全组列表

asp.net-mvc - 如何在 Web API ASP.Net core 中对异常过滤器进行单元测试。不想模拟 onException 方法

azure - Azure 网站上的传出流量随机出现 21/42 秒超时

Azure AD B2C : AcquireTokenSilentAsync returns empty access token

azure - Microsoft.Azure.Documents.BadRequestException : ResourceType Document is unexpected