Home > Not Be > C# A Configuration File Cannot Be Created For The Requested Configuration Object

C# A Configuration File Cannot Be Created For The Requested Configuration Object

Contents

If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.Would you like to participate? See this page for a brief explanation of how to add %PATH% variables: http://geekswithblogs.net/renso/archive/2009/10/21/how-to-set-the-windows-path-in-windows-7.aspx navigate to your web root folder (don't know if this is necessary but that's where I was if your web.config path is at D:\MyConfiguration\web.config then while encrypting/decrypting you will use it as follow: encrypt: aspnet_regiis -pef [sectionName] "D:\MyConfiguration" decrypt: aspnet_regiis -pdf [sectionName] "D:\MyConfiguration" share|improve this answer edited Mar Count trailing truths Can I cite email communication in my thesis/paper? Source

when i received message "Succed" i prayed for you from the bottom of my heart. Thanks again! :) Cheers Thursday, October 12, 2006 8:50 PM Reply | Quote 0 Sign in to vote Thanks for reading 20 articles and posting your results, I had the exact Kind regards, Posted 15-Mar-10 21:14pm Programm3r11.7K Updated 15-Mar-10 21:43pm Sandeep Mewara505.5K v2 Add a Solution 2 solutions Top Rated Most Recent Rate this: Please Sign up or sign in to Error "A configuration file cannot be created for the requested Configuration object." when saving to web.config [Answered]RSS 10 replies Last post Jul 01, 2013 03:30 PM by faujong ‹ Previous Thread|Next you could check here

C# A Configuration File Cannot Be Created For The Requested Configuration Object

Is there a special fix for non-Default Websites? asp.net configuration error configuration error is coming NHibernate Configuration Error Web configure file displays error Editing Configuration File Authorization error in windows 7 by updating configuration file Advertise | Privacy | It worked like charm. what does it mean by "used to" in the context below?

If the app's web.config you are trying to encrypt is not under the DefaultWebSite or you have deleted and recreated the DefaultWebSite, the -site option will need to be specified. If you are on a personal connection, like at home, you can run an anti-virus scan on your device to make sure it is not infected with malware. App exprected a virtual path. Encrypt Connection String In Web Config C# AREAS contact Us Six Random Posts: Copyright © 2006-2016 SmartyDevil.com Dies Mies Jeschet Boenedoesef Douvema Enitemaus

voila... The Configuration For Physical Path Cannot Be Opened The properties I accepted were Read access permission and scripts application permission. Friday, January 07, 2011 4:14 PM Reply | Quote 1 Sign in to vote Apparently no one else is having this problem. http://forums.asp.net/t/1913820.aspx?Error+A+configuration+file+cannot+be+created+for+the+requested+Configuration+object+when+saving+to+web+config Join them; it only takes a minute: Sign up encrypting web.config failed error up vote 10 down vote favorite I know that ppl have already asked questions regarding encrypting web.config.

OS is Windows 2003 server Am I missing anything? The Rsa Key Container Could Not Be Opened. I sure wish there were some easy way to have known to do this. Browse other questions tagged c# asp.net web-config asp.net-4.0 or ask your own question. I beleive you have to set some othet permission as well on the process identity.

  1. That's life...
  2. i used both forward / and back slash \  

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis -pe "connectionStrings" -app "/jobProj\sqlserver" -prov "DataProtectionConfigurationProvider"Encrypting configuration section...A configuration file cannot be created for the requested Configuration object.Failed!
  3. Virtual path must begin with a forward slash.
  4. The best place to ask ASP.NET questions is over on the ASP.NET forums at http://www.asp.net/welcome.aspx?tabindex=1&tabid=39

    Glad to hear you got your answer!  The best place to find out info about this

The Configuration For Physical Path Cannot Be Opened

aspnet_regiis -pef "connectionStrings" "C:\encryptedWeb.config" Encrypting configuration section... http://stackoverflow.com/questions/1035342/encrypting-web-config-failed-error MCTS, MCPD. "rockdale" wrote: I followed this article, http://msdn2.microsoft.com/en-us/library/zhhddkxy.aspx My command is: aspnet_regiis -pe "connectionStrings" -app "/myWebSiteName" -site 711831 -prov "RsaProtectedConfigurationProvider" The error message is: A configuration file cannot be created C# A Configuration File Cannot Be Created For The Requested Configuration Object I'd rather encrypt just the sections I need for performance overhead reasons.Any ideas folks? The Configuration Section Was Not Found more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed

The properties I accepted were Read access permission and scripts application permission. http://haywirerobotics.com/not-be/the-dependencies-for-the-object-cannot-be-determined.html For example, it says to use this: aspnet_regiis.exe -pe "connectionStrings" -app "/MySite" –prov "DataProtectionConfigurationProvider" but instead try this: aspnet_regiis.exe -pe "connectionStrings" -app "/MySite" -prov "DataProtectionConfigurationProvider" Looks the same, but you can Solution 1 Accept Solution Reject Solution Looks like an access permission issue. A configuration file cannot be created for the requested Configuration object Anyone know what else needs to be done? "aspnet_regiis -pef"

CloudFlare Ray ID: 2fea5c8544bf226a • Your IP: 204.152.201.107 • Performance & security by CloudFlare Blog Sign in Join ASP.NET Home Get Started Learn Hosting Downloads Community Overview Community Spotlight Articles of The usage of "le pays de..." On 1941 Dec 7, could Japan have destroyed the Panama Canal instead of Pearl Harbor in a surprise attack? If anyone happens to stumble on this thread, this will come in handy with you assuming you deployed your website in the following way. have a peek here Kind regards, Permalink Posted 16-Mar-10 4:42am Programm3r11.7K Add a Solution Add your solution here B I U S small BIG code Plain TextC++CSSC#Delphi / PascalF#HTML / XML / ASPJavaJavascriptObjective-CSQLSwiftPerlPHPPythonVBXMLvar

It is a simple website with one connection string entry. Encrypt Web Config Thanks for the responses. At delivery time, client criticises the lack of some features that weren't written on my quote.

Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.

I just want to know, what could be reasons that it failed. Proposed as answer by fczfan007 Wednesday, May 06, 2009 11:01 AM Wednesday, May 06, 2009 10:59 AM Reply | Quote 0 Sign in to vote YOU ARE A LIFE SAVER!!! Here is the error i am facing. Hope it helps...

D:\Programming>aspnet_regiis -pe "connectionStrings" -app "/JavaScript" -prov RsaProtectedConfigurationProvider. Privacy Statement| Terms of Use| Contact Us| Advertise With Us| CMS by Umbraco| Hosted on Microsoft Azure Feedback on ASP.NET| File Bugs| Support Lifecycle Sign in Gallery MSDN Library Forums Get Error when try to encrypt connectionstring using aspnet_regiis -pe P: n/a rockdale I followed this article, http://msdn2.microsoft.com/en-us/library/zhhddkxy.aspx My command is: aspnet_regiis -pe "connectionStrings" -app "/myWebSiteName" -site 711831 -prov "RsaProtectedConfigurationProvider" The error Check This Out I was stuck on why aspnet_regiis were throwing errors like "Configuration file cannot be created ..." until I found this solution!

Optional Password I have read and agree to the Terms of Service and Privacy Policy Please subscribe me to the CodeProject newsletters Submit your solution! Refer to the link below for details. There are many sections in machine.config, and many of them has AllowLocation=false. I made web.config writable.

Share on Facebook Share on Twitter ASK TO REMOVE THIS POST Issue: * I dont like more this post Change my view Copyright Infringment Spam Invalid Contents Broken Links Your Name: I must have read 20 articles on the subject and didn't see one clue about this. Doing as suggested did not resolve the problem for me. Default value for date field GO OUT AND VOTE What crime would be illegal to uncover in medieval Europe?

Configuration config = WebConfigurationManager. They are using hex code 96 for all of the examples, but it should be hex code 2D for a proper dash. aspnet_regiis -pe "connectionStrings" -app "/myapp" -site "1219903565" And I got the error message: A configuration file cannot be created for the requested Configuration object.