mahesh051697
asked on
Security Policy (Running from Server)
Hi all, Adv thx for your solution.
I installed my VB.NET application on the 2003 Server and I created the short cuts on the client systems to access the Application, but giving the following security error message.
----------
System.Security.SecurityEx ception: Request for the permission of type System.Security.Permission s.Security Permission , mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c56193 4e089 failed.
at Myapp.FrmLoginServerNameAn dDB.FrmLog inServerNa meAndDB_Lo ad(Object sender, EventArgs e)
at System.Windows.Forms.Form. OnLoad(Eve ntArgs e)
at System.Windows.Forms.Form. OnCreateCo ntrol()
at System.Windows.Forms.Contr ol.CreateC ontrol(Boo lean fIgnoreVisible)
at System.Windows.Forms.Contr ol.CreateC ontrol()
at System.Windows.Forms.Contr ol.WmShowW indow(Mess age& m)
at System.Windows.Forms.Contr ol.WndProc (Message& m)
at System.Windows.Forms.Scrol lableContr ol.WndProc (Message& m)
at System.Windows.Forms.Conta inerContro l.WndProc( Message& m)
at System.Windows.Forms.Form. WmShowWind ow(Message & m)
at System.Windows.Forms.Form. WndProc(Me ssage& m)
at System.Windows.Forms.Contr olNativeWi ndow.OnMes sage(Messa ge& m)
at System.Windows.Forms.Contr olNativeWi ndow.WndPr oc(Message & m)
at System.Windows.Forms.Nativ eWindow.Ca llback(Int Ptr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/microso ft.net/fra mework/v1. 1.4322/msc orlib.dll
-------------------------- ---------- ----
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembl y/gac/syst em/1.0.500 0.0__b77a5 c561934e08 9/system.d ll
-------------------------- ---------- ----
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembl y/gac/syst em.drawing /1.0.5000. 0__b03f5f7 f11d50a3a/ system.dra wing.dll
-------------------------- ---------- ----
AuditMgnt
Assembly Version: 1.0.1700.15835
Win32 Version: 1.0.1700.15835
CodeBase: file:///G:/bin/AuditMgnt.e xe
-------------------------- ---------- ----
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembl y/gac/syst em.windows .forms/1.0 .5000.0__b 77a5c56193 4e089/syst em.windows .forms.dll
-------------------------- ---------- ----
System.Xml
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembl y/gac/syst em.xml/1.0 .5000.0__b 77a5c56193 4e089/syst em.xml.dll
-------------------------- ---------- ----
Microsoft.VisualBasic
Assembly Version: 7.0.5000.0
Win32 Version: 7.10.3052.4
CodeBase: file:///c:/windows/assembl y/gac/micr osoft.visu albasic/7. 0.5000.0__ b03f5f7f11 d50a3a/mic rosoft.vis ualbasic.d ll
-------------------------- ---------- ----
System.Data
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembl y/gac/syst em.data/1. 0.5000.0__ b77a5c5619 34e089/sys tem.data.d ll
-------------------------- ---------- ----
************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
I installed my VB.NET application on the 2003 Server and I created the short cuts on the client systems to access the Application, but giving the following security error message.
----------
System.Security.SecurityEx
at Myapp.FrmLoginServerNameAn
at System.Windows.Forms.Form.
at System.Windows.Forms.Form.
at System.Windows.Forms.Contr
at System.Windows.Forms.Contr
at System.Windows.Forms.Contr
at System.Windows.Forms.Contr
at System.Windows.Forms.Scrol
at System.Windows.Forms.Conta
at System.Windows.Forms.Form.
at System.Windows.Forms.Form.
at System.Windows.Forms.Contr
at System.Windows.Forms.Contr
at System.Windows.Forms.Nativ
************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/microso
--------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembl
--------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembl
--------------------------
AuditMgnt
Assembly Version: 1.0.1700.15835
Win32 Version: 1.0.1700.15835
CodeBase: file:///G:/bin/AuditMgnt.e
--------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembl
--------------------------
System.Xml
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembl
--------------------------
Microsoft.VisualBasic
Assembly Version: 7.0.5000.0
Win32 Version: 7.10.3052.4
CodeBase: file:///c:/windows/assembl
--------------------------
System.Data
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembl
--------------------------
************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.