I am developing a partial trust xbap app . but when i try to open the odbc connection then it gives me the error of permission . the error is :

    Request for the permission of type 'System.Data.Odbc.OdbcPermission, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

How to solve this problem ??

有帮助吗?

解决方案

I am not experienced in developing xbap with partial trust, but answer to this question as indicated here is you can't access database directly in partial trust wpf application. Solution to this problem is to delegate responsibility of accessing database to web service. And your xbap simply consume that web service.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top