开发者

Request for the permission of type 'System.Web.AspNetHostingPermission in WPF XBAP

I'm simply running a small piece of code in a button click event of a WPF application.

The code simply connects to the database to retrieve images and display on the form.

But,I get this Request for the permission of type 'System.Web.AspNetHostingPermission Excep开发者_如何学Pythontion..

Please help me with this.... Thanks so much...


I heard that this is not possible directly from a Silverlight app (which I guess also applies to WPF XBAP) since its a security issue.

The alternate way is to have a WCF service and retrieve data through the WCF service.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜