how to access Sharepoint Data in Silverlight Webpart

Oct 30, 2008 at 9:59 AM

hi,
i want to create silverlight webpart having data from sharepoint list.
and whenever user access this webpart there may be server postback to get more data
i tried :
    1. using HttpWebRequest
                - but getting error due to Credential issue
                - error like Request for the permission of type 'System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
    2. using custom Wcf service and adding that service in Silverlight webpart app
             - but again issue is how to pass current user credential
is there any other  way to solve this problem
thanks in advance.
regards,
Suyog Kale
Sr. Software engg, SpadeWorx
(suyog.kale@gmail.com)