Menu

Security error on commit

Help
kevin v.
2009-01-13
2013-05-01
  • kevin v.

    kevin v. - 2009-01-13

    I get the following error when committing a change to the repository...

    Subversion Notify error.
    Please have your administrator check the log for details on how to correct the issue

    Unhandled Exception: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
       at System.Environment.Exit(Int32 exitCode)
       at SubversionNotify.Program.SendPreCommitFailure(String failureMessage, String logFileMessage, Int32 returnCode, subversionNotifyConfig cfg, CommitDetailsData details)
       at SubversionNotify.Program.SendPreCommitFailure(String failureMessage, String logFileMessage, Int32 returnCode)
       at SubversionNotify.Program.Main(String[] args)
    The action that failed was:
    Demand
    The type of the first permission that failed was:
    System.Security.Permissions.SecurityPermission
    The first permission that failed was:
    <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    version="1"
    Flags="UnmanagedCode"/>

    The demand was for:
    <PermissionSet class="System.Security.PermissionSet"
    version="1">
    <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    version="1"
    Flags="UnmanagedCode"/>
    </PermissionSet>

    The granted set of the failing assembly was:
    <PermissionSet class="System.Security.PermissionSet"
    version="1">
    <IPermission class="System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    version="1"
    Read="USERNAME"/>
    <IPermission class="System.Security.Permissions.FileDialogPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    version="1"
    Unrestricted="true"/>
    <IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    version="1"
    Read="M:\SubversionNotify\"
    PathDiscovery="M:\SubversionNotify\"/>
    <IPermission class="System.Security.Permissions.IsolatedStorageFilePermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    version="1"
    Allowed="AssemblyIsolationByUser"
    UserQuota="9223372036854775807"
    Expiry="9223372036854775807"
    Permanent="True"/>
    <IPermission class="System.Security.Permissions.ReflectionPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    version="1"
    Flags="ReflectionEmit"/>
    <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    version="1"
    Flags="Assertion, Execution, BindingRedirects"/>
    <IPermission class="System.Security.Permissions.UIPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    version="1"
    Unrestricted="true"/>
    <IPermission class="System.Security.Permissions.UrlIdentityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    version="1"
    Url="file:///M:/SubversionNotify/SubversionNotify.exe"/>
    <IPermission class="System.Security.Permissions.ZoneIdentityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    version="1"
    Zone="Intranet"/>
    <IPermission class="System.Net.DnsPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    version="1"
    Unrestricted="true"/>
    <IPermission class="System.Drawing.Printing.PrintingPermission, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    version="1"
    Level="DefaultPrinting"/>
    </PermissionSet>

    The assembly or AppDomain that failed was:
    SubversionNotify, Version=2.0.7.0, Culture=neutral, PublicKeyToken=null
    The method that caused the failure was:
    Void SendPreCommitFailure(System.String, System.String, Int32, SubversionNotify.subversionNotifyConfig, CommitDetailsData)
    The Zone of the assembly that failed was:
    Intranet
    The Url of the assembly that failed was:
    file:///M:/SubversionNotify/SubversionNotify.exe

     
    • mmckechney

      mmckechney - 2009-01-15

      Kevin,
      I have never seen this one before, but I have a guess. It looks like you're trying to execute the SubversionNotify executable across a network (i.e. the SVN exe is on one machine and the SubversionNotify.exe is on another). By default, the .NET framework balks at this - hence the security exception. You can either work through the security policy on this (not exactly sure what the settings are, but you should be able to find them at Microsoft) or you can move your SubversionNotify install onto the same box as the SVN exe (not necessarily the repo, but the exe).

      If this isn't your set-up, let me know and I'll see if I can debug it further.

      Thanks,
      Mike

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.