Firstly, I would like to portray the system that we use our company. We are using CentOS 7. I have installed Jenkins and tried my project to build. Although building started, occurred some problems. I am sharing error message.
+ dotnet build Ekol.FFE.HttpApi.Host.csproj
Microsoft (R) Build Engine version 17.2.0+41abc5629 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.
Determining projects to restore...
/var/lib/jenkins/workspace/FFE/src/Ekol.FFE.Application.Contracts/Ekol.FFE.Application.Contracts.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [/var/lib/jenkins/workspace/FFE/src/Ekol.FFE.HttpApi.Host/Ekol.FFE.HttpApi.Host.csproj]
/var/lib/jenkins/workspace/FFE/src/Ekol.FFE.Integration.Rest/Ekol.FFE.Integration.Rest.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [/var/lib/jenkins/workspace/FFE/src/Ekol.FFE.HttpApi.Host/Ekol.FFE.HttpApi.Host.csproj]
How can I solve this problem ?
Related
Reproduction steps:
Stack: Windows 10, Visual Studio 2019 professional, BizTalk Server 2020 developer edition CU1.
In Visual Studio create a new Biztalk Server Project
Manage Nuget Package, Add a nuget package. pick one:
Known to break the build
autofac 6.0, 6.1, 6.2
nodatime 3.0.5
Azure.Storage.Blobs 12.9.1
Known to not break the build
autofac 5.2
many others I tested.
F6 (Build) or run msbuild
As far as my testing was going, whenever the nuget packages directly list a variant with a .net framework as a dependency, it works. Listing only .net standard and .net 5 as a dependency, as in the list above, fails the buil.
actual error:
PS C:\code\autofacRepro> msbuild
Microsoft (R) Build Engine version 16.11.0+0538acc04 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
Build started 8/24/2021 3:01:10 PM.
Project "C:\code\autofacRepro\autofacRepro.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration "Debug|Any CPU".
Project "C:\code\autofacRepro\autofacRepro.sln" (1) is building "C:\code\autofacRepro\autofacRepro.btproj" (2) on node 1 (default targets).
C:\Program Files (x86)\MSBuild\Microsoft\BizTalk\BizTalkCommon.targets(190,9): error MSB4018: The "AddBizTalkHiddenReferences" task failed unexpectedly. [C:\code\autofacRepro\autofacRepro.btproj]
C:\Program Files (x86)\MSBuild\Microsoft\BizTalk\BizTalkCommon.targets(190,9): error MSB4018: System.ArgumentException: String cannot have zero length. [C:\code\autofacRepro\autofacRepro.btproj]
C:\Program Files (x86)\MSBuild\Microsoft\BizTalk\BizTalkCommon.targets(190,9): error MSB4018: at System.Reflection.AssemblyName..ctor(String assemblyName) [C:\code\autofacRepro\autofacRepro.btproj]
C:\Program Files (x86)\MSBuild\Microsoft\BizTalk\BizTalkCommon.targets(190,9): error MSB4018: at Microsoft.VisualStudio.BizTalkProject.BuildTasks.AddBizTalkHiddenReferences.GetAssemblyNamesFromItems(ITaskItem[] items) [C:\co
de\autofacRepro\autofacRepro.btproj]
C:\Program Files (x86)\MSBuild\Microsoft\BizTalk\BizTalkCommon.targets(190,9): error MSB4018: at Microsoft.VisualStudio.BizTalkProject.BuildTasks.AddBizTalkHiddenReferences.Execute() [C:\code\autofacRepro\autofacRepro.btproj
]
C:\Program Files (x86)\MSBuild\Microsoft\BizTalk\BizTalkCommon.targets(190,9): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [C:\code\autofacRepro\autofacRep
ro.btproj]
C:\Program Files (x86)\MSBuild\Microsoft\BizTalk\BizTalkCommon.targets(190,9): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() [C:\code\autofacRepro\autofacRepro.btproj]
Done Building Project "C:\code\autofacRepro\autofacRepro.btproj" (default targets) -- FAILED.
Done Building Project "C:\code\autofacRepro\autofacRepro.sln" (default targets) -- FAILED.
Build FAILED.
A repro zip package is available in this github issue. (at first I thougt, it was a special issue with autofac, but it is not)
My old stack (windows server 2016, visual studio 2015, biztalk 2016) is not affected. We are using autofac 6.1 in biztalk projects there without any issue.
I feel like this is a BizTalk bug but I am not smart enough to find the way Microsoft allows reporting it.
So finally the question is, is there a workaround or a bugfix?
I've had this with one of my own packages. This package was targeting .NET Standard 2.0. I had to add .NET Framework 4.8 (in my case) specifically as a target framework in the class library and recreate the package for it.
For public packages, you may want to create a PR or make a fork to include targeting of .NET Framework. Your BizTalk project then needs to reference the .NET Framework assembly rather than the .NET Standard one.
Visual studio 19 throws error “Error HRESULT E_FAIL has been returned from a call to a COM component” on adding reference in web forms project.
I got the solution
Set the path to C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\
And run : gacutil -i Microsoft.VisualStudio.Shell.Interop.11.0.dll
If you get following status ,then you are done :
Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.0
Copyright (c) Microsoft Corporation. All rights reserved.
Assembly successfully added to the cache
I was on Windows 10 working with .net core 3.1. After .net 5 was launched, I upgraded to the new version immediately. I updated my Visual Studio 2019 to version 16.8. Everything worked well in Visual Studio, but when I tried to update dotnet-ef in dotnet cli,
dotnet tool update dotnet-ef -g
I got this error:
C:\Program Files\dotnet\sdk\5.0.100\NuGet.targets(131,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json. [C:\Users\z\AppData\Local\Temp\eip3wn3x.eys\restore.csproj]
C:\Program Files\dotnet\sdk\5.0.100\NuGet.targets(131,5): error : The SSL connection could not be established, see inner exception. [C:\Users\z\AppData\Local\Temp\eip3wn3x.eys\restore.csproj]
C:\Program Files\dotnet\sdk\5.0.100\NuGet.targets(131,5): error : Received an unexpected EOF or 0 bytes from the transport stream. [C:\Users\z\AppData\Local\Temp\eip3wn3x.eys\restore.csproj]
The tool package could not be restored.
Tool 'dotnetsay' failed to install. This failure may have been caused by:
You are attempting to install a preview release and did not use the --version option to specify the version.
A package by this name was found, but it was not a .NET tool.
The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
You mistyped the name of the tool.
For more reasons, including package naming enforcement, visit https://aka.ms/failure-installing-tool
I also tried to install the dotnetsay but got the same error:
dotnet tool install dotnetsay -g
Before upgrading to .net 5, I was able to install dotnet-ef 3.1 and everything was fine. I guess the issue mighe be caused by an invalid certificate on my local, but not sure, and I don't know which certificate is used for nuget.
Any help is appreciated.
I ran into the same problem with the same setup (win 10, vs 2019 16.8, .net 3.1 -> .net 5.0). For me the solution was to set a registry value as specified by this github comment by wfurt.
The solution copied from that comment:
Set the value Enabled (Dword) to 0 under the key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.3\Client
This comment by Gnbrkm41 provides a powershell script to accomplish the same.
Respected Sir/Madam,
I am trying to install IBM Process Designer, but getting below errors.
ERROR: The Installation Manager's registry information is inconsistent with its installation information.
ERROR: The registry information at "HKLM\SOFTWARE\IBM\Installation Manager" indicates that the Installation Manager is not installed. However, the information at the "C:\ProgramData\IBM\Installation Manager" data location indicates that Installation Manager 1.7.2 (internal version: 1.7.2000.20140227_0303) is installed at location "C:\Program Files\IBM\InstallationManager\eclipse".
00:00.76 ERROR [main] com.ibm.cic.agent.core.application.HeadlessApplication run The Installation Manager's registry information is inconsistent with its installation information. The registry information at "HKLM\SOFTWARE\IBM\Installation Manager" indicates that the Installation Manager is not installed. However, the information at the "C:\ProgramData\IBM\Installation Manager" data location indicates that Installation Manager 1.7.2 (internal version: 1.7.2000.20140227_0303) is installed at location "C:\Program Files\IBM\InstallationManager\eclipse".
Resolution provided by IBM at below url http://www-01.ibm.com/support/docview.wss?uid=swg21639541 says,
" Run IBM Installation Manager directly; do not use the LaunchPad. From the Windows Start menu, select All Programs ->IBM Installation Manager > IBM Installation Manager. When Installation Manager starts, click Install, ensure all products are selected, and click Next to start the typical installation. "
But when I start the installation manager from Windows Start menu , it does not provide me the option to install IBM Process Designer at all.
Please find error logs "" attached, which come when I try to install IBM Process Designer from its setup "installProcessDesigner_admin".
I have installed Process center v8.5 successfully but not the way suggested. I have first installed db2 separately( used same db2 setup which came inside IBM BPM 8.5 PACKAGE ) and then installed Process center v8.5 using launchpad.exe , as it was giving db related errors when I was trying to install directly from launchpad.exe in BPM package I think IBM installation manager got installed when I was installing IBM BPM V8.5.
Please guide
Error says Installation Manager has been already installed in different location.
I would suggest to open Installation Manager from Start, then
In Installation Manager, File - > Preferences -> Add repository.config
if 32 bit operating system - repository.config location (C:\IBM_Process_Designer\IM)
if 64 bit operating system - repository.config location (C:\IBM_Process_Designer\IM64)
I try to migrate asp site to windows azure.I follow this following link.
http://blogs.msdn.com/b/zkap/archive/2012/07/29/how-to-migrate-an-existing-asp-net-website-to-windows-azure.aspx
After follow the the step and try to debug I got following error:
Error 102 WAT080 : Failed to locate the Windows Azure SDK. Please make sure the Windows Azure SDK v1.7 is installed.
I search and found this link.I try to download and install but I got a error:
The installation package is not supported ........
Only last one is install.
I search and didn't found SDK v1.7 down load link.I am using VS2010 ULTIMATE.Thanks.