Visual Studio 2019 (Community Edition) - Cannot install/update Extensions - visual-studio-2019

It's a fresh installation of Visual Studio 2019 Community Edition on my fresh installation of Windows 10 (64 bit) on Intel i3 laptop.
Whenever I attempt to install an extension (for example, CodeMaid), I get COM ClassID not found error. I'm not sure why is this error. From google search and after referring to some articles, I think this error is due to 32bit COM on 64bit machine. Visual Studio attempts to look for the COM CLASSID under 64bit registry, but it fails since it might be under 32bit registry. This is just a wild guess.
Just to add to it, "Report a Problem" under "Help" is also not working for me, but NuGet Package Manager is working well; I could download and reference NuGet packages. Not sure if this is anywhere related to the Extensions, but just keeping this information posted for you.
Please help me to resolve this error.
I'm copying the complete error log of error I got when I attempted to install CodeMaid extension. This is surely not a extension-specific error because I get the same error when I attempt to Update extensions like "Live Share".
Take a look at following error log for details:
07-10-2020 16:14:08 - Microsoft VSIX Installer
07-10-2020 16:14:08 - -------------------------------------------
07-10-2020 16:14:08 - vsixinstaller.exe version:
07-10-2020 16:14:08 - 16.7.3069
07-10-2020 16:14:08 - -------------------------------------------
07-10-2020 16:14:08 - Command line parameters:
07-10-2020 16:14:08 - C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\vsixinstaller.exe,/appidinstallpath:C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\devenv.exe,/skuName:Community,/skuVersion:16.7.30523.141,/appidname:Microsoft Visual Studio Community 2019,/culture:en-US,/noep,C:\Users\Ruturaaj\AppData\Local\Temp\VSIX50es31ad.vsix
07-10-2020 16:14:08 - -------------------------------------------
07-10-2020 16:14:08 - Microsoft VSIX Installer
07-10-2020 16:14:08 - -------------------------------------------
07-10-2020 16:14:09 - Initializing Install...
07-10-2020 16:14:10 - Extension Details...
07-10-2020 16:14:10 - Identifier : 4c82e17d-927e-42d2-8460-b473ac7df316
07-10-2020 16:14:10 - Name : CodeMaid
07-10-2020 16:14:10 - Author : Steve Cadwallader
07-10-2020 16:14:10 - Version : 11.1.209
07-10-2020 16:14:10 - Description : CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, R, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.
07-10-2020 16:14:10 - Locale : en-US
07-10-2020 16:14:10 - MoreInfoURL : http://www.codemaid.net/
07-10-2020 16:14:10 - InstalledByMSI : False
07-10-2020 16:14:10 - SupportedFrameworkVersionRange : [4.7.2,)
07-10-2020 16:14:10 -
07-10-2020 16:14:10 - SignatureState : Unsigned
07-10-2020 16:14:10 - Supported Products :
07-10-2020 16:14:10 - Microsoft.VisualStudio.Community
07-10-2020 16:14:10 - Version : [15.0,17.0)
07-10-2020 16:14:10 -
07-10-2020 16:14:10 - References :
07-10-2020 16:14:10 - Prerequisites :
07-10-2020 16:14:10 - -------------------------------------------------------
07-10-2020 16:14:10 - Identifier : Microsoft.VisualStudio.Component.CoreEditor
07-10-2020 16:14:10 - Name : Visual Studio core editor
07-10-2020 16:14:10 - Version : [15.0,)
07-10-2020 16:14:10 -
07-10-2020 16:14:10 - Signature Details...
07-10-2020 16:14:10 - Extension is not signed.
07-10-2020 16:14:10 -
07-10-2020 16:14:10 - System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {177F0C4A-1CD3-4DE7-A32C-71DBBB9FA36D} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at VSIXInstaller.LocationBasedSKU..ctor(String appidInstallPath, String appidName, Version vsVersion, String edition, String rootSuffix)
at VSIXInstaller.LocationBasedSKU..ctor(String appidInstallPath, String appidName, Version vsVersion, String edition, String rootSuffix, IntPtr alternateUserToken)
at VSIXInstaller.ExtensionService.GetInstallableDataImpl(IInstallableExtension extension, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable`1& skuData)
at VSIXInstaller.ExtensionService.GetInstallableData(String vsixPath, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable`1& skuData)
at VSIXInstaller.ExtensionService.ComputeInstallableExtensions(IStateData stateData, Boolean isRepairSupported, Boolean isExtensionPack, IDictionary`2 skuDataMapping, IList`1 installableExtensionsPaths)
at VSIXInstaller.App.Initialize(Boolean isRepairSupported)
at VSIXInstaller.App.Initialize()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)

Actually, when you uninstall VS, you could do a deep clean about VS on your PC and then reinstall it.
When you uninstall it, please enter C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\layout\InstallCleanup.exe to run the program. And it will uninstall all VS2017 and VS2019 version with the whole data.
If uninstalling VS2019 did not work, you can try this.
Besides,
delete folders like 16.0_xxxx under C:\Users\xxx(current user)\AppData\Local\Microsoft\VisualStudio`.
When you finish it, make sure that there is no folder of your current VS2019 version(community*professional**enterprise*) under C:\Program Files (x86)\Microsoft Visual Studio\2019.
====================================
Then, right-click on the vs_installer-->click run as administrator and then install the related extension development workload like this:
Last, when you finish the installation, please test it again.

Related

Sentry on React Native: Building for iOS breaks with "property 'options' not found on object of type 'PrivateSentrySDKOnly'"

I am using CircleCI to build for iOS (and Android) and recently, the iOS build fails with these error messages:
Compiling RNSentry.m
❌ /Users/distiller/project/node_modules/#sentry/react-native/ios/RNSentry.m:107:79: property 'options' not found on object of type 'PrivateSentrySDKOnly'
if (appIsActive && !sentHybridSdkDidBecomeActive && (PrivateSentrySDKOnly.options.enableAutoSessionTracking || PrivateSentrySDKOnly.options.enableOutOfMemoryTracking)) {
^
❌ /Users/distiller/project/node_modules/#sentry/react-native/ios/RNSentry.m:107:137: property 'options' not found on object of type 'PrivateSentrySDKOnly'
if (appIsActive && !sentHybridSdkDidBecomeActive && (PrivateSentrySDKOnly.options.enableAutoSessionTracking || PrivateSentrySDKOnly.options.enableOutOfMemoryTracking)) {
^
❌ /Users/distiller/project/node_modules/#sentry/react-native/ios/RNSentry.m:155:39: property 'getSdkName' not found on object of type 'PrivateSentrySDKOnly'
#"name": PrivateSentrySDKOnly.getSdkName,
^
❌ /Users/distiller/project/node_modules/#sentry/react-native/ios/RNSentry.m:195:34: property 'options' not found on object of type 'PrivateSentrySDKOnly'
if (PrivateSentrySDKOnly.options.debug
It has once worked to build for iOS, and I think this has something to do with the version of Sentry; I think I tried to update the Sentry version to 4.9.0, only to find that 4.9.0 has some serious issues (I think). I am not smart enough to dechiffer exactly what the conclusions here are, but I think it relates:
https://github.com/getsentry/sentry-cocoa/issues/1665
https://github.com/getsentry/sentry-react-native/issues/2530
(I was looking for another URL that related, but cant find now)
Android works to build with the configs and whatnot, but iOS fails. I am not sure what do to do resolve this, and I would like some input =)
the package.json has Sentry 4.8.0:
"dependencies": {
"#react-native-async-storage/async-storage": "^1.17.4",
"#react-native-community/cli-platform-android": "^6.3.0",
"#sentry/react-native": "4.8.0",
"#turf/distance": "^6.0.1",
"axios": "^1.1.1",
"dotenv": "^16.0.0",
"eventing-bus": "^2.0.1",
"jetifier": "^2.0.0",
"lodash": "^4.17.15",
"moment": "^2.29.3",
"moment-timezone": "^0.5.34",
"patch-package": "^6.4.7",
"react": "17.0.2",
"react-native": "0.67.4",
Here is the rest of my config/setup:
PS C:\Github\alfaonlinev3> npx react-native doctor
Common
✓ Node.js
✓ yarn
Android
✓ JDK
✖ Android Studio - Required for building and installing your app on Android
✓ Android SDK - Required for building and installing your app on Android
✓ ANDROID_HOME
Errors: 1
Warnings: 0
Note: I have Android Studio installed, and it is working for Android native project. No idea why doctor complains or how to resolve it, other than downloading another copy of Android studio?
envinfo:
Visual Studio code: 1.73.1
System:
OS: Windows 10 10.0.19044
CPU: (24) x64 AMD Ryzen 9 3900X 12-Core Processor
Memory: 5.01 GB / 31.95 GB
Binaries:
Node: 16.15.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.4 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 8.5.5 - C:\Program Files\nodejs\npm.CMD
Managers:
pip2: 19.2.3 - C:\Python27\Scripts\pip2.EXE
pip3: 21.1.1 - C:\Python39\Scripts\pip3.EXE
Utilities:
Git: 2.34.1.
SDKs:
Android SDK:
API Levels: 28, 29, 30, 31, 33
Build Tools: 28.0.3, 29.0.0, 29.0.2, 29.0.3, 30.0.2, 30.0.3, 31.0.0
Windows SDK:
AllowDevelopmentWithoutDevLicense: Enabled
IDEs:
VSCode: 1.73.1 - C:\Program Files\Microsoft VS Code\bin\code.CMD
Visual Studio: 17.3.32519.111 (Visual Studio Community 2022), 16.11.32106.194 (Visual Studio Community 2019)
Languages:
Java: 19.0.1
Python: 3.9.5
Databases:
SQLite: 3.32.2 - C:\Users\wagge\AppData\Local\Android\Sdk\platform-tools\sqlite3.EXE
Browsers:
Chrome: 107.0.5304.121
Edge: Spartan (44.19041.1266.0), Chromium (107.0.1418.56)
Internet Explorer: 11.0.19041.1566
IDEs:
Android Studio: Not Found
Visual Studio: 17.3.32519.111 (Visual Studio Community 2022), 16.11.32106.194 (Visual Studio Community 2019)
Languages:
Java: 19.0.1
npmPackages:
#react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.67.4 => 0.67.4
react-native-windows: Not Found
npmGlobalPackages:
*react-native*: Not Found
UPDATE
I ran npm-update, it suggested updating sentry to 4.10.1. After that was done, I see this change in package.json:
also yarn.lock
but still, the builds fails with the same error.
UPDATE 2
I check podfile.* and I see stuff like:
podfile.lock:
- RNSentry (3.4.2):
- React-Core
- Sentry (= 7.11.0)
- RNSnackbar (2.4.0):
- React-Core
- RNSVG (9.13.6):
- React
- Sentry (7.11.0):
- Sentry/Core (= 7.11.0)
- Sentry/Core (7.11.0)
The file podfile does not contain "sentry" at all.
Looks like it is your problem:
https://github.com/getsentry/sentry-react-native/pull/2599/files
Try to upgrade react native sentry to 4.10.1
From your podfile.lock it looks like you have an old version of the RNSentry pod installed.
- RNSentry (3.4.2):
Try to run the following:
cd ios
pod update RNSentry
The RNSentry must be the same version as #sentry/react-native. So in your case it should've been 4.10.1.

VS Community 2019 error while installing Analysis Service and Reporting Services

I'm trying to add in the extensions to Visual Studio Community 2019 the Analysis Services and the Reporting Services and every time I get the error below. I have tried to clean the Temp file and then repair the community version but I am still getting this error and I can't use .BIM Model in my project until I get these working.
What do I need to do to get this working?
Thank you!
JB
*
3/11/2021 3:41:06 PM - Microsoft VSIX Installer 3/11/2021 3:41:06 PM -
------------------------------------------- 3/11/2021 3:41:06 PM - vsixinstaller.exe version: 3/11/2021 3:41:06 PM - 16.9.1050 3/11/2021
3:41:06 PM - ------------------------------------------- 3/11/2021
3:41:06 PM - Command line parameters: 3/11/2021 3:41:06 PM -
C:\Program Files (x86)\Microsoft Visual
Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\VSIXInstaller.exe,C:\Users\berglunj\Downloads\Microsoft.DataTools.AnalysisServices.vsix,/callingprocessid:18488,/installas:3232
3/11/2021 3:41:06 PM - -------------------------------------------
3/11/2021 3:41:06 PM - Microsoft VSIX Installer 3/11/2021 3:41:06 PM -
------------------------------------------- 3/11/2021 3:41:06 PM - System.ComponentModel.Win32Exception (0x80004005): Not all privileges
or groups referenced are assigned to the caller at
System.Diagnostics.Process.SetPrivilege(String privilegeName, Int32
attrib) at System.Diagnostics.Process.EnterDebugMode() at
VSIXInstaller.UserImpersonationHelper.DuplicateSuppliedToken(IntPtr
token, UInt32 callingProcessId) at
VSIXInstaller.App.Initialize(Boolean isRepairSupported) at
VSIXInstaller.App.Initialize() at
System.Threading.Tasks.Task`1.InnerInvoke() at
System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown --- at
Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception
exceptionObject)
Run Powershell as Administrator and go to file
Example (if file save on Desktop):
cd ~\Desktop\
.\file.vsix
This looks like missing permissions
(0x80004005): Not all privileges or groups referenced are assigned to the caller at System.Diagnostics.Process.SetPrivilege(String privilegeName, Int32 attrib) at System.Diagnostics.Process.EnterDebugMode() at
assuming you ran this as admin, it could be missing debug privileges. in our infrastructure for example, we have removed debug privileges for admins.
this can be found in secpol.msc (or GPO editor) in path
Computer Configuration / Policies / Windows Settings / Security Settings / Local Policies/User Rights Assignment / Debug Programs
i currently have no explanation why some vsix packages need this privilege, because not all do (and requiring debug privs for package installations makes not a lot of sense IMHO)
You need admin privilage to run the VSIX setup.
Run Visual Studio with Administrator privilege by
right click the VS icon -> Run as asministrator
Install the VSIX via the Extension
VSIX should be installed and solve the problem.

why am i getting error CS0246 in .net core 3?

I created a project in dot-net core 3.0.100. but i got mysterious error while try to run the project, this occurred after i installed few packages which listed bellow.
- > Microsoft.AspNet.WebApi.Core 5.2.7 5.2.7
- > Microsoft.AspNetCore.Mvc 2.2.0 2.2.0
- > Microsoft.AspNetCore.Razor.Language 2.2.0 2.2.0
- > Microsoft.EntityFrameworkCore 3.1.0 3.1.0
- > Microsoft.EntityFrameworkCore.Design 3.1.0 3.1.0
- > Microsoft.EntityFrameworkCore.Tools 3.1.0 3.1.0
- > Npgsql.EntityFrameworkCore.PostgreSQL 3.1.0 3.1.0
- > Swashbuckle.AspNetCore 5.0.0-rc4 5.0.0-rc4
ERROR MESSAE IN DETIL
[![D:\AngularAdmin-panel\API\API.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Core 5.2.7' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETCoreApp,Version=v3.0'. This package may not be fully compatible with your project.
D:\AngularAdmin-panel\API\API.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Core 5.2.7' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETCoreApp,Version=v3.0'. This package may not be fully compatible with your project.
C:\Program Files\dotnet\sdk\3.0.100\Sdks\Microsoft.NET.Sdk.Razor\build\netstandard2.0\Sdk.Razor.CurrentVersion.targets(404,5): warning RAZORSDK1006: Detected Razor language version downgrade. This is typically caused by a reference to the Microsoft.AspNetCore.Razor.Design package. Consider removing this package reference. \[D:\AngularAdmin-panel\API\API.csproj\]
CSC : warning CS8034: Unable to load Analyzer assembly C:\Users\DEV4\.nuget\packages\microsoft.aspnetcore.mvc.analyzers\2.2.0\analyzers\dotnet\cs\Microsoft.AspNetCore.Mvc.Analyzers.dll : Assembly with same name is already loaded \[D:\AngularAdmin-panel\API\API.csproj\]
Startup.cs(29,16): error CS0246: The type or namespace name 'IConfigurtion' could not be found (are you missing a using directive or an assembly reference?) \[D:\AngularAdmin-panel\API\API.csproj\]
The build failed. Fix the build errors and run again.][1]][1]

F# on macOS - Fake fails to build

I am getting an error when trying to build a simple F# project on macOS High Sierra.
$ mono --version
Mono JIT compiler version 5.0.1.1 (2017-02/5077205 Sun Sep 17 18:29:46 BST 2017)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: normal
SIGSEGV: altstack
Notification: kqueue
Architecture: amd64
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen (concurrent by default)
Steps:
Open VS Code
Ionide New F# Project
Choose the Suave Project Template
$ mono .paket/paket.exe install
$ ./build.sh
The error is:
1) System.Exception: dotnet build failed
at FSI_0005.Build+runDotnet#40.Invoke (System.String message) [0x00001] in <c9993ec69ddb4848af99438005012ea7>:0
at Microsoft.FSharp.Core.PrintfImpl+StringPrintfEnv`1[TResult].Finalize () [0x00012] in <5893d081904cf4daa745038381d09358>:0
at Microsoft.FSharp.Core.PrintfImpl+Final1#224[TState,TResidue,TResult,A].Invoke (Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] env, A a) [0x00038] in <5893d081904cf4daa745038381d09358>:0
at Microsoft.FSharp.Core.OptimizedClosures+Invoke#3253[T2,TResult,T1].Invoke (T2 u) [0x00001] in <5893d081904cf4daa745038381d09358>:0
at FSI_0005.Build.runDotnet (System.String workingDir, System.String args) [0x00048] in <c9993ec69ddb4848af99438005012ea7>:0
at FSI_0005.Build+clo#64-6.Invoke (System.String p) [0x0000a] in <c9993ec69ddb4848af99438005012ea7>:0
at Microsoft.FSharp.Collections.SeqModule.Iterate[T] (Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] action, System.Collections.Generic.IEnumerable`1[T] source) [0x0002d] in <5893d081904cf4daa745038381d09358>:0
at FSI_0005.Build+clo#62-5.Invoke (Microsoft.FSharp.Core.Unit _arg4) [0x0000b] in <c9993ec69ddb4848af99438005012ea7>:0
at Fake.TargetHelper+targetFromTemplate#209-1[a].Invoke (Microsoft.FSharp.Core.Unit unitVar0) [0x00001] in <59b649fdccf1c534a7450383fd49b659>:0
at Fake.TargetHelper.runSingleTarget (Fake.TargetHelper+TargetTemplate`1[a] target) [0x0004b] in <59b649fdccf1c534a7450383fd49b659>:0
How can I get this working?
Ionide did not pick the correct target framework by default.
You need to make the following changes:
To *.fsproj, change the target framework to:
<TargetFramework>netcoreapp2.0</TargetFramework>
To paket.dependencies, change the framework to:
framework: >= netcoreapp2.0
Run Paket again:
$ mono .paket/paket.exe install
Run the build script again:
$ ./build.sh

Trivial snippet of F# code does not work under MONO

Here is a bit of code that won't win awards for complexity:
[<EntryPoint>]
let main argv =
let i = 1I
printfn "One is %A\n" i
0 // return an integer exit code
It's compiled as follows: "c:/Program Files (x86)/Microsoft SDKs/F#/3.0/Framework/v4.0/Fsc.exe" --out:numericstest.exe --debug:full --target:exe --standalone Program.fs
Under Windows it produces the expected result. However under Mono 3.0.7 compiled under Ubuntu it instead says:
mono numericstest.exe
Unhandled Exception: System.InvalidProgramException: Invalid IL code in System.Numerics.BigInteger:get_One (): method body is empty.
at Program.main (System.String[] argv) [0x00000] in <filename unknown>:0[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidProgramException: Invalid IL code in System.Numerics.BigInteger:get_One (): method body is empty.
at Program.main (System.String[] argv) [0x00000] in <filename unknown>:0
What am I doing wrong please? Many thanks.
There's nothing wrong with your code -- that exception is due to your code anyway. It looks like there's something wrong with the System.Numerics.dll assembly on your machine; either it's not installed correctly, it's getting compiled incorrectly (e.g., by the Mono C# compiler), or it's doing some kind of type forwarding which is not working like it should, etc.
What happens if you run the code without using BigInteger (via the I suffix)?
I tried your code in my Ubuntu (12.04, 32-bit) VM running under VirtualBox. The code compiled and ran as expected. Here's the output if you want:
Compile/Run
jack#jack-linux:~/Desktop$ fsharpc --out:JoeHuha.exe --debug:full --target:exe --standalone JoeHuha.fs
F# Compiler for F# 3.0 (Open Source Edition)
Freely distributed under the Apache 2.0 Open Source License
jack#jack-linux:~/Desktop$ mono JoeHuha.exe
One is 1
Mono version info
jack#jack-linux:~/Desktop$ mono -V
Mono JIT compiler version 3.0.5 (master/1643364 Fri Feb 22 19:31:07 EST 2013)
Copyright (C) 2002-2012 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: x86
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: Included Boehm (with typed GC and Parallel Mark)

Resources