Solved

Cannot edit and save C:\Windows\Microsoft.NET\Framework64,\v4.0.30319\,Config\machine.config

Posted on 2014-11-02
4
915 Views
Last Modified: 2014-11-03
I do not have write permissions for this folder.

An error occurred when I tried to run a VS app that has been running for 3 years.

How can I save the machine.config file after I have edited it?

Thanks,
0
Comment
Question by:Dovberman
  • 3
4 Comments
 

Author Comment

by:Dovberman
ID: 40418404
Here is more information.
Default.aspx.cs
 MembershipUser currentUser = Membership.GetUser(strUserName);

"Could not load file or assembly 'MySql.Web.v20, Version=6.9.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified. (C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\Config\\machine.config line 268)"}

Machine.config

Warning      1      The 'description' attribute is not allowed.      C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config      145      203      Miscellaneous Files

<configProtectedData defaultProvider="RsaProtectedConfigurationProvider">
    <providers>
      <add name="RsaProtectedConfigurationProvider" type="System.Configuration.RsaProtectedConfigurationProvider,System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" description="Uses RsaCryptoServiceProvider to encrypt and decrypt" keyContainerName="NetFrameworkConfigurationKey" cspProviderName="" useMachineContainer="true" useOAEP="false" />
      <add name="DataProtectionConfigurationProvider" type="System.Configuration.DpapiProtectedConfigurationProvider,System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" description="Uses CryptProtectData and CryptUnProtectData Windows APIs to encrypt and decrypt" useMachineProtection="true" keyEntropy="" />
    </providers>
0
 
LVL 33

Accepted Solution

by:
Big Monty earned 500 total points
ID: 40419621
Check that the account which the application pool is running under has access to that file
0
 

Author Comment

by:Dovberman
ID: 40419938
This happened after I installed MySQL.  Default.aspx call to Machine.config causes error. Hosted app runs well.  I will uninstall MySQL.

Thanks,
0
 

Author Closing Comment

by:Dovberman
ID: 40419941
Thanks,
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
This video teaches users how to migrate an existing Wordpress website to a new domain.

856 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