Re: Permissions exception saving app config



"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


.



Relevant Pages

  • Re: Where To Put Data?
    ... Russell's solution is to change the permissions on ... on the all users app data folder and create a subfolder ... Easier on the developer, and there is no need to have an NT system to test ... Every user use the same settings. ...
    (microsoft.public.vb.general.discussion)
  • Re: Permissions granted based on assembly and user
    ... setting the Policy for specific assemblies through the ... > You can set impersonation ON and use NTFS permissions on the files. ... > should also use Code Access Security to specify what folders the plugin ...
    (microsoft.public.dotnet.security)
  • Re: project security issue
    ... This is because of .NET's Code Access Security which is configured to ... share and assign appropiate permissions. ... > The project location is not fully trusted by the .NET runtime. ... This is> usually because it is either a network share or mapped to a network> share not on the local machine. ...
    (microsoft.public.dotnet.framework)
  • Re: Roles - Users
    ... Developer is a domain level group. ... On the database server, there are legacy ... association with the legacy domain permissions on the server. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ...
    (microsoft.public.sqlserver.security)
  • Re: Roles - Users
    ... Developer is a domain level group. ... association with the legacy domain permissions on the server. ... Windows groups he is a member of. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ...
    (microsoft.public.sqlserver.security)