开发者

Silverlight RIA Service application - how to get network access?

In my Silverlight application I host a domain service that needs to copy and read files elsewhere on the network. The problem (at least I think) is that RIA services are running 开发者_如何学Cunder the ASP.NET account and does not have access to the UNC share I need to get to. For example, I have a share that looks like this:

\\SERVER_NAME\Directory\File.TXT

When debugging on my local machine, the user context is the logged in user, so everything works, but when I deploy to my IIS7 server, the user is whatever ASP.NET uses.

How can I allow my service to access files across my domain?


You should create an appPool in IIS7 with the identity of that pool set to a user with the privileges to do what you want.

I would consider if those privileges constituted a security risk and if the application needed securing.

For more detail and help on appPools please see here.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜