views:

259

answers:

0

I have a Silverlight 4 client application that is calling out to an ASP.NET Data Services service hosted inside IIS 7, restricted to Windows Authentication. Both are hosted in the same location in IIS. When running the application within the browser, I am prompted for credentials via the browser, and when provided everything works fine.

When installed out of browser, however, I am not prompted for credentials. This causes the service calls to fail. I understand that in OOB scenarios the BrowserHttp stack is not used, but instead the ClientHttp stack is used. I have tried setting this directly on the DataServiceContext (rather than the default of Auto which is supposed to be smart enough to switch when necessary) but still the same problem. I do not see any way to manually pass credentials into the DataServiceContext.

Has anyone successfully implemented a call to an ADO.NET Data Service hosted in IIS behind Windows/NTLM authentication from within Silverlight 4?