.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:
    The Zone of the assembly that failed was:

    ************** Loaded Assemblies **************
        Assembly Version:
        Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
        CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
        Assembly Version:
        Win32 Version:
        CodeBase: file:///L:/ELF/Bin/BankManager.exe
        Assembly Version:
        Win32 Version: 8.0.50727.1433 (REDBITS.050727-1400)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/
        Assembly Version:
        Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/
        Assembly Version:
        Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/
        Assembly Version:
        Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/
        Assembly Version:
        Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/
        Assembly Version:
        Win32 Version:
        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.

    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