none
.net Framework Security Issue "The Zone of the assembly that failed was: My Computer"

    General discussion

  • We have a piece of software at our bank which works properly on most computers , but on two of them the following error message crops up when we click on one of the buttons and it trys to run a program located on a network share. I have adjusted the intranet security on all the ones that are not working. Also, they are all updated to the latest version of .net Framework.

    I also noticed that the zone failing is my computer. Is this a local rights issue? I have attempted to use the admin account on the computers with the problem with no change.  Is this a programatical issue or a computer config issue? I'm not the programmer so I dont have immediate access to the source, though I might be able to get it if needed. Thank you for any light you can shed on the problem.

    Also.. I had this problem on other computers previously but when I re-imaged them they worked fine, no such luck with the two machines that are giving trouble now.


    ************** Exception Text **************
    System.Security.SecurityException: System.Security.Permissions.SecurityPermission
       at BankManager.GlobalModule.GetDefaultValue(String pName, String pLevel)
       at BankManager.MDIParent1.MDIParent1_Load(Object sender, EventArgs e)
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at System.Windows.Forms.Form.OnLoad(EventArgs e)
       at System.Windows.Forms.Form.OnCreateControl()
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.Control.CreateControl()
       at System.Windows.Forms.Control.WmShowWindow(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at System.Windows.Forms.ContainerControl.WndProc(Message& m)
       at System.Windows.Forms.Form.WmShowWindow(Message& m)
       at System.Windows.Forms.Form.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    The type of the first permission that failed was:
    System.Security.Permissions.SecurityPermission
    The Zone of the assembly that failed was:
    MyComputer


    ************** Loaded Assemblies **************
    mscorlib
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
        CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    ----------------------------------------
    BankManager
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///L:/ELF/Bin/BankManager.exe
    ----------------------------------------
    Microsoft.VisualBasic
        Assembly Version: 8.0.0.0
        Win32 Version: 8.0.50727.1433 (REDBITS.050727-1400)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
    ----------------------------------------
    System
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Windows.Forms
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System.Drawing
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System.Runtime.Remoting
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
    ----------------------------------------
    DocumentPortal
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///L:/ELF/Bin/DocumentPortal.DLL
    ----------------------------------------
    • Changed type Figo Fei Monday, August 04, 2008 3:16 AM no followup
    Tuesday, July 29, 2008 2:30 PM

All replies

  • Without touching the codes, you can try setting the "My_Computer_Zone"  node in .NET configuration tool as "full trust" to see if it works (you need administrator priviledge on the machine to assign the permission)

    Also, just for testing, you can try setting all code to "full trust" to see if it runs well.

    Thanks.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    • Edited by Figo Fei Friday, August 01, 2008 7:07 AM test all code
    Friday, August 01, 2008 7:05 AM