Re: Permissions exception saving app config
- From: "Pete" <pdavis68@xxxxxxxxxxxxxxxxxxx>
- Date: Thu, 24 May 2007 20:39:07 -0500
"Brad" <lane@xxxxxxxxxxxxxxxx> wrote in message
news:OEZP2XlnHHA.4896@xxxxxxxxxxxxxxxxxxxxxxx
I have some code for a .Net 2.0 winforms application which modifies the
app's config file. The code works without error for me, but when another
developer runs the same code in Visual Studio debug he receives a
permissions exception on the statement
config.Save(ConfigurationSaveMode.Modified);
At the file/folder level he has full permissions and I would think we have
the same default code access security. So my question would be why the
permissions error and what to do to resolve. I would also like to know if
there any issue in this to expect when deploying to production (to an end
users pc)
Brad,
I'm curious about this issue as well. I experienced it under .NET 1.1 on my
machine. None of the other developers (probably a total of about 30 or so
that had done development work on the app) ever experienced the problem, nor
have any of our users since. I was the "lucky" one.
In an attempt to fix the problem, I had a freak caspol accident (I think it
was caspol) and managed to deny the administrator access to the
\Windows\System32 directory. After reinstalling Windows, the problem went
away and haven't seen it since. I'm curious what the cause was, though.
Pete
.
- References:
- Permissions exception saving app config
- From: Brad
- Permissions exception saving app config
- Prev by Date: Re: Cursor location
- Next by Date: Re: Best first .NET book for experienced programmer?
- Previous by thread: Permissions exception saving app config
- Next by thread: RE: Permissions exception saving app config
- Index(es):
Relevant Pages
|