Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.Security.SecurityException #7

Closed
nicoclau opened this issue Dec 3, 2015 · 2 comments
Closed

System.Security.SecurityException #7

nicoclau opened this issue Dec 3, 2015 · 2 comments

Comments

@nicoclau
Copy link

nicoclau commented Dec 3, 2015

Hello, our project in .NET 4.5 used the option (so we don't have to handle the security permissions ourselves)

< runtime >
< NetFx40_LegacySecurityPolicy enabled="true"/ >
< /runtime >

And when we tried to run

PhoneNumbers.PhoneNumberOfflineGeocoder.GetInstance().GetDescriptionForValidNumber

it fails with the exception

System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

Could you please tell us why this happened, do we need a set of permissions?

Thanks :)

Nicolas

@aidanbebbington
Copy link
Collaborator

Sorry for the horrendous delay on this, perhaps someone else has a similar issue. The only IO access this project requires is to read the resources that are supposedly embedded into the DLL. I wouldn't have thought that would require any permissions at all, but perhaps it does?

@twcclegg
Copy link
Owner

Closing due to inactivity, let me know if this is still an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants