Search code examples
silverlightiis-7entity-framework-4wcf-ria-services

Load operation failed for query x. the remote server returned an error: notfound


I published a silverlight application with wcf ria service to my local host on windows 7 (IIS7).but when i run application in browser ,my silverlight application can not connect to wcf ria service and i receive the following error:

load operation failed for query x. the remote server returned an error: notfound

how can i fix this problem?!!!


Solution

  • The 'Not Found' error returned by IIS is something of a misnomer. Many times it masks over something else that happened and thus hides the true error.

    One such instance of this is when the amount of information returned by the query exceeds IIS's limit of how much information it can return (the default for IIS 7 is something like 4 meg). This will result in the 'Not Found' error. To diagnose this condition, change your service so that it returns only a single record guaranteed to be less than 4 meg in size. If this is the case, you can change the IIS default, or change your data load strategy (the latter is preferable).

    Other conditions can be diagnosed similarly.