Hi,
I am writing what should be a very simple app to play wav files directly from my hard drive. As a test, i have run the simple code below
<code>
My.Computer.FileSystem.CurrentDirectory = "C:\Windows\Media"
LbClips.DataSource = _
My.Computer.FileSystem.GetFiles( _
My.Computer.FileSystem.CurrentDirectory, _
False, _
"*.wav")
</code>
however i am getting when debugging an error saying
"Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."
Has anyone any idea what could be causing this? Please bear in mind I am new to .net development so I might just be overlooking something simple!
Regards,
David.