Security issue when rolling app to Network

R

Richard

The dot Net 2 based VB.NET app works fine when used on the server
When used by any machine other than a machine loaded with VS on the
newtork it fails with this error:

************** Exception Text **************
System.Security.SecurityException:
System.Security.Permissions.SecurityPermission
at SupportPlugin.clsTools.GetFromINI(String& sSection, String&
sKey, String& sDefault, String& sIniFile)
at SupportPlugin.SupportSystem.SupportSystem_Load(Object sender,
EventArgs e)
at System.Windows.Forms.UserControl.OnLoad(EventArgs e)
at System.Windows.Forms.UserControl.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.UserControl.WndProc(Message& m)
at
System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at
System.Windows.Forms.Control.ActiveXImpl.System.Windows.Forms.IWindowTarget.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 demand was for:
<IPermission class="System.Security.Permissions.SecurityPermission,
mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Flags="UnmanagedCode"/>

The Zone of the assembly that failed was:
MyComputer

The code in question is calling processes for reading INI files


How do I give the necessary permission, and to whom on what?
 
E

Essam Salah

Why using INI files where config files are enough?

Thanks and have a nice day



Essam Salah

Team Leader

ITWorx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top