CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2007
    Posts
    29

    Insufficient permissions for setting the configuration section 'defaultProxy'.

    I get this error message when running a .NET console application I have developed. It's working fine when I run it on my local machine, but when I run the program from a network drive it crasches with the error message. I've googled around, but can't find a solution to my problem.
    Any ideas?

    Thanks!

  2. #2
    Join Date
    Sep 2011
    Location
    The Netherlands
    Posts
    32

    Re: Insufficient permissions for setting the configuration section 'defaultProxy'.

    Is the network drive readonly?
    Are you requesting/setting proxy settings in the application, and, if so, can you paste the code here?

  3. #3
    Join Date
    Nov 2007
    Posts
    29

    Re: Insufficient permissions for setting the configuration section 'defaultProxy'.

    Thanks JapyDooge, for showing interest in this issue.

    This is what I have in my app.config:

    <system.net>

    <defaultProxy useDefaultCredentials="true">
    <proxy proxyaddress="http://address_to_firewall:8080" bypassonlocal="True" />
    </defaultProxy>
    </system.net>

    The network drive is not readonly (and the application calls a web service outside the company network)

  4. #4
    Join Date
    Sep 2011
    Location
    The Netherlands
    Posts
    32

    Re: Insufficient permissions for setting the configuration section 'defaultProxy'.

    Ah,

    It looks like the network drive is not trusted by the .NET Framework, this is pretty normal behavior, but can be really annoying.

    Can you try running this?

    Code:
    CasPol -m -ag 1.2 -hash SHA1 -file \\Server\Path\To\Application.exe FullTrust
    This should make the application (and all other items in it's path) fully trusted by .NET on your system.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured