wcf - Reporting Services LocalReport and WIF -
i have wcf webservice uses wif authentication. part of responsibility of webservice generate report , email it. if render report data fine. if include report parameters, report constants, or datetime.now following exception:
an error occurred during local report processing.failed load expression host assembly. details: request permission of type 'system.security.permissions.securitypermission, mscorlib, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089' failed
i can run same report in wcf service not use wif, security environment fubarred.
i don't know how proceed solving problem. can help? thanks!
this works:
var reportinstance = new localreport(); reportinstance.setbasepermissionsforsandboxappdomain(new permissionset(permissionstate.unrestricted));
i don't understand why. understand report being granted permissions can't wif, don't understand permissions or why needs them. so, answer "gives man fish," can else "teach man fish" explaining deeper issue?
Comments
Post a Comment