Solved

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

Posted on 2014-11-02
4
875 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
Comment Utility
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 32

Accepted Solution

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

Author Comment

by:Dovberman
Comment Utility
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
Comment Utility
Thanks,
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Thoughout my experience working on eCommerce web applications I have seen applications succumbing to increased user demand and throughput. With increased loads the response times started to spike, which leads to user frustration and lost sales. I ha…
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.
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.

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now