bug, or limitation of PC due to permissions in Win2000

Talk about everything related to general reverse engineering of computer games!

Moderator: Kroah

bug, or limitation of PC due to permissions in Win2000

Postby SpicyChronos » 01 Oct 2006, 00:51


I get this message, everytime I attempt to open up a saved game, on a work PC.

is there a way around this, or a fix could be done?

Code: Select all
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
   at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
   at System.Security.CodeAccessPermission.Demand()
   at System.Windows.Forms.FileDialog.set_AddExtension(Boolean value)
   at SevenCitiesOfGoldUtility.Form1.loadSaveGameToolStripMenuItem_Click(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.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 action that failed was:
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.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
Seven Cities of Gold - Utility - v1.01
    Assembly Version:
    Win32 Version:
    CodeBase: file:///H:/seven%20cities%20of%20gold%20utility/Seven%20Cities%20of%20Gold%20-%20Utility%20-%20v1.01.exe
    Assembly Version:
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Windows.Forms/
    Assembly Version:
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System/
    Assembly Version:
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Drawing/

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging

For example:

    <system.windows.forms jitDebugging="true" />

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.



Postby Kroah » 01 Oct 2006, 18:21

The problem could come because:

- you try to open a file located on intranet or local network (solve: copy the saved game to the same directory of the program)
- you try to open a file already opened (solve: be sure not to open the saved game while the emulator is running with the same saved game)
- something else i don't know, let's see if it could be one of the above problem first :)

Site Admin
Posts: 418
Joined: 07 Feb 2006, 01:01
Location: France

figured it out for the Win2000 Intranet problem

Postby SpicyChronos » 02 Oct 2006, 04:42

Okay, I was able to sucessfully load my map disk.

I had to copy the Utility and the Map disk to the local C: drive.


Postby Kroah » 02 Oct 2006, 05:03


Microsoft .Net has a high security level by default. It can be changed later in the .net configuration manager, but it's confusing at start.
Site Admin
Posts: 418
Joined: 07 Feb 2006, 01:01
Location: France

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest