Solved

machine.config file access issues

Posted on 2012-03-28
2
3,510 Views
Last Modified: 2012-04-28
I receive the following error when I try and install an application from a web server.  I have changed permissions to the file and file location and I have have chnaged the ownership of the directory.  No of that resolves my issue.  This app works when I pog in ot the computer as an administrator, but it will not run when I log in as an average user.

PLATFORM VERSION INFO
      Windows                   : 6.1.7601.65536 (Win32NT)
      Common Language Runtime       : 4.0.30319.261
      System.Deployment.dll             : 4.0.30319.1 (RTMRel.030319-0100)
      clr.dll                   : 4.0.30319.261 (RTMGDR.030319-2600)
      dfdll.dll                   : 4.0.30319.1 (RTMRel.030319-0100)
      dfshim.dll                   : 4.0.31106.0 (Main.031106-0000)

SOURCES
      Deployment url                  : http://vm-ossirms/SunGard.PS.IJS.OS/SunGard.PS.IJS.OS.application

ERROR SUMMARY
      Below is a summary of the errors, details of these errors are listed later in the log.
      * Activation of http://vm-ossirms/SunGard.PS.IJS.OS/SunGard.PS.IJS.OS.application resulted in exception. Following failure messages were detected:
            + Configuration system failed to initialize
            + 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#
            + Access to the path 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config' is denied.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
      No transaction error was detected.

WARNINGS
      There were no warnings during this operation.

OPERATION PROGRESS STATUS
      * [3/28/2012 11:35:31 AM] : Activation of http://vm-ossirms/SunGard.PS.IJS.OS/SunGard.PS.IJS.OS.application has started.

ERROR DETAILS
      Following errors were detected during this operation.
      * [3/28/2012 11:35:31 AM] System.Configuration.ConfigurationErrorsException
            - Configuration system failed to initialize
            - Source: System.Configuration
            - Stack trace:
                  at System.Configuration.ConfigurationManager.PrepareConfigSystem##
                  at System.Configuration.ConfigurationManager.GetSection#String sectionName#
                  at System.Configuration.PrivilegedConfigurationManager.GetSection#String sectionName#
                  at System.Net.Configuration.WebRequestModulesSectionInternal.GetSection##
                  at System.Net.WebRequest.get_PrefixList##
                  at System.Net.WebRequest.Create#Uri requestUri, Boolean useUriBase#
                  at System.Net.WebRequest.Create#Uri requestUri#
                  at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile#DownloadQueueItem next#
                  at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles##
                  at System.Deployment.Application.FileDownloader.Download#SubscriptionState subState#
                  at System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile#Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation#
                  at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirectBypass#SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation#
                  at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestBypass#SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options#
                  at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation#Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl#
                  at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker#Object state#
            --- Inner Exception ---
            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#
            - Source: System.Configuration
            - 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#
            --- Inner Exception ---
            System.UnauthorizedAccessException
            - Access to the path 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config' is denied.
            - Source: mscorlib
            - Stack trace:
                  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#
                  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##

COMPONENT STORE TRANSACTION DETAILS
      No transaction information is available.
0
Comment
Question by:MariettaMIS
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 400 total points
ID: 37814688
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
OfficeMate Freezes on login or does not load after login credentials are input.
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question