L
leeedw
Hi All,
I have a windows app that runs perfectly on my machine, but when I try
to run it over the network it bombs. I get a permissions error.
Here is the code, I even tried adding FileIOPermission code but to no
avail:
objFilePermission = FileIOPermission
(Security.Permissions.FileIOPermissionAccess.AllAccess, sFileName)
objFilePermission.Demand()
objStreamReader = New System.IO.StreamReader(sFileName)
*** Bombs right here ***
The error I get is:
Request for the permission of type
System.Security.Permissions.FileIOPermission, mscorlib,
Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
failed.
I even added my entire computer to the FullTrust permission using:
caspol -ag 1. -site myservername FullTrust
I also tried adding modifying the Runtime Security
Policy->Machine->Code Groups->All_Code->LocalIntranet_Zone to FullTrust
as well.
What am I missing here? Can anyone help?
Thanks
I have a windows app that runs perfectly on my machine, but when I try
to run it over the network it bombs. I get a permissions error.
Here is the code, I even tried adding FileIOPermission code but to no
avail:
objFilePermission = FileIOPermission
(Security.Permissions.FileIOPermissionAccess.AllAccess, sFileName)
objFilePermission.Demand()
objStreamReader = New System.IO.StreamReader(sFileName)
*** Bombs right here ***
The error I get is:
Request for the permission of type
System.Security.Permissions.FileIOPermission, mscorlib,
Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
failed.
I even added my entire computer to the FullTrust permission using:
caspol -ag 1. -site myservername FullTrust
I also tried adding modifying the Runtime Security
Policy->Machine->Code Groups->All_Code->LocalIntranet_Zone to FullTrust
as well.
What am I missing here? Can anyone help?
Thanks