Running App over Intranet Help Needed

  • Thread starter Thread starter AMerrell
  • Start date Start date
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 know this suggestion sounds stupid. But have you checked the rights to the
area of the file server you want to read/write. On the file server what
permission level is your program operating at?

Sounds like a application permission issue on the file security
 
Thanks for the reply!

I have admin rights on the novell server I was testing it on. I'm pretty
sure its a problem with the text file the app is trying to read from. After
I recieve the error if I click continue the runs but does not display the
text from my file. As far as what permission level the program is running
at, I haven't been able to figure that out yet. I'm new to VB.

Thanks,
AMerrell
 
Back
Top