开发者

.Net Ria Services Deployment

开发者 https://www.devze.com 2022-12-11 10:48 出处:网络
I am having difficulty deploying RIA services/Silverlight 3 to a staging environment. Here is my situation:

I am having difficulty deploying RIA services/Silverlight 3 to a staging environment.

Here is my situation: 1) I am using RIA for authentication. This works fine on both my development machine and in the staging environment.

2) I created a custom LinqToEntities RIA service to get data from the database into my application. This service works fine when I do a local build, but does not work on the staging server.

  • The server side RIA code never gets called when the c开发者_运维技巧lient makes a call to it.
  • The RiaContext appears to be initialized ok, i.e. it does not throw an exception.
  • I use code sililar to Context.Load(qry); to put data into the entities. The LoadOperation's complete event fires, but no data was loaded, the serverside methods were never called.

Any ideas on what may be wrong?


I would check to make sure that you have:

  1. The correct connection string in your web.config.
  2. The application is configured to run under a service account that has permissions to access the database.

Your Context.Load should be passing a completed event handler and in that handler you chould check that the LoadOperation.HasError is false. There will be no exception thrown if something went wrong, you have to explicity check for the error.

0

精彩评论

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