Same situation
I have a similar situation,
I'm running my application through IIS.
this is my code:
<Assembly: AssemblyKeyFileAttribute("C:\Documents and Settings\Marc-An\My Documents\Projet\Training Program\Web\AccentWeb\sgKey.snk")>
PublicClass frmAccentAccess
Inherits System.Windows.Forms.Form
PrivateSub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdCancel.Click
Me.Close()
EndSub
PrivateSub cmdOk_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdOk.Click
Dim appDir AsString = Directory.GetCurrentDirectory()
Me.Text = appDir
EndSub
EndClass
It give the following error:
Request for the permission of type
Syste.Security.Permission.FileIOPermission, mscorlib, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
any clear and explicit help would be very appreciated.
thank you.
I have a similar situation,
I'm running my application through IIS.
this is my code:
<Assembly: AssemblyKeyFileAttribute("C:\Documents and Settings\Marc-An\My Documents\Projet\Training Program\Web\AccentWeb\sgKey.snk")>
PublicClass frmAccentAccess
Inherits System.Windows.Forms.Form
PrivateSub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdCancel.Click
Me.Close()
EndSub
PrivateSub cmdOk_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdOk.Click
Dim appDir AsString = Directory.GetCurrentDirectory()
Me.Text = appDir
EndSub
EndClass
It give the following error:
Request for the permission of type
Syste.Security.Permission.FileIOPermission, mscorlib, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
any clear and explicit help would be very appreciated.
thank you.