0

I have created an application which populates a .csv file on the data-grid.When the user
clicks a button a dialog box opens and the user selects a .csv file and opens it.

The connection string that I've used is;
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source='"+filename+"'ExtendedProperties=text;HDR=Yes;FMT=Delimited";

When I run the program the error that I get is:
Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Please help.

3
Contributors
4
Replies
5
Views
10 Years
Discussion Span
Last Post by JerryShaw
0

try to run your application as administrator and feed me back!

Yes I ran the application as you adviced me to, but it is giving me a new error,
regarding connectionstring what should be the connection string to populate a .csv file
in a datagrid?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.