Jul 15 2020 10:24 PM
Update.exe - Configuration parsing error
Jul 15 2020 10:33 PM
Hi @cmm1779 ,
It looks like a file permission issue for a file inside .net framework installation. You may try the following steps
1. Open the folder C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config
2. Right click web.config file and select Properties
3. Switch security tab
4. Select the user in which you are trying the update and provide Full Control Permission
5. Apply the settings and try again
Jul 15 2020 10:44 PM
@manuphilip
Hi @manuphilip,
I tried what you told which leads me to this:
I already had given full control but still its not working. Please guide me.
Jul 16 2020 12:10 AM
SolutionHi @cmm1779 ,
If you haven't restart the machine after the changes, please try after restarting the computer. If that won't help, please follow the steps also
1. Rename the machine.config file in the Config directory something like machine.config.backup
2. Rename machine.config.default file to machine.config.default.backup in the same folder
3. Copy machine.config.default.backup and rename to machine.config
4. Restart the machine.
Hope, this will help you
Jul 16 2020 08:29 PM
Hi @manuphilip ,
Thanks for the reply. But the following problem arises:
2020-05-23 18:09:07> Program: Starting Squirrel Updater: --install . --exeName=Teams_windows_x64.exe
2020-05-23 18:09:09> Unhandled exception: System.AggregateException: One or more errors occurred. ---> System.TypeInitializationException: The type initializer for 'Telemetry.PerfScenario' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Microsoft.Applications.Telemetry.Diagnostics.LimitingTraceLogger' threw an exception. ---> System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize ---> System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Access to the path 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config' is denied. (C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config) ---> System.UnauthorizedAccessException: Access to the path 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Configuration.Internal.InternalConfigHost.StaticOpenStreamForRead(String streamName)
at System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForRead(String streamName, Boolean assertPermissions)
at System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForRead(String streamName)
at System.Configuration.ClientConfigurationHost.OpenStreamForRead(String streamName)
at System.Configuration.BaseConfigurationRecord.InitConfigFromFile()
--- End of inner exception stack trace ---
at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)
at System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors()
at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)
--- End of inner exception stack trace ---
at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)
at System.Configuration.ClientConfigurationSystem.PrepareClientConfigSystem(String sectionName)
at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName)
at System.Configuration.ConfigurationManager.GetSection(String sectionName)
at System.Runtime.Caching.MemoryCacheStatistics.InitializeConfiguration(NameValueCollection config)
at System.Runtime.Caching.MemoryCacheStatistics..ctor(MemoryCache memoryCache, NameValueCollection config)
at System.Runtime.Caching.MemoryCache.InitDisposableMembers(NameValueCollection config)
at System.Runtime.Caching.MemoryCache.Init(NameValueCollection config)
at System.Runtime.Caching.MemoryCache..ctor()
at System.Runtime.Caching.MemoryCache.get_Default()
at Microsoft.Applications.Telemetry.Diagnostics.LimitingTraceLogger..cctor()
--- End of inner exception stack trace ---
at Microsoft.Applications.Telemetry.Diagnostics.LimitingTraceLogger.get_CacheExpirationTimeSpan()
at Microsoft.Applications.Telemetry.Settings.TelemetryManagerSettings..ctor(String source, AuthenticationSettings authentication, Uri collectorUrl, Dictionary`2 identifiers, Nullable`1 maxRetries, Nullable`1 baseBackoffForSendingRetries, Nullable`1 maxBackoffForSendingRetries, Nullable`1 parallelSenderTasksNum, Nullable`1 collectorRequestSizeLimitBytes, Nullable`1 dataPackageSizeLimitBytes, Nullable`1 maxRecordsInBatchNum, Nullable`1 defaultBatchingWaitingThreshold, Nullable`1 batchingWaitingThresholdJitter, Nullable`1 batchesNumWaitingForSendingToKeepBatching, Nullable`1 singleWaitingOnDequeueDurationWhenBatching, Nullable`1 recordsKeptInMemoryLimit, Nullable`1 perfCounterQueuePollingInterval, Nullable`1 statsResetInterval, Nullable`1 performanceCountersEnabled, Nullable`1 limitingTraceLoggerCachingTime, String performanceCountersCategoryName, Nullable`1 maxRecordNumToDequeueAtOneTimeByBatcher, Nullable`1 waitUntilNoRecordsTimeout, Nullable`1 waitUntilNoRecordsCheckingInterval, Nullable`1 poolBuffers, Nullable`1 compressPackage, String tenantToken, String additionalPerformanceCounters, Nullable`1 defaultPerformanceCounterCadence, Nullable`1 enableBeacons, Nullable`1 metricCadence, Nullable`1 kpiCadence, Nullable`1 enableTelemetryUploaderMode, Nullable`1 dequeueCount, Nullable`1 disableMultiTenantRequests, Nullable`1 telemetrySdkModeType)
at Microsoft.Applications.Telemetry.Settings.TelemetryManagerSettingsBuilder.Build()
at Microsoft.Applications.Telemetry.Desktop.DesktopTelemetryManager.AdvancedInitialize(TelemetryManagerSettingsBuilder settingsBuilder)
at Microsoft.Applications.Telemetry.Desktop.LogManager.Initialize(String tenantToken, LogConfiguration configuration)
at Telemetry.AriaWrapper.Initialize()
at Telemetry.AriaWrapper..ctor()
at Telemetry.PerfScenario..cctor()
--- End of inner exception stack trace ---
at Telemetry.PerfScenario.CreateOrGetMappedPerfScenario(String name, DataCategory category, Int32 timeoutDelay, Boolean ignoreTimeOut, Int32 startTime)
at Squirrel.Update.Program.<Install>d__10.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at Squirrel.Update.Program.executeCommandLine(String[] args)
at Squirrel.Update.Program.main(String[] args)
---> (Inner Exception #0) System.TypeInitializationException: The type initializer for 'Telemetry.PerfScenario' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Microsoft.Applications.Telemetry.Diagnostics.LimitingTraceLogger' threw an exception. ---> System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize ---> System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Access to the path 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config' is denied. (C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config) ---> System.UnauthorizedAccessException: Access to the path 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Configuration.Internal.InternalConfigHost.StaticOpenStreamForRead(String streamName)
at System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForRead(String streamName, Boolean assertPermissions)
at System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForRead(String streamName)
at System.Configuration.ClientConfigurationHost.OpenStreamForRead(String streamName)
at System.Configuration.BaseConfigurationRecord.InitConfigFromFile()
--- End of inner exception stack trace ---
at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)
at System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors()
at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)
--- End of inner exception stack trace ---
at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)
at System.Configuration.ClientConfigurationSystem.PrepareClientConfigSystem(String sectionName)
at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName)
at System.Configuration.ConfigurationManager.GetSection(String sectionName)
at System.Runtime.Caching.MemoryCacheStatistics.InitializeConfiguration(NameValueCollection config)
at System.Runtime.Caching.MemoryCacheStatistics..ctor(MemoryCache memoryCache, NameValueCollection config)
at System.Runtime.Caching.MemoryCache.InitDisposableMembers(NameValueCollection config)
at System.Runtime.Caching.MemoryCache.Init(NameValueCollection config)
at System.Runtime.Caching.MemoryCache..ctor()
at System.Runtime.Caching.MemoryCache.get_Default()
at Microsoft.Applications.Telemetry.Diagnostics.LimitingTraceLogger..cctor()
--- End of inner exception stack trace ---
at Microsoft.Applications.Telemetry.Diagnostics.LimitingTraceLogger.get_CacheExpirationTimeSpan()
at Microsoft.Applications.Telemetry.Settings.TelemetryManagerSettings..ctor(String source, AuthenticationSettings authentication, Uri collectorUrl, Dictionary`2 identifiers, Nullable`1 maxRetries, Nullable`1 baseBackoffForSendingRetries, Nullable`1 maxBackoffForSendingRetries, Nullable`1 parallelSenderTasksNum, Nullable`1 collectorRequestSizeLimitBytes, Nullable`1 dataPackageSizeLimitBytes, Nullable`1 maxRecordsInBatchNum, Nullable`1 defaultBatchingWaitingThreshold, Nullable`1 batchingWaitingThresholdJitter, Nullable`1 batchesNumWaitingForSendingToKeepBatching, Nullable`1 singleWaitingOnDequeueDurationWhenBatching, Nullable`1 recordsKeptInMemoryLimit, Nullable`1 perfCounterQueuePollingInterval, Nullable`1 statsResetInterval, Nullable`1 performanceCountersEnabled, Nullable`1 limitingTraceLoggerCachingTime, String performanceCountersCategoryName, Nullable`1 maxRecordNumToDequeueAtOneTimeByBatcher, Nullable`1 waitUntilNoRecordsTimeout, Nullable`1 waitUntilNoRecordsCheckingInterval, Nullable`1 poolBuffers, Nullable`1 compressPackage, String tenantToken, String additionalPerformanceCounters, Nullable`1 defaultPerformanceCounterCadence, Nullable`1 enableBeacons, Nullable`1 metricCadence, Nullable`1 kpiCadence, Nullable`1 enableTelemetryUploaderMode, Nullable`1 dequeueCount, Nullable`1 disableMultiTenantRequests, Nullable`1 telemetrySdkModeType)
at Microsoft.Applications.Telemetry.Settings.TelemetryManagerSettingsBuilder.Build()
at Microsoft.Applications.Telemetry.Desktop.DesktopTelemetryManager.AdvancedInitialize(TelemetryManagerSettingsBuilder settingsBuilder)
at Microsoft.Applications.Telemetry.Desktop.LogManager.Initialize(String tenantToken, LogConfiguration configuration)
at Telemetry.AriaWrapper.Initialize()
at Telemetry.AriaWrapper..ctor()
at Telemetry.PerfScenario..cctor()
--- End of inner exception stack trace ---
at Telemetry.PerfScenario.CreateOrGetMappedPerfScenario(String name, DataCategory category, Int32 timeoutDelay, Boolean ignoreTimeOut, Int32 startTime)
at Squirrel.Update.Program.<Install>d__10.MoveNext()<---
2020-06-16 07:55:53> Program: Starting Squirrel Updater: --install . --exeName=Teams_windows_x64_s_8D8119CDD68ED12-7-0_.exe
2020-06-16 07:55:54> Unhandled exception: System.TypeInitializationException: The type initializer for 'Telemetry.PerfScenario' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Microsoft.Applications.Telemetry.Diagnostics.LimitingTraceLogger' threw an exception. ---> System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize ---> System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Access to the path 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config' is denied. (C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config) ---> System.UnauthorizedAccessException: Access to the path 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Configuration.Internal.InternalConfigHost.StaticOpenStreamForRead(String streamName)
at System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForRead(String streamName, Boolean assertPermissions)
at System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForRead(String streamName)
at System.Configuration.ClientConfigurationHost.OpenStreamForRead(String streamName)
at System.Configuration.BaseConfigurationRecord.InitConfigFromFile()
--- End of inner exception stack trace ---
at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)
at System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors()
at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)
--- End of inner exception stack trace ---
at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)
at System.Configuration.ClientConfigurationSystem.PrepareClientConfigSystem(String sectionName)
at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName)
at System.Configuration.ConfigurationManager.GetSection(String sectionName)
at System.Runtime.Caching.MemoryCacheStatistics.InitializeConfiguration(NameValueCollection config)
at System.Runtime.Caching.MemoryCacheStatistics..ctor(MemoryCache memoryCache, NameValueCollection config)
at System.Runtime.Caching.MemoryCache.InitDisposableMembers(NameValueCollection config)
at System.Runtime.Caching.MemoryCache.Init(NameValueCollection config)
at System.Runtime.Caching.MemoryCache..ctor()
at System.Runtime.Caching.MemoryCache.get_Default()
at Microsoft.Applications.Telemetry.Diagnostics.LimitingTraceLogger..cctor()
--- End of inner exception stack trace ---
at Microsoft.Applications.Telemetry.Diagnostics.LimitingTraceLogger.get_CacheExpirationTimeSpan()
at Microsoft.Applications.Telemetry.Settings.TelemetryManagerSettings..ctor(String source, AuthenticationSettings authentication, Uri collectorUrl, Dictionary`2 identifiers, Nullable`1 maxRetries, Nullable`1 baseBackoffForSendingRetries, Nullable`1 maxBackoffForSendingRetries, Nullable`1 parallelSenderTasksNum, Nullable`1 collectorRequestSizeLimitBytes, Nullable`1 dataPackageSizeLimitBytes, Nullable`1 maxRecordsInBatchNum, Nullable`1 defaultBatchingWaitingThreshold, Nullable`1 batchingWaitingThresholdJitter, Nullable`1 batchesNumWaitingForSendingToKeepBatching, Nullable`1 singleWaitingOnDequeueDurationWhenBatching, Nullable`1 recordsKeptInMemoryLimit, Nullable`1 perfCounterQueuePollingInterval, Nullable`1 statsResetInterval, Nullable`1 performanceCountersEnabled, Nullable`1 limitingTraceLoggerCachingTime, String performanceCountersCategoryName, Nullable`1 maxRecordNumToDequeueAtOneTimeByBatcher, Nullable`1 waitUntilNoRecordsTimeout, Nullable`1 waitUntilNoRecordsCheckingInterval, Nullable`1 poolBuffers, Nullable`1 compressPackage, String tenantToken, String additionalPerformanceCounters, Nullable`1 defaultPerformanceCounterCadence, Nullable`1 enableBeacons, Nullable`1 metricCadence, Nullable`1 kpiCadence, Nullable`1 enableTelemetryUploaderMode, Nullable`1 dequeueCount, Nullable`1 disableMultiTenantRequests, Nullable`1 telemetrySdkModeType)
at Microsoft.Applications.Telemetry.Settings.TelemetryManagerSettingsBuilder.Build()
at Microsoft.Applications.Telemetry.Desktop.DesktopTelemetryManager.AdvancedInitialize(TelemetryManagerSettingsBuilder settingsBuilder)
at Microsoft.Applications.Telemetry.Desktop.LogManager.Initialize(String tenantToken, LogConfiguration configuration)
at Telemetry.AriaWrapper.Initialize()
at Telemetry.AriaWrapper..ctor()
at Telemetry.PerfScenario..cctor()
--- End of inner exception stack trace ---
at Telemetry.PerfScenario.set_TeamsTelemetryConfig(IConfigProvider value)
at Squirrel.Update.Program.executeCommandLine(String[] args)
at Squirrel.Update.Program.main(String[] args)
2020-06-26 08:02:13> Program: Starting Squirrel Updater: --install . --exeName=Teams_windows_x64 (1).exe
2020-06-26 08:02:14> Unhandled exception: System.TypeInitializationException: The type initializer for 'Telemetry.PerfScenario' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Microsoft.Applications.Telemetry.Diagnostics.LimitingTraceLogger' threw an exception. ---> System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize ---> System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Access to the path 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config' is denied. (C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config) ---> System.UnauthorizedAccessException: Access to the path 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Configuration.Internal.InternalConfigHost.StaticOpenStreamForRead(String streamName)
at System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForRead(String streamName, Boolean assertPermissions)
at System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForRead(String streamName)
at System.Configuration.ClientConfigurationHost.OpenStreamForRead(String streamName)
at System.Configuration.BaseConfigurationRecord.InitConfigFromFile()
--- End of inner exception stack trace ---
at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)
at System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors()
at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)
--- End of inner exception stack trace ---
at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)
at System.Configuration.ClientConfigurationSystem.PrepareClientConfigSystem(String sectionName)
at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName)
at System.Configuration.ConfigurationManager.GetSection(String sectionName)
at System.Runtime.Caching.MemoryCacheStatistics.InitializeConfiguration(NameValueCollection config)
at System.Runtime.Caching.MemoryCacheStatistics..ctor(MemoryCache memoryCache, NameValueCollection config)
at System.Runtime.Caching.MemoryCache.InitDisposableMembers(NameValueCollection config)
at System.Runtime.Caching.MemoryCache.Init(NameValueCollection config)
at System.Runtime.Caching.MemoryCache..ctor()
at System.Runtime.Caching.MemoryCache.get_Default()
at Microsoft.Applications.Telemetry.Diagnostics.LimitingTraceLogger..cctor()
--- End of inner exception stack trace ---
at Microsoft.Applications.Telemetry.Diagnostics.LimitingTraceLogger.get_CacheExpirationTimeSpan()
at Microsoft.Applications.Telemetry.Settings.TelemetryManagerSettings..ctor(String source, AuthenticationSettings authentication, Uri collectorUrl, Dictionary`2 identifiers, Nullable`1 maxRetries, Nullable`1 baseBackoffForSendingRetries, Nullable`1 maxBackoffForSendingRetries, Nullable`1 parallelSenderTasksNum, Nullable`1 collectorRequestSizeLimitBytes, Nullable`1 dataPackageSizeLimitBytes, Nullable`1 maxRecordsInBatchNum, Nullable`1 defaultBatchingWaitingThreshold, Nullable`1 batchingWaitingThresholdJitter, Nullable`1 batchesNumWaitingForSendingToKeepBatching, Nullable`1 singleWaitingOnDequeueDurationWhenBatching, Nullable`1 recordsKeptInMemoryLimit, Nullable`1 perfCounterQueuePollingInterval, Nullable`1 statsResetInterval, Nullable`1 performanceCountersEnabled, Nullable`1 limitingTraceLoggerCachingTime, String performanceCountersCategoryName, Nullable`1 maxRecordNumToDequeueAtOneTimeByBatcher, Nullable`1 waitUntilNoRecordsTimeout, Nullable`1 waitUntilNoRecordsCheckingInterval, Nullable`1 poolBuffers, Nullable`1 compressPackage, String tenantToken, String additionalPerformanceCounters, Nullable`1 defaultPerformanceCounterCadence, Nullable`1 enableBeacons, Nullable`1 metricCadence, Nullable`1 kpiCadence, Nullable`1 enableTelemetryUploaderMode, Nullable`1 dequeueCount, Nullable`1 disableMultiTenantRequests, Nullable`1 telemetrySdkModeType)
at Microsoft.Applications.Telemetry.Settings.TelemetryManagerSettingsBuilder.Build()
at Microsoft.Applications.Telemetry.Desktop.DesktopTelemetryManager.AdvancedInitialize(TelemetryManagerSettingsBuilder settingsBuilder)
at Microsoft.Applications.Telemetry.Desktop.LogManager.Initialize(String tenantToken, LogConfiguration configuration)
at Telemetry.AriaWrapper.Initialize()
at Telemetry.AriaWrapper..ctor()
at Telemetry.PerfScenario..cctor()
--- End of inner exception stack trace ---
at Telemetry.PerfScenario.set_TeamsTelemetryConfig(IConfigProvider value)
at Squirrel.Update.Program.executeCommandLine(String[] args)
at Squirrel.Update.Program.main(String[] args)
2020-07-16 10:48:54> Program: Starting Squirrel Updater: --install . --exeName=Teams_windows_x64 (1).exe
2020-07-16 10:48:54> Unhandled exception: System.TypeInitializationException: The type initializer for 'Telemetry.PerfScenario' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Microsoft.Applications.Telemetry.Diagnostics.LimitingTraceLogger' threw an exception. ---> System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize ---> System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Access to the path 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config' is denied. (C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config) ---> System.UnauthorizedAccessException: Access to the path 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Configuration.Internal.InternalConfigHost.StaticOpenStreamForRead(String streamName)
at System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForRead(String streamName, Boolean assertPermissions)
at System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForRead(String streamName)
at System.Configuration.ClientConfigurationHost.OpenStreamForRead(String streamName)
at System.Configuration.BaseConfigurationRecord.InitConfigFromFile()
--- End of inner exception stack trace ---
at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)
at System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors()
at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)
--- End of inner exception stack trace ---
at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)
at System.Configuration.ClientConfigurationSystem.PrepareClientConfigSystem(String sectionName)
at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName)
at System.Configuration.ConfigurationManager.GetSection(String sectionName)
at System.Runtime.Caching.MemoryCacheStatistics.InitializeConfiguration(NameValueCollection config)
at System.Runtime.Caching.MemoryCacheStatistics..ctor(MemoryCache memoryCache, NameValueCollection config)
at System.Runtime.Caching.MemoryCache.InitDisposableMembers(NameValueCollection config)
at System.Runtime.Caching.MemoryCache.Init(NameValueCollection config)
at System.Runtime.Caching.MemoryCache..ctor()
at System.Runtime.Caching.MemoryCache.get_Default()
at Microsoft.Applications.Telemetry.Diagnostics.LimitingTraceLogger..cctor()
--- End of inner exception stack trace ---
at Microsoft.Applications.Telemetry.Diagnostics.LimitingTraceLogger.get_CacheExpirationTimeSpan()
at Microsoft.Applications.Telemetry.Settings.TelemetryManagerSettings..ctor(String source, AuthenticationSettings authentication, Uri collectorUrl, Dictionary`2 identifiers, Nullable`1 maxRetries, Nullable`1 baseBackoffForSendingRetries, Nullable`1 maxBackoffForSendingRetries, Nullable`1 parallelSenderTasksNum, Nullable`1 collectorRequestSizeLimitBytes, Nullable`1 dataPackageSizeLimitBytes, Nullable`1 maxRecordsInBatchNum, Nullable`1 defaultBatchingWaitingThreshold, Nullable`1 batchingWaitingThresholdJitter, Nullable`1 batchesNumWaitingForSendingToKeepBatching, Nullable`1 singleWaitingOnDequeueDurationWhenBatching, Nullable`1 recordsKeptInMemoryLimit, Nullable`1 perfCounterQueuePollingInterval, Nullable`1 statsResetInterval, Nullable`1 performanceCountersEnabled, Nullable`1 limitingTraceLoggerCachingTime, String performanceCountersCategoryName, Nullable`1 maxRecordNumToDequeueAtOneTimeByBatcher, Nullable`1 waitUntilNoRecordsTimeout, Nullable`1 waitUntilNoRecordsCheckingInterval, Nullable`1 poolBuffers, Nullable`1 compressPackage, String tenantToken, String additionalPerformanceCounters, Nullable`1 defaultPerformanceCounterCadence, Nullable`1 enableBeacons, Nullable`1 metricCadence, Nullable`1 kpiCadence, Nullable`1 enableTelemetryUploaderMode, Nullable`1 dequeueCount, Nullable`1 disableMultiTenantRequests, Nullable`1 telemetrySdkModeType)
at Microsoft.Applications.Telemetry.Settings.TelemetryManagerSettingsBuilder.Build()
at Microsoft.Applications.Telemetry.Desktop.DesktopTelemetryManager.AdvancedInitialize(TelemetryManagerSettingsBuilder settingsBuilder)
at Microsoft.Applications.Telemetry.Desktop.LogManager.Initialize(String tenantToken, LogConfiguration configuration)
at Telemetry.AriaWrapper.Initialize()
at Telemetry.AriaWrapper..ctor()
at Telemetry.PerfScenario..cctor()
--- End of inner exception stack trace ---
at Telemetry.PerfScenario.set_TeamsTelemetryConfig(IConfigProvider value)
at Squirrel.Update.Program.executeCommandLine(String[] args)
at Squirrel.Update.Program.main(String[] args)
2020-07-17 08:48:00> Program: Starting Squirrel Updater: --install . --rerunningWithoutUAC --exeName=Teams_windows_x64 (1).exe
2020-07-17 08:48:01> Unhandled exception: System.TypeInitializationException: The type initializer for 'Telemetry.PerfScenario' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Microsoft.Applications.Telemetry.Diagnostics.LimitingTraceLogger' threw an exception. ---> System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize ---> System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Access to the path 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config' is denied. (C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config) ---> System.UnauthorizedAccessException: Access to the path 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Configuration.Internal.InternalConfigHost.StaticOpenStreamForRead(String streamName)
at System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForRead(String streamName, Boolean assertPermissions)
at System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForRead(String streamName)
at System.Configuration.ClientConfigurationHost.OpenStreamForRead(String streamName)
at System.Configuration.BaseConfigurationRecord.InitConfigFromFile()
--- End of inner exception stack trace ---
at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)
at System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors()
at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)
--- End of inner exception stack trace ---
at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)
at System.Configuration.ClientConfigurationSystem.PrepareClientConfigSystem(String sectionName)
at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName)
at System.Configuration.ConfigurationManager.GetSection(String sectionName)
at System.Runtime.Caching.MemoryCacheStatistics.InitializeConfiguration(NameValueCollection config)
at System.Runtime.Caching.MemoryCacheStatistics..ctor(MemoryCache memoryCache, NameValueCollection config)
at System.Runtime.Caching.MemoryCache.InitDisposableMembers(NameValueCollection config)
at System.Runtime.Caching.MemoryCache.Init(NameValueCollection config)
at System.Runtime.Caching.MemoryCache..ctor()
at System.Runtime.Caching.MemoryCache.get_Default()
at Microsoft.Applications.Telemetry.Diagnostics.LimitingTraceLogger..cctor()
--- End of inner exception stack trace ---
at Microsoft.Applications.Telemetry.Diagnostics.LimitingTraceLogger.get_CacheExpirationTimeSpan()
at Microsoft.Applications.Telemetry.Settings.TelemetryManagerSettings..ctor(String source, AuthenticationSettings authentication, Uri collectorUrl, Dictionary`2 identifiers, Nullable`1 maxRetries, Nullable`1 baseBackoffForSendingRetries, Nullable`1 maxBackoffForSendingRetries, Nullable`1 parallelSenderTasksNum, Nullable`1 collectorRequestSizeLimitBytes, Nullable`1 dataPackageSizeLimitBytes, Nullable`1 maxRecordsInBatchNum, Nullable`1 defaultBatchingWaitingThreshold, Nullable`1 batchingWaitingThresholdJitter, Nullable`1 batchesNumWaitingForSendingToKeepBatching, Nullable`1 singleWaitingOnDequeueDurationWhenBatching, Nullable`1 recordsKeptInMemoryLimit, Nullable`1 perfCounterQueuePollingInterval, Nullable`1 statsResetInterval, Nullable`1 performanceCountersEnabled, Nullable`1 limitingTraceLoggerCachingTime, String performanceCountersCategoryName, Nullable`1 maxRecordNumToDequeueAtOneTimeByBatcher, Nullable`1 waitUntilNoRecordsTimeout, Nullable`1 waitUntilNoRecordsCheckingInterval, Nullable`1 poolBuffers, Nullable`1 compressPackage, String tenantToken, String additionalPerformanceCounters, Nullable`1 defaultPerformanceCounterCadence, Nullable`1 enableBeacons, Nullable`1 metricCadence, Nullable`1 kpiCadence, Nullable`1 enableTelemetryUploaderMode, Nullable`1 dequeueCount, Nullable`1 disableMultiTenantRequests, Nullable`1 telemetrySdkModeType)
at Microsoft.Applications.Telemetry.Settings.TelemetryManagerSettingsBuilder.Build()
at Microsoft.Applications.Telemetry.Desktop.DesktopTelemetryManager.AdvancedInitialize(TelemetryManagerSettingsBuilder settingsBuilder)
at Microsoft.Applications.Telemetry.Desktop.LogManager.Initialize(String tenantToken, LogConfiguration configuration)
at Telemetry.AriaWrapper.Initialize()
at Telemetry.AriaWrapper..ctor()
at Telemetry.PerfScenario..cctor()
--- End of inner exception stack trace ---
at Telemetry.PerfScenario.set_TeamsTelemetryConfig(IConfigProvider value)
at Squirrel.Update.Program.executeCommandLine(String[] args)
at Squirrel.Update.Program.main(String[] args)
Jul 17 2020 12:07 AM
Hi@cmm1779 ,
As we tried all the troubleshooting approaches, it's good to try .net framework repair as it indicates mostly a .net framework issue
Jul 23 2020 09:09 PM
Jul 16 2020 12:10 AM
SolutionHi @cmm1779 ,
If you haven't restart the machine after the changes, please try after restarting the computer. If that won't help, please follow the steps also
1. Rename the machine.config file in the Config directory something like machine.config.backup
2. Rename machine.config.default file to machine.config.default.backup in the same folder
3. Copy machine.config.default.backup and rename to machine.config
4. Restart the machine.
Hope, this will help you