I am attempting to put a screen in a web application that allows editing
of AppSettings values in the Web.Config file using the Web Configuration
manager class however on he .Save i get an access denied exception.
What could be causing this exception and what should i be looking at to
fix the problem.
Many Thanks
Stuart
*** Sent via Developersdex http://www.developersdex.com *** 4 1704
In the .Net Framework 1.1 ( you *are* using the .Net Framework 1.1?), you
cannot edit configuration files programmaticall y. The good news is, in the
..Net Framework 2.0, you can, within certain limits.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
Complex things are made up of
Lots of simple things.
"Stuart Ferguson" <st************ **@btinternet.c om> wrote in message
news:%2******** **********@TK2M SFTNGP14.phx.gb l... I am attempting to put a screen in a web application that allows editing of AppSettings values in the Web.Config file using the Web Configuration manager class however on he .Save i get an access denied exception.
What could be causing this exception and what should i be looking at to fix the problem.
Many Thanks
Stuart
*** Sent via Developersdex http://www.developersdex.com ***
I believe Stuart is using 2.0.
Have you taken a look at what the Configuration Application Block offers? http://msdn.microsoft.com/library/de...tml/config.asp
"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:uT******** ******@TK2MSFTN GP12.phx.gbl... In the .Net Framework 1.1 ( you *are* using the .Net Framework 1.1?), you cannot edit configuration files programmaticall y. The good news is, in the .Net Framework 2.0, you can, within certain limits.
-- HTH,
Kevin Spencer Microsoft MVP .Net Developer Complex things are made up of Lots of simple things.
"Stuart Ferguson" <st************ **@btinternet.c om> wrote in message news:%2******** **********@TK2M SFTNGP14.phx.gb l...I am attempting to put a screen in a web application that allows editing of AppSettings values in the Web.Config file using the Web Configuration manager class however on he .Save i get an access denied exception.
What could be causing this exception and what should i be looking at to fix the problem.
Many Thanks
Stuart
*** Sent via Developersdex http://www.developersdex.com ***
Look at the web.config file using file explorer and double check the
permission settings. Compare the write access to the account running
ASP.NET (typically your account (if you are using a file based project
in 2005) or the NETWORK SERVICE account (when using IIS 6).
--
Scott http://www.OdeToCode.com/blogs/scott/
On Sat, 12 Nov 2005 03:26:13 -0800, Stuart Ferguson
<st************ **@btinternet.c om> wrote: I am attempting to put a screen in a web application that allows editing of AppSettings values in the Web.Config file using the Web Configuration manager class however on he .Save i get an access denied exception.
What could be causing this exception and what should i be looking at to fix the problem.
Many Thanks
Stuart
*** Sent via Developersdex http://www.developersdex.com ***
I haven't been able to find a page from Microsoft with a link to this most
important document [1] but it discusses changes to write permissions for XML
files as well as other changes implemented by the 2.0 RTM.
For now, I think it best to use this DevX page [2] as a reference which we
can save as a Favorite and easily find and share with others until such time
somebody finds a page from Microsoft with a link rather than a direct
download.
<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee. com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/
[1] http://download.microsoft.com/downlo...20to%20RTM.doc
[2] http://www.theserverside.net/news/th...hread_id=37383
"Stuart Ferguson" <st************ **@btinternet.c om> wrote in message
news:%2******** **********@TK2M SFTNGP14.phx.gb l... I am attempting to put a screen in a web application that allows editing of AppSettings values in the Web.Config file using the Web Configuration manager class however on he .Save i get an access denied exception.
What could be causing this exception and what should i be looking at to fix the problem.
Many Thanks
Stuart
*** Sent via Developersdex http://www.developersdex.com *** This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: blekros |
last post by:
All,
I have a web service client written in VB.NET. It is a class library
assembly (.dll file). I made a web reference to a web service and set it to
be dynamic, so it puts the URL of the web-reference in the application
configuration file (app.config)
However, at runtime, the code in the DLL thinks that the config file is the
config file of the .exe calling it. It obviously does not contain my web
reference. Here is my proxy...
|
by: hazz |
last post by:
With this code, the config file(listed below) opens initially into the
datagrid display with only a plus sign '+'.
On clicking that, it becomes expanded to;
-
appsettings
add
When I click on appsettings, it reverts back to '+' On clicking that,
- appsettings add is displayed
Finally, when I click on appsettings this time, the contents of the config
|
by: aSoundMind |
last post by:
Hi there, I recieve this error
Server Error in '/integrate' Application.
--------------------------------------------------------------------------------
Configuration Error
Description: An error occurred during the processing of a
configuration file required to service this request. Please review the
specific error details below and modify your configuration file
appropriately.
|
by: Jonny Bergdahl |
last post by:
I have a ASP.Net 2.0 web application that I am trying to debug. Problem is
that I can't get the error message to show in the browser. It always returns
the generic error message telling me to set customErrors="Off". Problem is I
have already done that.
I have tried to activate tracing as well, by setting trace enabled="true",
but accessing the trace.axd page returns a message instructing me to do just
that.
I have tried to figure out...
|
by: Blasting Cap |
last post by:
I am working on a web app that I want to be able to use a separate
config file on, in addition to the web.config file that's already
working in the application.
If I put the following in the web.config file (VS 2005, Framework 2.0),
I can retrieve the values fine:
<appSettings>
<add key="fileInputFolder" value="C:\National City Downloads\test"/>
<add key="fileTransaction" value="\Transactions\"/>
| |
by: dbuchanan |
last post by:
Hello,
(Is this the proper newsgroup?)
=== Background ===
I am building a solution with two projects.
One project is my data access layer which contains my DataSet as an xsd
file. The XSD file was built by draging tables from the Data Sources pane.
Auto-generated code created the files associated wtih the XSD file (xss,
|
by: =?Utf-8?B?bWNxd2VydHk=?= |
last post by:
Hello,
I'm trying to enable an error handling package at the root of my web server
by editing this file:
C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\CONFIG\web.config
In the httpHandlers section I've added:
<add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory,
Elmah, Version=1.0.9414.0, Culture=neutral, PublicKeyToken=42734318a98ac1df"
|
by: Nick Craig-Wood |
last post by:
Lance Gamet <lance@gamet.comwrote:
I've found
http://docs.python.org/lib/module-ConfigParser.html
To be easy to use and built in. It makes human readable / editable
..ini - like files.
As for where to store it, I use os.path.expanduser("~") to find the
|
by: =?Utf-8?B?TUNN?= |
last post by:
When creating a new VB Web Application Project with VS2008, there are several
settings (compiler settings, option strict, etc) that appear both in the
web.config file and "My Project". I'm wondering what takes precedent, what
the benefit of using one vs. the other is, and what happens if they conflict?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |