b3jsd73jfx
Active member
- Joined
- Mar 6, 2006
- Messages
- 28
- Programming Experience
- 1-3
I'm running a program off of a network drive and receiving the following error:
This happens in the following code:
It happens on the bolded line, I'm sure of it (I tested). So I changed the Form1's Form_Load to have nothing in it, and I still get the same error. It does have an OCX file in it, but I took that out to test the program and the error still occurs. THis program worked fine in VS 2003 but after the upgrade it just won't work anymore. If I copy it to the local computer, it runs fine, but not off of a network drive. I have full permissions on the server and on the client (i'm an administrator) and the .net framework has been upgraded to the most recent version as well as having set the permissions to full trust (all of them).
Also, when I run the program off the development computer (the one with Visual Studio on it), I can use the file when it's on the network drive, just not on any other computer.
VB.NET:
Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
VB.NET:
On Error GoTo ErrHandler
[b]Dim Form1 As New Form1[/b]
Form1.Visible = True
Do
Application.DoEvents()
Loop Until Form1.Visible = False
End
ErrHandler:
ReportError()
Resume Next
Also, when I run the program off the development computer (the one with Visual Studio on it), I can use the file when it's on the network drive, just not on any other computer.