rpc error: code = NotFound desc = failed to pull and unpack image "mcr.microsoft.com/dotnet/framework/sdk:4.8": - asp.net

When i create bit-bucket pipeline ASP.Net Based project and found below error.
rpc error: code = Not-found desc = failed to pull and unpack image "mcr.micro-soft.com/dotnet/framework/SDK:4.8": no match for platform in manifest: not found
I have tried these images that doesn't support.
Can anyone guide me that which docker image is supported in ASP.Net framework based project.
Thanks in Advance.

Related

cannot create luminus project with sqlite and clojurescript support

I am trying to create a luminus project with sqlite and cljs support with this command:
lein new dbscript +sqlite +cljs
but I keep getting this error message all the time:
Failed to resolve version for dbscript:lein-template:jar:RELEASE: Could not find metadata dbscript:lein-template/maven-metadata.xml in local (/home/jonas/.m2/repository)
Failed to read artifact descriptor for dbscript:lein-template:jar:RELEASE
This could be due to a typo in :dependencies, file system permissions, or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.
Could not find template dbscript on the classpath.
and I cannot find any solution to this. Any suggestions?

ERROR: (gcloud.endpoints.services.deploy) INVALID_ARGUMENT: ERROR: unknown location: Cannot convert to service config

I am in the process of generating the CloudEndpoints for my APIs built on AppEngine Std Env JDK8 with Guice, and I am working on OSX.
Following the tutorial I’ve:
added my prj. ID to my pom.xml
run mvn endpoints-framework:openApiDocs
run gcloud endpoints services deploy target/openapi-docs/openapi.json
Steps 1 and 2 succeed whereas 3 fails with the message:
ERROR: (gcloud.endpoints.services.deploy) INVALID_ARGUMENT: ERROR: unknown location: Cannot convert to service config.
My APIs were not using the issuers attribute, for example:
issuers = {
#ApiIssuer(
name = "firebase",
issuer = "https://securetoken.google.com/<PRJ-ID>",
jwksUri = "https://www.googleapis.com/robot/v1/metadata/x509/securetoken#system.gserviceaccount.com")
}
so I tried adding that to each API, but still got the same error.
Help is needed and appreciated :).
This error means there's something wrong with the openapi config file. First, try verifying that it's valid YAML. If it is, then try validating the config with Swagger/OpenAPI tools.

Xamarin.Forms Android project builds and runs locally on two machines; fails in Visual Studio Team Services

I have a solution that contains an ASP.Net Core web-api project, a Xamarin.Forms app with an Android, iOS and Shared Netstandard library project, along with 5 other NetStandard libraries that are shared between the Xamarin app and the ASP.Net Core app.
I am able to compile and run the Android app on two different local machines, one being Windows 10 and another being macOS Sierra. When I have Visual Studio Team Services (VSTS) clone the repository from BitBucket and build the Android project, it fails to build because of Android resource file issues. I assume the problem is that I don't have VSTS configured correctly, since this runs on two different machines for me without issue. I'm not sure what I have misconfigured in VSTS to solve the issue.
I have a complete reproducible project available for download for uploading to VSTS if anyone needs that.
The build output is large, so I've included the errors themselves below with a link to the entire build output from VSTS.
"d:\a\1\s\dotnet\Apps\Mobile\Mobile.Android\Mobile.Android.csproj" (PackageForAndroid target) (1) ->
(_UpdateAndroidResgen target) ->
Resources\values\styles.xml(2): error APT0000: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'. [d:\a\1\s\dotnet\Apps\Mobile\Mobile.Android\Mobile.Android.csproj]
Resources\values\styles.xml(3): error APT0000: Error: No resource found that matches the given name: attr 'colorAccent'. [d:\a\1\s\dotnet\Apps\Mobile\Mobile.Android\Mobile.Android.csproj]
Resources\values\styles.xml(2): error APT0000: Error: No resource found that matches the given name: attr 'colorPrimary'. [d:\a\1\s\dotnet\Apps\Mobile\Mobile.Android\Mobile.Android.csproj]
Resources\values\styles.xml(2): error APT0000: Error: No resource found that matches the given name: attr 'colorPrimaryDark'. [d:\a\1\s\dotnet\Apps\Mobile\Mobile.Android\Mobile.Android.csproj]
Resources\values\styles.xml(2): error APT0000: Error: No resource found that matches the given name: attr 'windowActionBar'. [d:\a\1\s\dotnet\Apps\Mobile\Mobile.Android\Mobile.Android.csproj]
Resources\values\styles.xml(4): error APT0000: Error: No resource found that matches the given name: attr 'windowActionModeOverlay'. >[d:\a\1\s\dotnet\Apps\Mobile\Mobile.Android\Mobile.Android.csproj]
Resources\values\styles.xml(2): error APT0000: Error: No resource found that matches the given name: attr 'windowNoTitle'. [d:\a\1\s\dotnet\Apps\Mobile\Mobile.Android\Mobile.Android.csproj]
Resources\values\styles.xml(4): error APT0000: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.Dialog'. [d:\a\1\s\dotnet\Apps\Mobile\Mobile.Android\Mobile.Android.csproj]
Resources\values\styles.xml(4): error APT0000: Error: No resource found that matches the given name: attr 'colorAccent'. [d:\a\1\s\dotnet\Apps\Mobile\Mobile.Android\Mobile.Android.csproj]
Resources\values\styles.xml(5): error APT0000: Error: No resource found that matches the given name: attr 'colorAccent'. [d:\a\1\s\dotnet\Apps\Mobile\Mobile.Android\Mobile.Android.csproj]
Resources\values\styles.xml(4): error APT0000: Error: No resource found that matches the given name: attr 'colorPrimary'. [d:\a\1\s\dotnet\Apps\Mobile\Mobile.Android\Mobile.Android.csproj]
Resources\values\styles.xml(4): error APT0000: Error: No resource found that matches the given name: attr 'colorPrimaryDark'. [d:\a\1\s\dotnet\Apps\Mobile\Mobile.Android\Mobile.Android.csproj]
Resources\values\styles.xml(5): error APT0000: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.NoActionBar'. [d:\a\1\s\dotnet\Apps\Mobile\Mobile.Android\Mobile.Android.csproj]
The following is my VSTS Build Definition:
NuGet Restore
Android build
Definition Options
What have I got configured incorrectly that's causing this to fail with the Android resources in VSTS, but not when I build locally?
Local Environment
Windows
Operating System: Windows 10
Visual Studio 2017 15.3 Preview 3
dotnet --version: 1.1.0-preview1-005051
Mac
Operating System: Sierra 10.12.5
Visual Studio for Mac Community - 7.1 Preview (build 583)
Alpha Channel
dotnet --version: 2.0.0-preview3-006815
App Info
Xamarin.Forms shared NetStandard library packages:
Xamarin.Forms: 2.3.5.256-pre6
NetStandard.Library: 1.6.1
Xamarin.Android packages
Xamarin.Android.Support.Design: 25.3.1
Xamarin.Android.Support.v4: 25.3.1
Xamarin.Android.Support.v7.AppCompat: 25.3.1
Xamarin.Android.Support.v7.CardView: 25.3.1
Xamarin.Android.Support.v7.MediaRouter: 25.3.1
Xamarin.Android Framework
MonoAndroid, Version=v7.1
Minimum Android Version: 4.4, API Level 19
Target Android Version: 7.1, API Level 25
Target Framework: 7.1
Final thoughts
I am using project.json for the Xamarin.Android and Xamarin.iOS projects to maange the nuget packages, instead of packages.config, so I can use transitive dependencies. Is there something specific about my two environments that I need to configure in VSTS? I'm using two different versions of dotnet core as well without any issues, so I'm really confused what's going on here.
Use "Visual Studio Build" task instead of "Xamarin.Android" task to run the build. Add /t:PackageForAndroid argument in the task if you want to generate apk package.

Google Cloud Endpoint Extensible Service Proxy does not start

I am trying to install Extensible Service Proxy on my compute instance. I am following this guide for installing the ESP Nginx service: https://cloud.google.com/endpoints/docs/quickstart-compute-engine#running_the_extensible_service_proxy. I was able to install the ESP service without problems but when I try to start the service with the command service nginx start, the service does not start up.
First it gave this error in /var/log/nginx/error.log:
Traceback (most recent call last):
File "/usr/sbin/start_esp.py", line 48, in <module>
from mako.template import Template
ImportError: No module named mako.template
The error went away after I installed the mako template module using the command pip install mako.
Now it is giving this error:
INFO:Fetching the service name from the metadata service
ERROR:Fetching service name failed (status code 404)
Any help would be much appreciated. Thanks
Did you forget to put in your service name in your metadata?
From https://cloud.google.com/endpoints/docs/quickstart-compute-engine:
In the Metadata section and add the following Endpoints metadata key/value pairs:
Specify endpoints-service-name as a key and YOUR-PROJECT-ID.appspot.com as its value, replacing YOUR-PROJECT-ID with your project ID.
Click Add item.
Specify endpoints-service-version as a key and the service version returned when you deployed as the key's value.

Maven build(with Flexmojos) for multi module project throwing an error

I am trying to setup a Flex/Java multi module project in Eclipse. Using Maven to run the build and generate the war file. The details of the versions I am using are as follows:
Flexmojos : 3.5.0
Flex framework/compiler : 4.5.1.21328
Target player : 10.2.0
And the playerglobal dependency in my pom file uses classifier as 10.2 with version 4.5.1.21328
Now when I run the build using 'mvn install', I get the following error:
[ERROR] Failed to execute goal
org.sonatype.flexmojos:flexmojos-maven-plugin:3.5.0:compile-swf
(default-compile-swf) on project client: TargetPlayer and
playerglobal dependency version doesn't match! Target player: 10.2.0,
player global: 10.2 -> [Help 1]
Any ideas why this might be happening?
I tried just playing around changing those version numbers, but still couldn't make it work for Flex 4.5.1. Please let me know how to go about this (and if you need more information). Thanks.
Regards
Basith
Have you tried simply referencing "10.2" instead of "10.2.0"? I think there was only one Flash player deployed with a 3-segment version number.

Resources