Each project is throwing ControllerConnectionException on startup - exception

Ok, I don't rly know where to start, but let's do this.
So for two weeks I had my last working day where everything was working fine in VS 2019 (16.11.4). Today I wanted to start a project, and i got the following error message:
Unfortunately, a process used by VS has encountered an unrecoverable error.
Stack Trace:
Microsoft.ServiceHub.Client.ControllerConnectionException : Controller terminated before accepting connections. Exit code: -1073741674.
at async Microsoft.ServiceHub.Client.HubControllerClient.StartAsync(<Unknown Parameters>)
at async Microsoft.ServiceHub.Client.HubClient.LaunchOrFindControllerAsync(<Unknown Parameters>)
at async Microsoft.ServiceHub.Client.HubClient.GetLocationServiceAsync(<Unknown Parameters>)
at async Microsoft.ServiceHub.Utility.Shared.ServiceHubRetry.ExecuteAsync[TReturnType](<Unknown Parameters>)
at async Microsoft.ServiceHub.Utility.Shared.ServiceHubRetry.ExecuteAsync[TReturnType](<Unknown Parameters>)
at async Microsoft.ServiceHub.Client.HubClient.GetThisAsRemoteServiceBrokerAsync(<Unknown Parameters>)
at async Microsoft.ServiceHub.Client.HubClient.<Reset>b__54_0(<Unknown Parameters>)
at async Microsoft.VisualStudio.Threading.AsyncLazy`1.<>c__DisplayClass13_0.<GetValueAsync>b__0[T](<Unknown Parameters>)
at async Microsoft.ServiceHub.Client.HubClient.GetPipeAsync(<Unknown Parameters>)
at async Microsoft.ServiceHub.Client.HubClient.RequestServiceAsync(<Unknown Parameters>)
at async Microsoft.CodeAnalysis.Remote.ServiceHubRemoteHostClient.RequestServiceAsync(<Unknown Parameters>)
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
Followed by another error:
There was an error activating the remote language server. Plese select Help > Send Feedback > Report a problem.
These errors also appear, when I create a new project. The only way I can start VS19 without errors is, when I click "Continue without code" in the popup.
So I tried to repair or modify VS. When I want to repair it, it failed. The popup which is prepairing the repair info is shutting down with no error message.
I didn't find that much information in the internet, especially with the error code.
Furthermore I detected, that I cannot install or uninstall VS19. Plus, I cannot install VS22, because it is aborting again after the "preparing the VS installer". Again no error is poping up.
A sample log:
[2cf4:0001][2021-12-15T17:45:47] Saving the current locale (de-DE) to user.json.
[2cf4:0001][2021-12-15T17:45:47] Setting the telemetry services
[2cf4:0004][2021-12-15T17:45:47] Creating a new telemetry service.
[2cf4:0001][2021-12-15T17:45:47] Visual Studio Installer Version: 3.0.4496
[2cf4:0001][2021-12-15T17:45:47] Raw Command line: "C:\Program Files (x86)\Microsoft Visual Studio\Installer\setup.exe"
[2cf4:0001][2021-12-15T17:45:47] Using registry value of (1) to theme installer.
[2cf4:0001][2021-12-15T17:45:47] Getting singleton lock. Mutex name: DevdivInstallerUI
[2cf4:0004][2021-12-15T17:45:47] Telemetry session ID: ...
[2cf4:0001][2021-12-15T17:45:47] Getting singleton lock succeed.
[2cf4:0006][2021-12-15T17:45:47] Creating new ExperimentationService
[2cf4:0006][2021-12-15T17:45:47] Telemetry property VS.ABExp.Flights : lazytoolboxinit;fwlargebuffer;refactoring;spmoretempsbtn1;asloff;keybindgoldbarext;asynccsproj;vsfricheditor;completionapi;tn-vsmacnps-7;toggleblockcomment;tasmigddvs;multitenanttasmigration_002;vsfdevcom2;lsprmsgvol;debugger-init-asynccf;vswnewinstaller;links_carousel_tfl;azure_links_tf
**[2cf4:0003][2021-12-15T17:45:47] An abnormal shutdown was detected from the previous telemetry session.**
[2cf4:0004][2021-12-15T17:45:47] Telemetry property vs.willow.source : WPF
[2cf4:0004][2021-12-15T17:45:47] Telemetry property vs.willow.locale : de-DE
[2cf4:0004][2021-12-15T17:45:47] Telemetry property vs.willow.installerversion : 3.0.4496.34889
[2cf4:0004][2021-12-15T17:45:47] Telemetry property vs.willow.startmethod : direct
[2cf4:0004][2021-12-15T17:45:47] Telemetry property vs.willow.activityid : ...
[2cf4:0004][2021-12-15T17:45:47] Telemetry property vs.willow.campaign : 70
[2cf4:0004][2021-12-15T17:45:47] Telemetry property vs.willow.passive : False
[2cf4:0004][2021-12-15T17:45:47] Telemetry property vs.willow.quiet : False
[2cf4:0004][2021-12-15T17:45:47] Telemetry property vs.willow.processtype : ui
[2cf4:0001][2021-12-15T17:45:47] Monitor center position: 960, 585
[2cf4:0001][2021-12-15T17:45:47] Showing the window.
I didn't really know what Telemetry was for. Can this cause any issues due to fireall/network problems, that I cannot install, repair, uninstall VS?
With sfc /scannow I got following lines:
2021-12-16 16:25:52, Info CSI 00000293 [SR] Cannot repair member file [l:15]'mscorlib.ni.dll' of NetFx4-mscorlib_ni, version 4.0.15805.350, arch amd64, versionScope neutral, pkt {l:8 b:b03f5f7f11d50a3a} in the store, hash mismatch
2021-12-16 16:25:52, Info CSI 00000294 [SR] This component was referenced by [l:78]'Package_3_for_KB5004331~31bf3856ad364e35~amd64~~10.0.4400.1.5004331-51_neutral'
2021-12-16 16:25:52, Info CSI 00000295 Hashes for file member [l:15]'mscorlib.ni.dll' do not match.
2021-12-16 16:25:52, Info CSI 00000297 [SR] Could not reproject corrupted file \??\C:\Windows\Microsoft.NET\Framework64\v4.0.30319\NativeImages\\mscorlib.ni.dll; source file in store is also corrupted
Does this have any connection to my general problem?
Maybe(!) a very similar problem, this guy was facing:
https://developercommunity.visualstudio.com/t/visual-studio-installer-vs2019-keep-crashing-sudde/711824
So... (further) things I tried:
Installed .NET Frameworks again
Tried the reapair tools for VS and .NET
Tried to repair VS19, but I cant
Run sfc scannow
Run chkdsk scan
Several reboots, restarting VS, ...

Related

IIS-10 worker processes crashing

We recently upgraded our server O/S from Win2012 to Win2019. While on 2012, in IIS, we had configured a Virtual Directory called PDFReader. The physical path was a filestream directory which contains a series of PDFs, which is essentially just a UNC share.
The directory was being called by an SSRS report & its sole purpose was to call the PDF from filestream and render it in SSRS.
We used a simple virtual directory when we were on Windows 2012 which worked fine. But we noticed that the app pool kept crashing on 2019. So that led to me convert it to an application because that way, I could assign an individual app pool to it & manage the rapid fail protection settings as a band-aid for now until we could identify the underlying issue. That has been getting us by.
I tried a few things such as changing the application pool identity to LocalSystem, then a privileged domain user w/SQL Filestream access. I also tried changing the .NET CLR Version to "No Managed Code" and the pipeline from Integrated to Classic. The latter seemed to slow the failures slightly, but nevertheless the problem persists.
Here's the stacktrace which we consistently see every few minutes as users frequently pull up PDFs.
Faulting application name: w3wp.exe, version: 10.0.17763.1, time stamp: 0xa7ccada2
Faulting module name: nativerd.dll, version: 10.0.17763.1, time stamp: 0x84a81d7a
Exception code: 0xc0000005
Fault offset: 0x0000a8f0
Faulting process id: 0x25cc
Faulting application start time: 0x01d921151b65f242
Faulting application path: C:\Windows\SysWOW64\inetsrv\w3wp.exe
Faulting module path: C:\Windows\System32\inetsrv\nativerd.dll
Report Id: 88535cc3-8716-40f7-bfab-1f53f9c77b92
Faulting package full name:
Faulting package-relative application ID:
Fault bucket 1192683016347496699, type 1
Event Name: APPCRASH
Response: Not available
Cab Id: 0
Problem signature:
P1: w3wp.exe
P2: 10.0.17763.1
P3: a7ccada2
P4: nativerd.dll
P5: 10.0.17763.1
P6: 84a81d7a
P7: c0000005
P8: 0000a8f0
P9:
P10:
There are a number of PDFs that are called which one might consider large, over 20MB with a handful of them over 100mb.
As for the user experience, since I implemented the rapid fail protection, the user doesn't run into the 503 errors anymore, requiring me to start the stopped app pool. Occasionally, when the worker process dies & hands off to the next one spawned, it's a minor delay.
Any help or insight would be appreciated.
Thanks,
Mike
Converted virtual directory to application.
Created/assigned individual app pool to application.
Changed rapid fail protection settings to allow for 25 failures in 10 minutes instead of the 5/5 out of the box.
Changed application pool identity to LocalSystem... Problem persisted. So I changed to a privileged domain user/local admin with proper SQL filestream rights, same behavior.
Ensured nativerd.dll was present in system directory, no discernible permissions issues.
Looked into MaxWebConfigFileSizeInKB registry key associated with nativerd.dll per a Microsoft KB article, but I don't see that key present in the registry.
Ran DebugDiag analysis with this summary result:
In w3wp__PDFReader__PID__160__Date__06_15_2022__Time_08_39_35AM__249__Second_Chance_Exception_C0000005.dmp the assembly instruction at nativerd!INDEXED_ARRAY_LIST::FindEntry+18 in c:\Windows\System32\inetsrv\nativerd.dll from Microsoft Corporation has caused an access violation exception (0xC0000005) when trying to read from memory location 0x00000038 on thread 6

Autodesk Forge third party updater dialog issue

We can open Revit files on Autodesk forge but recently we have run into a Revit file that have content from a third party plugin. When you open the file manually you get this dialog:
We think this dialog is causing this file to stop from loading the file further. Our question is how can we suppress this dialog.
We've added the Custom Failure Handling (as suggested), but it seems that this code is not even executed: we don't see any logs. The failure seems to occur directly after our log when our plugin starts (see ** Plugin code starts here.)
...
Running RevitAssemblyResolver....
Initializing RevitCoreEngine...
Selected Revit\RCE install Path: (from app.config) C:\RevitDir
Resolving location of Revit/RevitCoreEngine installation...
Running user application....
Found an addIn for registration: PlugIn01.addin
Initializing RCE....
Initializing RevitCoreEngine (and possibly running stub installer)...
Language not specified, using English as default
application.ActiveAddInId.GetGUID() = 000bd853-36e4-461f-9171-c5aceda4e724
** Plugin code starts here.
Initialize and get RCE: (VersionBuild) 18.0.0.0 (VersionNumber) 2018 (SubVersionNumber) 2018.3
Autodesk.Revit.Exceptions.InternalException: An internal error has occurred.
at Autodesk.Revit.ApplicationServices.Application.OpenDocumentFile(ModelPath modelPath, OpenOptions openOptions)
at DesignAutomationFramework.DesignAutomationData..ctor(Application revitApp, String mainModelPath)
at DesignAutomationFramework.DesignAutomationReadyEventArgs..ctor(Application revitApp, String mainModelPath)
at DesignAutomationFramework.DesignAutomationBridge.SetDesignAutomationReady(Application revitApp, String mainModelPath)
at RevitCoreEngineTest.RceConsoleApplication.Program.UserMain(CommandLineArgs cl)
RESULT: Failure - Result of running user app is failure
Finished running. Process will return: TestError
====== Revit finished running: revitcoreconsole ======
...
What we eventually did to have a successful run, was to recreate a new central file. Maybe the file was corrupt to start with.

Harmon.ie for SharePoint Exception on Init - Registry Access

I have a user who has successfully installed Harmon.ie to the computer, but the log file is showing an "Exception on Init" error. The complete error is below:
Starting Harmonie
2015-01-16 06:48:57,172 INFO [1] Mainsoft.Harmony.AddIn.HarmonyAddIn - OnConnection
2015-01-16 06:48:57,747 INFO [1] Mainsoft.Harmony.AddIn.HarmonyAddIn - Load Harmonie version: 3.4.0.9975 Outlook Version 14.0.0.7105 X86 bit
2015-01-16 06:48:57,748 ERROR [1] Mainsoft.Harmony.AddIn.HarmonyAddIn - Exception on Init
System.Security.SecurityException: Requested registry access is not allowed.
at System.ThrowHelper.ThrowSecurityException(ExceptionResource resource)
at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
at Mainsoft.Harmony.Utils.RedemptionCleaner.CleanOrphanRegistryKeys()
at Mainsoft.Harmony.AddIn.HarmonyAddIn.Init()
The Zone of the assembly that failed was:
MyComputer
Does anyone know the registry key that is trying to be accessed?
Harmon.ie needs to access at the stage reported in the stack traces you have originally attached the following keys under HKEY_CURRENT_USER\SOFTWARE\Classes
"Redemption.Addin",
"Redemption.AddressLists",
"Redemption.MAPIFolder",
"Redemption.MAPITable",
"Redemption.MAPIUtils",
"Redemption.RDOSession",
"Redemption.SafeAppointmentItem",
"Redemption.SafeContactItem",
"Redemption.SafeCurrentUser",
"Redemption.SafeDistList",
"Redemption.SafeInspector",
"Redemption.SafeJournalItem",
"Redemption.SafeMailItem",
"Redemption.SafeMeetingItem",
"Redemption.SafePostItem",
"Redemption.SafeReportItem",
"Redemption.SafeTaskItem",
"Mainsoft.Harmony.OutlookSidebar.TaskPaneSidebarAx"
Outlook should run under an account with sufficient privileges to read\write under HKEY_CURRENT_USER.
By the way, you are running a quite old version of Harmon.ie, I suggest you download and install the latest 4.5 version from harmon.ie web site.
--- Jean
This error indicates the user did not have sufficient permission to access this registry key.
Do you reproduce it when running Outlook as admin? (please try also to install as admin)
--- Jean

Play TypeSafe Activator fails to start - IllegalArgumentException "Failed to download new template catalog properties"

Moving from play 2.2.x to latest activator last night. Downloaded minimal 1.2.10, extracted it in program file (x86)\typesafe... and put the directory into the system path variable. cloned my repository, and when i executed activator run it downloaded the required modules and my app is up and running. All great so far. run works!
Then I tried to create a new app, and activator fails, with the following trace:
Checking for a newer version of Activator (current version 1.2.10)...
... our current version 1.2.10 looks like the latest.
Found previous process id: 9632
FOUND REPO = activator-local # file:////C:/Program%20Files%20(x86)/Typesafe/activator-1.2.10-minimal/repository
Play server process ID is 9760
[info] play - Application started (Prod)
[info] play - Listening for HTTP on /127.0.0.1:8888
[info] a.e.s.Slf4jLogger - Slf4jLogger started
[WARN] [10/30/2014 10:47:13.972] [default-akka.actor.default-dispatcher-2] [ActorSystem(default)] Failed to download new template ca
talog properties: java.lang.IllegalArgumentException: requirement failed: Source file 'C:\Users\admin\.activator\1.2.10\templates\in
dex.db_6e0565f0c8826b17.tmp' is a directory.
[ERROR] [10/30/2014 10:47:13.972] [default-akka.actor.default-dispatcher-2] [akka://default/user/template-cache] Could not find a te
mplate catalog. (activator.templates.repository.RepositoryException: We don't have C:\Users\admin\.activator\1.2.10\templates\cache.
properties with an index hash in it, even though we should have downloaded one
activator.templates.repository.RepositoryException: We don't have C:\Users\admin\.activator\1.2.10\templates\cache.properties with a
n index hash in it, even though we should have downloaded one
at activator.cache.TemplateCacheActor.preStart(TemplateCacheActor.scala:184)
at akka.actor.Actor$class.aroundPreStart(Actor.scala:470)
at activator.cache.TemplateCacheActor.aroundPreStart(TemplateCacheActor.scala:25)
at akka.actor.ActorCell.create(ActorCell.scala:580)
at akka.actor.ActorCell.invokeAll$1(ActorCell.scala:456)
at akka.actor.ActorCell.systemInvoke(ActorCell.scala:478)
at akka.dispatch.Mailbox.processAllSystemMessages(Mailbox.scala:263)
at akka.dispatch.Mailbox.run(Mailbox.scala:219)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
I've taken a look at several similar issues on SO and elsewhere. I've deleted .activator directory and retried, I've tried this process from behind a proxy and not, as well as offline (surely offline should work!), but it consistently gives the above error. activator ui gives the same error. I'm stuck and any suggestions would be appreciated. (Edit. tried with full activator download, rather than minimal, and I get the same error.)
Look for reasons it might be impossible to create or access 'C:\Users\admin.activator\1.2.10\templates\in
dex.db_6e0565f0c8826b17.tmp' ... maybe a permissions issue?
The failed check is for "is a directory" but that also fails if it just doesn't exist or can't be accessed.

MS CRM 2011 Install Failure "Action Microsoft.Crm.Setup.Server.InstallConfigDatabaseAction failed."

I'm trying to install MS CRM 2011, and I continually get the
"Action Microsoft.Crm.Setup.Server.InstallConfigDatabaseAction failed.--->System.Security.Authentication.AuthenticationException: Logon failure: unknown user name or bad password.---> System.DirectoryServices.DirectoryServicesCOMException: Logon failure: unknown user name or bad password."
Error. I've tried to uninstall and Reinstall SQL 2008. I have to apply the SP1 patch to it everytime I create an instance - which goes through ok. I don't get any errors in the wizard until it actually starts the installation process. Afterward I continually get this error. Here is a copy of the log:
11:49:22| Error| Installer Complete: ConfigDBInstaller - Error encountered
11:49:22|Warning| Error reported while configuring _Deployment. Attempting rollback
11:49:22| Info| ConfigDBInstaller: Beginning uninstall operation
11:49:22| Info| Executing Uninstall action:Microsoft.Crm.Setup.Server.UnregisterRoleAction
11:49:22| Info| UnregisterRoleAction does not apply since _Deployment is not a explicit server role.
11:49:22| Info| CrmAction execution time; UnregisterRoleAction; 00:00:00.0050000
11:49:22| Info| ConfigDBInstaller: Uninstall completed
11:49:22| Error| Install exception.System.Exception: Action Microsoft.Crm.Setup.Server.InstallConfigDatabaseAction failed. ---> System.Security.Authentication.AuthenticationException: Logon failure: unknown user name or bad password.
---> System.DirectoryServices.DirectoryServicesCOMException: Logon failure: unknown user name or bad password.
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_AdsObject()
at System.DirectoryServices.PropertyValueCollection.PopulateList()
at System.DirectoryServices.PropertyValueCollection..ctor(DirectoryEntry entry, String propertyName)
at System.DirectoryServices.PropertyCollection.get_Item(String propertyName)
at System.DirectoryServices.ActiveDirectory.PropertyManager.GetPropertyValue(DirectoryContext context, DirectoryEntry directoryEntry, String propertyName)
--- End of inner exception stack trace ---
at System.DirectoryServices.ActiveDirectory.PropertyManager.GetPropertyValue(DirectoryContext context, DirectoryEntry directoryEntry, String propertyName)
at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
at Microsoft.Crm.Admin.AdminService.ConfigDBSecurity.SystemUserService.GetCaseSafeName(String domain, String accountName)
at Microsoft.Crm.Admin.AdminService.ConfigDBSecurity.SystemUserService.GetCaseSafeName(String name)
at Microsoft.Crm.Admin.AdminService.ConfigDBSecurity.SystemUserService.Create(String name, Guid defaultOrganizationId)
at Microsoft.Crm.Setup.Database.StandardConfigSqlStrategy.AddInitialUser()
at Microsoft.Crm.Setup.Database.DatabaseInstallerBase.Install()
at Microsoft.Crm.Setup.Server.InstallConfigDatabaseAction.Do(IDictionary parameters)
at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
--- End of inner exception stack trace ---
at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
at Microsoft.Crm.Setup.Common.Installer.Install(IDictionary stateSaver)
at Microsoft.Crm.Setup.Server.ServerRoleInstaller.Install(IDictionary stateSaver)
at Microsoft.Crm.Setup.Common.ComposedInstaller.InvokeInstall(Installer installer, IDictionary stateSaver)
at Microsoft.Crm.Setup.Common.ComposedInstaller.InternalInstall(IDictionary stateSaver)
at Microsoft.Crm.Setup.Common.ComposedInstaller.Install(IDictionary stateSaver)
at Microsoft.Crm.Setup.Server.ServerSetup.Install(IDictionary data)
at Microsoft.Crm.Setup.Common.SetupBase.ExecuteOperation()
11:49:22|Verbose| Method exit: Microsoft.Crm.Setup.Server.ServerSetup.ExecuteOperation
11:49:22| Info| ActivatePage(ServerSetupFinishPage)
Thanks, any and all help is much appreciated!
edit CRM 4.0 Was installed and working perfectly fine. I tried fresh install and upgrade of 2011 edition and im having these problems
Are you an administrator on your domain? The CRM setup process adds some groups to AD, so you'll need access on the domain to create those groups if you are the one running the setup process.
Figured out the problem. I had to reassign the Webserver and application roles on the server, then reinstall sql server. That fixed the issue. For some reason the sql server thought the name had changed or something - despite numerous reinstallations. Not sure why or how - but that fixed it