Quantcast
Channel: MSDN Blogs
Viewing all articles
Browse latest Browse all 35736

Publish failed

$
0
0

While I was writing these articles about creating, developing local and deploying an Azure Function App, I received this error, Figure 1.

  • How to create an Azure Function in Visual Studio
  • How to connect to a database from an Azure Function
  • Deploy an Azure Function created from Visual Studio
  • Check out all my Azure Functions articles here
1>------ Build started: Project: chsharpguitar-func-db, Configuration: Release Any CPU ------
1<span style="display: inline !important; float: none; background-color: transparent; color: #333333; cursor: text; font-family: Georgia,'Times New Roman','Bitstream Charter',Times,serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 24px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;">></span>Function1.cs(37,81,37,82): error CS1010: Newline in constant
1<span style="display: inline !important; float: none; background-color: transparent; color: #333333; cursor: text; font-family: Georgia,'Times New Roman','Bitstream Charter',Times,serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 24px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;">></span>Function1.cs(37,82,37,82): error CS1026: ) expected
1<span style="display: inline !important; float: none; background-color: transparent; color: #333333; cursor: text; font-family: Georgia,'Times New Roman','Bitstream Charter',Times,serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 24px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;">></span>Function1.cs(37,82,37,82): error CS1002: ; expected
1<span style="display: inline !important; float: none; background-color: transparent; color: #333333; cursor: text; font-family: Georgia,'Times New Roman','Bitstream Charter',Times,serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 24px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;">></span>Function1.cs(43,75,43,76): error CS1010: Newline in constant
1<span style="display: inline !important; float: none; background-color: transparent; color: #333333; cursor: text; font-family: Georgia,'Times New Roman','Bitstream Charter',Times,serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 24px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;">></span>Function1.cs(43,76,43,76): error CS1026: ) expected
1<span style="display: inline !important; float: none; background-color: transparent; color: #333333; cursor: text; font-family: Georgia,'Times New Roman','Bitstream Charter',Times,serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 24px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;">></span>Function1.cs(43,76,43,76): error CS1002: ; expected
1<span style="display: inline !important; float: none; background-color: transparent; color: #333333; cursor: text; font-family: Georgia,'Times New Roman','Bitstream Charter',Times,serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 24px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;">></span>Done building project "chsharpguitar-func-db.csproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  Publish Started
Function1.cs(37,81): error CS1010: Newline in constant [C:Usersbenperksourcereposchsharpguitar-func-db
                     chsharpguitar-func-dbchsharpguitar-func-db.csproj]
Function1.cs(37,82): error CS1026: ) expected [C:Usersbenperksourcereposchsharpguitar-func-db
                     chsharpguitar-func-dbchsharpguitar-func-db.csproj]
Function1.cs(37,82): error CS1002: ; expected [C:Usersbenperksourcereposchsharpguitar-func-db
                     chsharpguitar-func-dbchsharpguitar-func-db.csproj]
Function1.cs(43,75): error CS1010: Newline in constant [C:Usersbenperksourcereposchsharpguitar-func-db
                     chsharpguitar-func-dbchsharpguitar-func-db.csproj]
Function1.cs(43,76): error CS1026: ) expected [C:Usersbenperksourcereposchsharpguitar-func-db
                     chsharpguitar-func-dbchsharpguitar-func-db.csproj]

image

Figure 1, publishing failed while deploying to and Azure Function App

It turned out to be a compile issue, I had added some code without testing or compiling first.  I saw the failure reasons in the Output window in Visual Studio, Figure 2.

image

Figure 2, publishing failed while deploying to and Azure Function App

Once I fixed those compile error, all worked fine.


Viewing all articles
Browse latest Browse all 35736

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>