Security Exception with Naudio.dll

Jul 4, 2011 at 12:29 PM

Hi All,

    I am getting security exception while uploading my code with naudio into the Godaddy sever. My error was "System.Security.Policy.PolicyException: Required permissions cannot be acquired."

Please help me, how can I resolve this error in godaddy server. In my local application it works great. Please help...

 

Thanks,

Neeraja.

Coordinator
Jul 4, 2011 at 9:10 PM

I'd ask about this on stackoverflow, since I am not an expert on web hosting permissions. Make sure you include the full stack trace for the exception.

Mark

Sep 29, 2011 at 7:28 AM

Hi,

Any update on this.. I am having the same issue. This is where i am getting the issue..

1. Upload the song file using file upload control.

2. File uploaded successfully. I am able to download it through url.

3. Try to open the file using NAudio Mp3FileReader.. Failed.. Security Issue..

4. Second Alternatively.. I opened FileStream to the file it failed for not having permission to open the file.

5. Third alternatively .. Stored file in the database. Opened a memory stream .. passed stream to MP3FileReader.. Failed

Manish

Sep 29, 2011 at 9:01 AM

Hi Manish,

If you are facing this in your hosting server that hosting server must be dedicated server. Shared hosting server won't permit this dll, so if you host your site on dedicated server this problem definately resolved. I have done the same and i am able to run this dll in my website. Let me know your views on this.

Thanks,

Neeraja.