试图建立在Azure上MVC应用程序时,Visual Studio中的错误 [英] Visual Studio error when trying to create MVC application on Azure

查看:109
本文介绍了试图建立在Azure上MVC应用程序时,Visual Studio中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个使用Visual Studio 2015年社区一个新的MVC应用程序,我跟着此内容如何教程要做到这一点,尽可能创建应用程序,我走了,但在我点击创建来创建应用程序,显示以下错误消息。

I want to create a new MVC application with Visual Studio Community 2015. I've followed this tutorial on how to do this and I've gone as far as creating the application, but after I click 'Create' to create the application, the error message below is displayed.

这是消息指为Visual Studio在Azure API的版本?如果是这样,我应该怎么解决这个问题?我看了网上和我似乎无法找到有关此错误什么。我在这一个新手,所以我不知道如果我忽略了什么,但我似乎没有按照教程做。任何帮助是极大AP preciated!

Is this message referring to the Azure API version for Visual Studio? If so, how should I resolve this? I've looked online and I can't seem to find anything about this error. I'm a newbie at this, so I'm not sure if I've overlooked anything, but I don't seem to according to the tutorial. Any help is greatly appreciated!

更新
下面的图片是我发现SQL API版本。这是奇怪的想法,因为它不匹配错误消息中显示的版本。

推荐答案

由于错误消息说,API必须在正确的格式YYYY-MM-DD。

As the error message says the API have to be in correct format yyyy-MM-dd.

我是用最近是API版本 2014年4月1日 2014-04-01- preVIEW 。定义时尝试通过以下任何的SqlServer 种源。

API version I was using recently was 2014-04-01 or 2014-04-01-preview. Try any of these when defining SqlServer resouce.

另外看看 resources.azure.com 如果您创建的任何SqlServers并仔细检查API版本从那里..

Also have a look at resources.azure.com if you have any SqlServers created and double check the API version from there..

这不涉及到在Azure SDK版本的Visual Studio。它涉及到(你的情况)的API版本使用的是创建SqlServer的实例Azure的资源管理器

This does not relate to the Azure Sdk version for Visual Studio. It relates to the (in your case) API version used to create SqlServer instance using Azure Resource Manager

样的SqlServer和数据库资源节点:

Sample SqlServer and database resource node:

"resources": [
    {
      "name": "[parameters('sqlServerName')]",
      "type": "Microsoft.Sql/servers",
      "location": "[resourceGroup().location]",
      "apiVersion": "2014-04-01-preview",
      "dependsOn": [ ],
      "tags": {
        "displayName": "SqlServer"
      },
      "properties": {
        "administratorLogin": "[parameters('sqlDatabaseUserName')]",
        "administratorLoginPassword": "[parameters('sqlDatabasePassword')]",
        "version": "12.0"
      },
      "resources": [
        {
          "name": "AllowAllWindowsAzureIps",
          "type": "firewallrules",
          "location": "[resourceGroup().location]",
          "apiVersion": "2014-04-01-preview",
          "dependsOn": [
            "[concat('Microsoft.Sql/servers/', parameters('sqlServerName'))]"
          ],
          "properties": {
            "startIpAddress": "0.0.0.0",
            "endIpAddress": "255.255.255.255"
          }
        },
        {
          "name": "[parameters('databaseName')]",
          "type": "databases",
          "location": "[resourceGroup().location]",
          "apiVersion": "2014-04-01-preview",
          "kind": "v12.0",
          "dependsOn": [
            "[parameters('sqlServerName')]"
          ],
          "tags": {
            "displayName": "SqlDatabase"
          },
          "properties": {
            "collation": "[parameters('sqlDatabaseUriNameCollation')]",
            "edition": "[parameters('sqlDatabaseUriNameEdition')]",
            "maxSizeBytes": "10737418240"
            //10 gigs currently
          }
        }
      ]
    }

另外,作为@Robert麦基指出要确保你有最新的Azure SDK(2.7.1或2.8最近发布)

Also as @Robert McKee pointed make sure you have latest Azure SDK (2.7.1 or 2.8 released recently)

这篇关于试图建立在Azure上MVC应用程序时,Visual Studio中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆