c# - WinApp failing after publishing on Security.Permission.FileIOPermission -
c# - WinApp failing after publishing on Security.Permission.FileIOPermission -
i don't understand problem. running winapp visual studio or if start app locally, works charm, publish it, error.
string special = environment.getfolderpath(environment.specialfolder.localapplicationdata);
the stack trace this:
an error window poping up
error on "system.security.permission.fileiopermission, mscorlib, version=2.0.0.0, culture=neutral.
stacktrace: system.security.securityexception: fehler bei der anforderung des berechtigungstyps "system.security.permissions.fileiopermission, mscorlib, version=2.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089". bei system.security.codeaccesssecurityengine.check(object demand, stackcrawlmark& stackmark, boolean ispermset) bei system.security.codeaccesspermission.demand() bei system.environment.getfolderpath(specialfolder folder) (...)
is there missing, permission configuration? using .net 3.5, x86
c# .net vb.net visual-studio-2012
Comments
Post a Comment