Silverlight 5 WCF Ria Services 404 Error in IIS 5

I developed a .an application using Silverlight and WCF Ria Services.
The application must be a host on a Windows XP machine that uses IIS 5.
Due to the information I found on the Internet, I really deployed the application without any problems.
But now, when my application tries to execute the first WCF request, I ran into this error:

Message: An unhandled error in the Silverlight Application Load failed to complete the Login request. [HttpWebRequest_WebException_RemoteServer] Arguments: NotFound Debugging resource strings is not available. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.10411.0&File=System.Windows.dll&Key=HttpWebRequest_WebException_RemoteServer in System.ServiceModel.DomainServices.Client.OperationBase.Complete (ExceptionModel) .DomainServices.Client.ApplicationServices.AuthenticationOperation.End (IAsyncResult result) in System.ServiceModel.DomainServices.Client.ApplicationServices.AuthenticationOperation <. > C_DisplayClass1.b_0 (State Object) in System.ServiceModel.DomainServices.Client.ApplicationServices.AuthenticationOperation.RunInSynchronizationContext (SendOrPostCallback callback, state of the object) in System.ServiceModel.DesainServices.Client.Aultultererlementerplentererplentererlementerlementerrevicepreferences .ServiceModel.DomainServices.Client.AsyncResultBase.Complete ()
in System.ServiceModel.DomainServices.Client.ApplicationServices.WebAuthenticationService.HandleOperationComplete (OperationBase operations) with System.ServiceModel.DomainServices.Client.LoadOperation <. > C_DisplayClass4 1.<Create>b__0(LoadOperation 1 arg) in System.ServiceModel.DomainServices.Client.LoadOperation`1.InvokeCompleteAction () in System.ServiceModel.DomainServices.Client.OperationBase.Complete (Exception error) with System.Servicel DomainServices.Client.LoadOperation.Complete (Exception error) when System.ServiceModel.DomainServices.Client.DomainContext.CompleteLoad (IAsyncResult asyncResult) in System.ServiceModel.DomainServices.Client.DomainContext <. > C_DisplayClass1b.b__17 (Object)

How can I fix this error?
Successfully applied the application on IIS 7 on a Windows 7 machine and wcf ria.
Update: after using Fiddler, I found that my application error is 404, Silverlight cannot find Ria services.

+4
source share
2 answers

NotFound means in this case any error on the server. You need to get detailed WCF logs. I would recommend that you add the following to your web.config file to enable WCF logging:

 <configuration> ... your regular configuration here ... <system.diagnostics> <sources> <source name="System.ServiceModel" switchValue="All" propagateActivity="true"> <listeners> <add name="traceListener" type="System.Diagnostics.XmlWriterTraceListener" initializeData="C:\wcflogs\your_wcf_service_log.svclog" /> </listeners> </source> </sources> </system.diagnostics> </configuration> 

You can then open the .svclog file using the service trace viewer (SvcTraceViewer.exe) and see what happened in detail.

0
source

Try reinstalling the RIA services on the server.

I think the command was RiaService.msi Server = true

After reinstalling, try to access your service directly in a web browser. Your service URL will be http://YOURDOMAIN.COM/YourAPP/Full-NameSpace-Of-Class.svc

in the namespace you will need to change the dots (.) on the dash (-)

if it does not return a response, then you must ensure that WCF is installed and registered with IIS.

0
source

All Articles