Unable to use the Nuget Manager in VS2012 - visual-studio-2012

Getting error when i try to install in package Manager console. Install-Package : Unable to find package 'System.Data.SQLite'. At first, I thought that i enter the wrong package so i double check what i type in the console and I pretty sure that i entered the correct command. so I go to the Manage Nuget Package in my VS2012 and i getting also error.
my nuget settings:
How can I fix it?

You need to enable TLS 1.2, which is required since june 2020.
start regedit.exe
go to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v4.0.30319
create DWORDs SystemDefaultTlsVersions and SchUseStrongCrypto and set both to 1.
This will works since Windows 8, if you still use Windows 7, you need to enable TLS 1.2 first.

Related

Azure DevOps: Chocolatey, Install Google Chrome Issue

I am running selenium tests on Azure DevOps via the release pipelines. I am trying to specify the version of the Google Chrome i wish to use on the GUI, but when i declare it it fails straight away, but the Chocolatey website approves of the version. I am thinking maybe the syntax in which i am declaring the Google Chrome version is incorrect?
I also declared the version below, where it says "The version of the package that is to be installed", but it fails also.
Another question; is there a way to declare the width of Google Chrome for these tests when they are being ran via Azure DevOps?
The Chocolatey package website states that CLI command to install that specific version of Google Chrome is:
choco install googlechrome --version=86.0.4240.75
So my guess is that you should set googlechrome as the package id ("The id of the package(s) that are to be installed"), and 86.0.4240.75 for the version field.
As per #Adil Leghari's comment within Chocolatey GoogleChrome 86.0.4240.75 package page:
Just a heads up, there is a version mis-match on this package, and it may partly be the fault of Google. The Google Chrome Enterprise site lists the version as 86.0.4240.75, but the actual MSI package is stating a version of 68.36.75. This may be a problem for folks who are attempting to track and audit package versions.
Hence you must be facing the issue.
Solution
The latest published GoogleChrome version is 86.0.4240.193.
So as a solution you can either:
Specify The id of the package(s) that are to be installed as: GoogleChrome 86.0.4240.183
Else run the following command from the command line or from PowerShell:
choco install googlechrome --version=86.0.4240.193

error NU1102: Unable to find package NuGet.Frameworks with version (>= 4.9.3)

I'm getting this error when I try to build a .NET Core solution with Azure DevOps:
error NU1102: Unable to find package NuGet Frameworks with version (>= 4.9.3)
error NU1102: - Found 33 version(s) in http://nuget.bentley.com/nuget/Default [ Nearest version: 4.7.0-preview1-4986 ]
The error occurs in the Cake script when a NuGet restore is being executed by dotnet.exe CLI:
Executing: "d:/vsts/a/_tool/dncs/2.2.100/x64/dotnet.exe" restore "./src/StorageRegistryPortal.sln" --source "http://nuget.bentley.com/nuget/Default"
It tries to restore the NuGet packages from the solution file before throwing the NU1102 error above:
Restoring packages for d:\vsts\a\2921\s\src\StorageRegistryPortal\StorageRegistryPortal.csproj...
Nothing in my solution is referencing this "NuGet.Frameworks" package. So, I wonder if it is the "dotnet.exe" CLI itself that depends on this nuget package before it can restore the rest of the NuGet packages. Also, this only happens in AzureDevops. When I execute the build/cake script on my local PC, it is able to successfully restore all of the nuget packages with no issues.
I've already tried adding a "Use Nuget 4.9.3" task to the build pipeline, but I get the same error.
NOTE: If I remove that "Use Nuget 4.9.3" task, then the error changes to (>= 4.7.0). So, it appears to be looking for the Nuget.Framework that matches the current version of nuget.exe but not finding it.
Here is the screenshot of my build pipeline setup:
TL;DR
This sometimes happens when running dotnet restore on one of my Linux/Ubuntu build servers when pulling from a private Azure DevOps Artifacts/Packages NuGet repo.
The solutions that work for me:
Rebooting the Linux machine, or
Deleting the NuGet cache at ~/.local/share/NuGet/v3-cache/[directory-with-name-of-my-private-nuget-repo]
Background
The error I get is:
error NU1102: Unable to find package [Name-of-my-custom-nuget-package] with version (>= 5.0.116)
I have a nuget.config file that is properly configured to pull down my NuGet packages.
The error is complete nonsense.
The version does exist
Other Linux boxes have no problems running dotnet restore and getting the version of the package
I can run dotnet restore on the same Linux machine for other (older) versions and it's fine
It just seems that dotnet restore decides, for whatever reason, that it's not even going to try to look for the new version of the package.
I've generally found Azure DevOps private NuGet repos secured with AAD to be especially problematic and annoying when dealing with Linux. It really needs some love and attention from the NuGet team.
I was finally able to resolve this issue. It turns out there was a breaking change from the nuget.org folks which caused our internal nuget server to fail to serve the 4.7 and 4.9.3 versions of NuGet.Frameworks. This is an essential nuget library which is required by dotnet.exe to restore nuget packages. For .net core projects, that framework needs to be version 4.7 or higher. Anyway, the resolution was that we had to make adjustments to our internal nuget server to account for the changes from nuget.org.
Could you please have a try to use Nuget 4.9.1 as screenshot then run your build again?
Hope it helps.
Try to download Nuget.Framework of higher version from here https://www.nuget.org/downloads.
In my case it was a problem with version 5.0.0 and I installed 5.0.2 then error disappeared.

Unable to install Visual C++ Build Tools, A setup package is either missing or damaged

I am trying to install Visual C++ Build Tools. But while installing I keep getting this error during setup
A setup package is either missing or damaged
I even tried copying respective package from VS Enterprise edition to the path but it keeps repeating this error. I also tried selecting download package option but no gain.
I think you might have Installed the MS BUILD TOOLS after DOWNLOADING it from the following LINK
http://download.microsoft.com/download/5/F/7/5F7ACAEB-8363-451F-9425-68A90F98B238/visualcppbuildtools_full.exe
I did the same and got the same ERROR
INSTALL using the following LINK
https://www.microsoft.com/en-in/download/confirmation.aspx?id=48159
In my case using Windows 7 I had accidently disabled some services for better performance. I used:
net start bits
net start msiserver
and it worked

IIS Media Services on Windows 10

Has anyone managed to get IIS media services to install on Windows 10? When I try it tells me I need IIS 7.0 or higher. I have version 10.0.10240.16384 installed so it seems it is not detecting the version correctly. I am guessing there is a registry hack somewhere that will get it to install - any help would be greatly appreciated.
Please try this:
Firstly closed IIS Manager, then changed the IIS MajorVersion in the registry to 9, installed urlrewrite from the MSI with no problems and changed the registry version back to 10.
Key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp
Value: MajorVersion
refer to:
https://forums.iis.net/t/1227944.aspx?IIS+Media+Service+4+1+failed+to+install+on+Windows10+because+it+can+t+recognize+it+is+IIS7+or+above
This is a more detailed description of the registry "hack" needed to fool the installer so as to install on Windows 10:
Open Regedit > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp
Edit "MajorVersion" and set the "DECIMAL" value to 9
Hit F5 while in Regedit
Now go install the ReWrite 2.0 module.
Change the "MajorVersion" back to "DECIMAL" value of 10
Hit F5 while in Regedit
Close Regedit
This came from: https://forums.iis.net/t/1223556.aspx

cant't get NetBeans to compile Java ME

I've been trying for the past 5 hours to make my java ME application to compile without any luck.
System:
W7 64X
NetBeans 7.0
Java JDK 32X
Error Message:
Execution failed with error code 1.
I've done the following things trying to fix it.
Added runMidlet to DEP.
turned off my anti-virus/firewall.
reinstalled and rebooted 5 times prolly.
and something I found on google.
Please edit <javamesdk_installdir>\toolkit-lib\modules\bootstrap\conf\system.properties and reconfigure the device-manager.object-registry.host=localhost to: device-manager.object-registry.host=127.0.0.1
And one other thing that can be the causes for this issue is the Port 1299 might be taken
Please edit <javamesdk_installdir>\toolkit-lib\modules\bootstrap\conf\system.properties and change
device-manager.object-registry.port=1299 to: device-manager.object-registry.port=1999
the only thing that has changed since I started is that now I get the error after 10 sec and before it was after 24sec.
Any kind of help is appreciated!
mine solved by installing standalone Java ME SDK http://www.oracle.com/technetwork/java/javame/javamobile/download/sdk/index.html then in the netbeans go to Tools > Java Platform then remove default J2ME Platform, next click Add Platforms and locate your new Java ME SDK.
if that still failed try uninstall Java ME Plugin in Tools > Plugins > Installed then install Mobility in Available Plugins Tab
I do not know how you added JME SDK 3, but check bellow my setup

Resources