Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / May 2007

Tip: Looking for answers? Try searching our database.

Permissions exception saving app config

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Brad - 24 May 2007 23:50 GMT
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)
Pete - 25 May 2007 02:39 GMT
>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
[quoted text clipped - 7 lines]
> 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
Jeffrey Tan[MSFT] - 25 May 2007 04:28 GMT
Hi Brad,

Can you explain to me what "in Visual Studio debug" mean in your post? Do
you mean that the problem occurs only while the developer is using VS
debugger to debugging the code? Also, can you provide the permission
exception type and detailed call stack of this exception to me? This will
help us to give analysis.

Finally, is this problem reproducable on other machines? If so, is it
possible for you to create a little sample project to help me reproduce it
locally? Actually, this is the most efficient way to help me understand it
and debug it. Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Jeffrey Tan[MSFT] - 29 May 2007 04:27 GMT
Hi Brad,

Have you reviewed my reply to you? Does it make sense to you? If you still
need any help, please feel free to feedback, thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.