Can't run project on shared drive.

B

Brett

I have an app that works with MS Access. In Access, I select a record from
a drop down. This creates a temp table and calls the VB.NET app. The app
then takes the data in the temp table, writes it to a CSV file and uploads
that to a FORM POST. This works fine locally.

I have a mapping to a network shared folder. Such as J:\folder1\sub1. I
put the MS Access DB and VB.NET app in there. All paths are updated to
reflect the new path. I start the MS Access DB off of the network share.
Everything seems to run fine. However, nothing is uploaded. I also have a
progress bar that updates during processing. I don't see it update.

I've put the project in the shared folder and get this error when I try to
run the app in the debugger:

An unhandled exception of type 'System.Security.SecurityException' occured
in mscorlib.dll.
Additional information: Request for the permission of type
System.Security.Permissions.FileIOPermission, mscorlib, Version=1.0.5000.0,
Culture=-neutral, PublickKeyToken=b77a5c56193e089 failed.

Any ideas how I fix the above permission issue?

Thanks,
Brett
 
K

Ken Tucker [MVP]

Hi,

http://msdn.microsoft.com/library/d...nsfileiopermissionattributeclassctortopic.asp

Ken
-------------------
I have an app that works with MS Access. In Access, I select a record from
a drop down. This creates a temp table and calls the VB.NET app. The app
then takes the data in the temp table, writes it to a CSV file and uploads
that to a FORM POST. This works fine locally.

I have a mapping to a network shared folder. Such as J:\folder1\sub1. I
put the MS Access DB and VB.NET app in there. All paths are updated to
reflect the new path. I start the MS Access DB off of the network share.
Everything seems to run fine. However, nothing is uploaded. I also have a
progress bar that updates during processing. I don't see it update.

I've put the project in the shared folder and get this error when I try to
run the app in the debugger:

An unhandled exception of type 'System.Security.SecurityException' occured
in mscorlib.dll.
Additional information: Request for the permission of type
System.Security.Permissions.FileIOPermission, mscorlib, Version=1.0.5000.0,
Culture=-neutral, PublickKeyToken=b77a5c56193e089 failed.

Any ideas how I fix the above permission issue?

Thanks,
Brett
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top