A
AMerrell
Hi,
I wrote a vb app to display a message that is read from a text file. This
app will be called by our Novell Logon script. I wrote and tested the app
on my local windows xp system and everything works fine. I moved the app to
our file server and it throws a
System.Security.Permissions.FileIOPermission. Everything I've found on the
net suggested I do something like this:
Dim FileIO1 As New FileIOPermission(PermissionState.Unrestricted)
FileIO1.Assert()
Dim FS As FileStream
FS = New System.IO.FileStream("Message.txt", IO.FileMode.Open)
Dim SR As New StreamReader(FS)
txtMessage.Text = SR.ReadToEnd
SR.Close()
FS.Close()
FileIO1.RevertAssert()
I also tried to create a stron named assembly but I can't find the check box
for it in the Project Properties like the tutorial I printed out says I
would find.
Any help is appreciated!
Thank You,
AMerrell
I wrote a vb app to display a message that is read from a text file. This
app will be called by our Novell Logon script. I wrote and tested the app
on my local windows xp system and everything works fine. I moved the app to
our file server and it throws a
System.Security.Permissions.FileIOPermission. Everything I've found on the
net suggested I do something like this:
Dim FileIO1 As New FileIOPermission(PermissionState.Unrestricted)
FileIO1.Assert()
Dim FS As FileStream
FS = New System.IO.FileStream("Message.txt", IO.FileMode.Open)
Dim SR As New StreamReader(FS)
txtMessage.Text = SR.ReadToEnd
SR.Close()
FS.Close()
FileIO1.RevertAssert()
I also tried to create a stron named assembly but I can't find the check box
for it in the Project Properties like the tutorial I printed out says I
would find.
Any help is appreciated!
Thank You,
AMerrell