Solved

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

Posted on 2014-11-02
4
893 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 32

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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Redirect HTTP to HTTPS in Azure 4 54
Php  POSTGRES  "  IN SIDE "  " 4 59
Video on my site 4 53
Trigger usage 2 59
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…
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
This video teaches users how to migrate an existing Wordpress website to a new domain.
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

919 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

19 Experts available now in Live!

Get 1:1 Help Now