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

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -