Giter Site home page Giter Site logo

Comments (6)

renaldo-b avatar renaldo-b commented on May 20, 2024 1

Problem solved! The missing NuGet Package Manager was the issue. After importing the package the app created successfully.

from learn-lti.

renaldo-b avatar renaldo-b commented on May 20, 2024

Running into problems when deploy.ps1 reaches step #10. See the error output on the end.

Following is present on the system.
AZ CLI
Microsoft .NET Core SDK 3.1.413 (x64)
Microsoft .NET SDK 5.0.302 )x64)
Node.js 14.17.6
Powershell 5.1.22000.1
Git 2.33

Error:

STEP #10 - Installing the backend

PS C:\Code> TerminatingError(): "Errors while building Function App [ AssignmentLearnContent ]"
PS C:\Code> TerminatingError(): "Errors while building Function App [ AssignmentLearnContent ]"

I then tried to run publish.ps1. See all output from publish.ps1.

PS C:\Learn-lti\Learn-LTI\deployment> C:\Learn-lti\Learn-LTI\deployment\Publish.ps1
cmdlet Publish.ps1 at command pipeline position 1
Supply values for the following parameters:
ResourceGroupName: MSLearnLTI
AppName: MS-Learn-Lti-Tool-App

=============================================================

Gathering Deployment Info
[ 23-9-2021 14:06:18 ] - [INFO] - Validating App Registration
[ 23-9-2021 14:06:18 ] - [INFO] - Validating Resource Group
[ 23-9-2021 14:06:19 ] - [INFO] - Getting Function Apps Info
[ 23-9-2021 14:06:20 ] - [INFO] - Getting Static Website Info

=============================================================

Deployment Info Gathered

=============================================================

Installing the backend
[ 23-9-2021 14:06:21 ] - [INFO] - Switching to [../backend] as working directory
[ 23-9-2021 14:06:21 ] - [INFO] - Installing FunctionApp -- AssignmentLearnContent
[ 23-9-2021 14:06:21 ] - [INFO] - Publishing Project [ Edna.AssignmentLearnContent.csproj ] as FunctionApp
[ 23-9-2021 14:06:21 ] - [INFO] - Building [ C:\Learn-lti\Learn-LTI\backend\Functions\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent ] --> [ Artifacts\AssignmentLearnContent ]
[ 23-9-2021 14:06:22 ] - [INFO] - Determining projects to restore...
C:\Learn-lti\Learn-LTI\backend\Utils\Edna.Utils.Linq\Edna.Utils.Linq\Edna.Utils.Linq.csproj : error NU1102: Unable to find package NETStandard.Library with version (>= 2.0.3) [C:\Learn-lti\Learn-LTI\backend\Functions\Edna.AssignmentLearnContent\Edna.Assignme
ntLearnContent\Edna.AssignmentLearnContent.csproj]
C:\Learn-lti\Learn-LTI\backend\Utils\Edna.Utils.Linq\Edna.Utils.Linq\Edna.Utils.Linq.csproj : error NU1102: - Found 1 version(s) in Microsoft Visual Studio Offline Packages [ Nearest version: 1.6.0 ] [C:\Learn-lti\Learn-LTI\backend\Functions\Edna.Assignmen
tLearnContent\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent.csproj]
C:\Learn-lti\Learn-LTI\backend\Functions\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent.csproj : error NU1101: Unable to find package AutoMapper.Extensions.Microsoft.DependencyInjection. No packages exist with this id in
source(s): Microsoft Visual Studio Offline Packages
C:\Learn-lti\Learn-LTI\backend\Functions\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent.csproj : error NU1101: Unable to find package Microsoft.Azure.Functions.Extensions. No packages exist with this id in source(s): Micr
osoft Visual Studio Offline Packages
C:\Learn-lti\Learn-LTI\backend\Utils\Edna.Utils.Http\Edna.Utils.Http\Edna.Utils.Http.csproj : error NU1102: Unable to find package NETStandard.Library with version (>= 2.0.3) [C:\Learn-lti\Learn-LTI\backend\Functions\Edna.AssignmentLearnContent\Edna.Assignme
ntLearnContent\Edna.AssignmentLearnContent.csproj]
C:\Learn-lti\Learn-LTI\backend\Utils\Edna.Utils.Http\Edna.Utils.Http\Edna.Utils.Http.csproj : error NU1102: - Found 1 version(s) in Microsoft Visual Studio Offline Packages [ Nearest version: 1.6.0 ] [C:\Learn-lti\Learn-LTI\backend\Functions\Edna.Assignmen
tLearnContent\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent.csproj]
C:\Learn-lti\Learn-LTI\backend\Bindings\Edna.Bindings.User\Edna.Bindings.User.csproj : error NU1102: Unable to find package NETStandard.Library with version (>= 2.0.3) [C:\Learn-lti\Learn-LTI\backend\Functions\Edna.AssignmentLearnContent\Edna.AssignmentLearn
Content\Edna.AssignmentLearnContent.csproj]
C:\Learn-lti\Learn-LTI\backend\Bindings\Edna.Bindings.User\Edna.Bindings.User.csproj : error NU1102: - Found 1 version(s) in Microsoft Visual Studio Offline Packages [ Nearest version: 1.6.0 ] [C:\Learn-lti\Learn-LTI\backend\Functions\Edna.AssignmentLearnC
ontent\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent.csproj]
C:\Learn-lti\Learn-LTI\backend\Functions\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent.csproj : error NU1101: Unable to find package Microsoft.Azure.WebJobs.Extensions.Storage. No packages exist with this id in source(s)
: Microsoft Visual Studio Offline Packages
C:\Learn-lti\Learn-LTI\backend\Utils\Edna.Utils.Http\Edna.Utils.Http\Edna.Utils.Http.csproj : error NU1101: Unable to find package Microsoft.AspNetCore.Http.Features. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [C:\L
earn-lti\Learn-LTI\backend\Functions\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent.csproj]
C:\Learn-lti\Learn-LTI\backend\Bindings\Edna.Bindings.User\Edna.Bindings.User.csproj : error NU1101: Unable to find package Microsoft.Azure.WebJobs.Extensions.Http. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [C:\Lea
rn-lti\Learn-LTI\backend\Functions\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent.csproj]
C:\Learn-lti\Learn-LTI\backend\Functions\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent.csproj : error NU1101: Unable to find package Microsoft.Extensions.Http. No packages exist with this id in source(s): Microsoft Visua
l Studio Offline Packages
C:\Learn-lti\Learn-LTI\backend\Utils\Edna.Utils.Http\Edna.Utils.Http\Edna.Utils.Http.csproj : error NU1101: Unable to find package Microsoft.Azure.Services.AppAuthentication. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packag
es [C:\Learn-lti\Learn-LTI\backend\Functions\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent.csproj]
C:\Learn-lti\Learn-LTI\backend\Bindings\Edna.Bindings.User\Edna.Bindings.User.csproj : error NU1101: Unable to find package Microsoft.Extensions.Http. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [C:\Learn-lti\Learn-L
TI\backend\Functions\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent.csproj]
C:\Learn-lti\Learn-LTI\backend\Functions\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent.csproj : error NU1101: Unable to find package Microsoft.NET.Sdk.Functions. No packages exist with this id in source(s): Microsoft Vis
ual Studio Offline Packages
C:\Learn-lti\Learn-LTI\backend\Utils\Edna.Utils.Http\Edna.Utils.Http\Edna.Utils.Http.csproj : error NU1101: Unable to find package Microsoft.Extensions.DependencyInjection. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages
[C:\Learn-lti\Learn-LTI\backend\Functions\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent.csproj]
C:\Learn-lti\Learn-LTI\backend\Bindings\Edna.Bindings.User\Edna.Bindings.User.csproj : error NU1101: Unable to find package Microsoft.AspNetCore.Http.Features. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [C:\Learn-lt
i\Learn-LTI\backend\Functions\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent.csproj]
C:\Learn-lti\Learn-LTI\backend\Functions\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent.csproj : error NU1101: Unable to find package Microsoft.Azure.WebJobs.Extensions.Http. No packages exist with this id in source(s): M
icrosoft Visual Studio Offline Packages
C:\Learn-lti\Learn-LTI\backend\Utils\Edna.Utils.Http\Edna.Utils.Http\Edna.Utils.Http.csproj : error NU1101: Unable to find package Microsoft.Extensions.Http. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [C:\Learn-lti
Learn-LTI\backend\Functions\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent.csproj]
C:\Learn-lti\Learn-LTI\backend\Functions\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent.csproj : error NU1101: Unable to find package Microsoft.AspNetCore.Http.Features. No packages exist with this id in source(s): Micros
oft Visual Studio Offline Packages
C:\Learn-lti\Learn-LTI\backend\Bindings\Edna.Bindings.User\Edna.Bindings.User.csproj : error NU1101: Unable to find package Microsoft.Azure.Services.AppAuthentication. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [C:
Learn-lti\Learn-LTI\backend\Functions\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent.csproj]
C:\Learn-lti\Learn-LTI\backend\Utils\Edna.Utils.Http\Edna.Utils.Http\Edna.Utils.Http.csproj : error NU1101: Unable to find package Microsoft.Extensions.Logging.Abstractions. No packages exist with this id in source(s): Microsoft Visual Studio Offline Package
s [C:\Learn-lti\Learn-LTI\backend\Functions\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent.csproj]
C:\Learn-lti\Learn-LTI\backend\Functions\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent.csproj : error NU1101: Unable to find package Microsoft.Azure.Services.AppAuthentication. No packages exist with this id in source(s)
: Microsoft Visual Studio Offline Packages
C:\Learn-lti\Learn-LTI\backend\Bindings\Edna.Bindings.User\Edna.Bindings.User.csproj : error NU1101: Unable to find package Microsoft.Extensions.DependencyInjection. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [C:\Le
arn-lti\Learn-LTI\backend\Functions\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent.csproj]
C:\Learn-lti\Learn-LTI\backend\Utils\Edna.Utils.Http\Edna.Utils.Http\Edna.Utils.Http.csproj : error NU1101: Unable to find package System.IdentityModel.Tokens.Jwt. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [C:\Lear
n-lti\Learn-LTI\backend\Functions\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent.csproj]
C:\Learn-lti\Learn-LTI\backend\Functions\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent.csproj : error NU1101: Unable to find package Microsoft.Extensions.DependencyInjection. No packages exist with this id in source(s):
Microsoft Visual Studio Offline Packages
C:\Learn-lti\Learn-LTI\backend\Bindings\Edna.Bindings.User\Edna.Bindings.User.csproj : error NU1101: Unable to find package Microsoft.Extensions.Logging.Abstractions. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [C:\L
earn-lti\Learn-LTI\backend\Functions\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent.csproj]
C:\Learn-lti\Learn-LTI\backend\Functions\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent.csproj : error NU1101: Unable to find package Microsoft.Extensions.Logging.Abstractions. No packages exist with this id in source(s):
Microsoft Visual Studio Offline Packages
C:\Learn-lti\Learn-LTI\backend\Bindings\Edna.Bindings.User\Edna.Bindings.User.csproj : error NU1101: Unable to find package System.IdentityModel.Tokens.Jwt. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages [C:\Learn-lti\L
earn-LTI\backend\Functions\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent.csproj]
C:\Learn-lti\Learn-LTI\backend\Functions\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent.csproj : error NU1101: Unable to find package System.IdentityModel.Tokens.Jwt. No packages exist with this id in source(s): Microsoft
Visual Studio Offline Packages
Failed to restore C:\Learn-lti\Learn-LTI\backend\Utils\Edna.Utils.Http\Edna.Utils.Http\Edna.Utils.Http.csproj (in 94 ms).
Failed to restore C:\Learn-lti\Learn-LTI\backend\Bindings\Edna.Bindings.User\Edna.Bindings.User.csproj (in 94 ms).
Failed to restore C:\Learn-lti\Learn-LTI\backend\Functions\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent\Edna.AssignmentLearnContent.csproj (in 94 ms).
Failed to restore C:\Learn-lti\Learn-LTI\backend\Utils\Edna.Utils.Linq\Edna.Utils.Linq\Edna.Utils.Linq.csproj (in 94 ms).
Errors while building Function App [ AssignmentLearnContent ]
At C:\Learn-lti\Learn-LTI\deployment\Install-Backend.ps1:61 char:9

  •     throw "Errors while building Function App [ $FunctionName ]"
    
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : OperationStopped: (Errors while bu...tLearnContent ]:String) [], RuntimeException
    • FullyQualifiedErrorId : Errors while building Function App [ AssignmentLearnContent ]

PS C:\Learn-lti\Learn-LTI\deployment>

from learn-lti.

leestott avatar leestott commented on May 20, 2024

@renaldo-b so the error looks like your missing
Unable to find package Microsoft.Azure.WebJobs.Extensions.Storage. No packages exist with this id in source(s)
: Microsoft Visual Studio Offline Packages
: Unable to find package NETStandard.Library with version (>= 2.0.3)

So it looks like your missing nuget libraries from your install

.Net Standard Libraries https://www.nuget.org/packages/NETStandard.Library/
Also it looks like your machine doesn't have any Visual Studio tools installed?

If you have Visual Studio Installed on your deployment machine

You could go to Tools -> Options -> NuGet Package Manager -> Package Sources then add a new source link like screenshot below.
image

BTW, NuGet Package Manager are automatically installed with any .NET-related workloads in VS 2019.

from learn-lti.

leestott avatar leestott commented on May 20, 2024

@renaldo-b did you reboot your machine also after installing the prerequisites? We have seen these error also if you have NOT rebooted

from learn-lti.

renaldo-b avatar renaldo-b commented on May 20, 2024

@leestott Forgot to mention, but yes I did reboot my machine several times after the installation.

from learn-lti.

leestott avatar leestott commented on May 20, 2024

Thanks for the update, glad this was easily sorted.

from learn-lti.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.