C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\NuGet\15.0\Microsoft.NuGet.targets(186,5): error : The package xxx with version 6.0.1304 could not be found in C:\WINDOWS\system32\config\systemprofile\.nuget\packages\. Run a NuGet package restore to download the package. [xxx.csproj]

  • Change Jenkins slave executor from SYSTEM to other account.

IE: your current security settings don't allow this file to be downloaded

  1. Add current site to Trusted sites (IE -> Tools -> Internet Options ->Trusted sites -> Sites -> Add)

  2. IE -> Tools -> Internet Options -> Internet -> Custom level… -> Downloads -> File download -> Select Enable

Fail to use section "<handlers>" of web.config

  • Error: HTTP Error 500.19 – Internal Server Error

    This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".

  • Solution:

    • Settings search : "Turn windows features on or off"

    • Enable all except "CGI" under "Internet Information ServicesWorld Wide Web ServicesApplication Development Features"

Fail to load user profile while loginning

  • error: "User profile cannot be loaded"

  • Go to `C:\Users\Default\` > right click folder"Default" > "properties" > tab to "Security" > Click "Advanced" > Check "Replace all child permissions.." and apply.

Add program exe to windows start-up 

  1. Win+R > Enter `shell:startup` .

  2. Create program shortcut to the folder. 

Can't change domain, no access

  • Ask IT admin for applying the permission to your AD account.

  • Before the server object add to AD server, got to keep the computer open and online (Or it'll need to re-add by IT Admin)

[SourceTree] Keep asking for trusting specific host

  • error message:

git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin
The server's host key is not cached in the registry. You
have no guarantee that the server is the computer you
think it is.
The server's rsa2 key fingerprint is:
ssh-rsa 2048 aa:d1:aa:00:bb:c0:b0:a0:d0:e0:f0:a0:a1:00:11:ee
If you trust this host, enter "y" to add the key to
PuTTY's cache and carry on connecting.
If you want to carry on connecting just once, without
adding the key to the cache, enter "n".
If you do not trust this host, press Return to abandon the
connection.
  • Solve: 

C:\Users\{user}\AppData\Local\SourceTreebeta\app-3.2.0-beta-3360\tools\putty\plink.exe {git_server_uri}

Apps

choco install package by NuGet source

choco install dotnet4.7.2 --source https://chocolatey.org/api/v2

Jenkins exec managed script fail

  • Error msg:

    10:55:58 FATAL: Caught exception while loading script 'Docker build (win/linux)'

    10:55:58 java.lang.InterruptedException

  • Solve: Re-run again

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *