开发者

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

开发者 https://www.devze.com 2022-12-14 23:06 出处:网络
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.

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

精彩评论

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