Skip to main content
Home Forums Silverlight Programming Accessing Web Services with Silverlight WCF in Production Error.
7 replies. Latest Post by kingve on November 9, 2009.
(0)
kingve
Member
21 points
78 Posts
11-08-2009 2:46 AM |
Hi Guys. Mi WCF working without issues in my VS, but in IIS 7 present problem 500
my structure in deploy is.
Service URL: http://MyServerName/MySite/MyService.svc
Page URL: http://localhost/MySite/MyTestPage.aspx
and put clientaccesspolicy.xml file in my wwwroot folder.
but is not working.
this is log by IIS7
2009-11-08 07:32:41 ::1 GET /Tipificacion/ - 80 - ::1 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+6.1;+Trident/4.0;+SLCC2;+.NET+CLR+2.0.50727;+.NET+CLR+3.5.30729;+.NET+CLR+3.0.30729;+Media+Center+PC+6.0;+.NET+CLR+1.1.4322;+OfficeLiveConnector.1.4;+OfficeLivePatch.1.3) 200 0 0 82009-11-08 07:32:41 ::1 GET /Tipificacion/Silverlight.js - 80 - ::1 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+6.1;+Trident/4.0;+SLCC2;+.NET+CLR+2.0.50727;+.NET+CLR+3.5.30729;+.NET+CLR+3.0.30729;+Media+Center+PC+6.0;+.NET+CLR+1.1.4322;+OfficeLiveConnector.1.4;+OfficeLivePatch.1.3) 304 0 0 12009-11-08 07:32:41 ::1 GET /Tipificacion/ClientBin/PersonFramework.xap - 80 - ::1 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+6.1;+Trident/4.0;+SLCC2;+.NET+CLR+2.0.50727;+.NET+CLR+3.5.30729;+.NET+CLR+3.0.30729;+Media+Center+PC+6.0;+.NET+CLR+1.1.4322;+OfficeLiveConnector.1.4;+OfficeLivePatch.1.3) 304 0 0 12009-11-08 07:32:42 ::1 GET /clientaccesspolicy.xml - 80 - ::1 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+6.1;+Trident/4.0;+SLCC2;+.NET+CLR+2.0.50727;+.NET+CLR+3.5.30729;+.NET+CLR+3.0.30729;+Media+Center+PC+6.0;+.NET+CLR+1.1.4322;+OfficeLiveConnector.1.4;+OfficeLivePatch.1.3) 304 0 0 12009-11-08 07:32:42 ::1 POST /Tipificacion/PersonService.svc - 80 - ::1 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+6.1;+Trident/4.0;+SLCC2;+.NET+CLR+2.0.50727;+.NET+CLR+3.5.30729;+.NET+CLR+3.0.30729;+Media+Center+PC+6.0;+.NET+CLR+1.1.4322;+OfficeLiveConnector.1.4;+OfficeLivePatch.1.3) 500 0 0 1
any suggestion?
shamrat231
Contributor
4677 points
595 Posts
11-08-2009 4:35 AM |
Suggestion?? try web development helper to check your service is working or not as shown in tim heuer video.
[download] http://projects.nikhilk.net/Content/Projects/WebDevHelper/WebDevHelper.zip
[video] http://silverlight.net/learn/videos/silverlight-videos/how-to-use-cross-domain-policy-files-with-silverlight/
Another debugging tools such as Fiddler
[blog] http://blogs.silverlight.net/blogs/msnow/archive/2008/10/20/silverlight-tip-of-the-day-63-how-to-monitor-http-traffic-for-errors.aspx
Sharker Khaleed MahmudSoftware Developer(MCP,MCTS,MCPD[web])
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
11-08-2009 2:50 PM |
this tools, don't show me anything....
the error is
Message: Unhandled Error in Silverlight Application Excepción durante la operación. The Result is Not Valid. Check the Exception InnerException for more details. in System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary() in PersonFramework.PersonSR.GetLoginCompletedEventArgs.get_Result() in SilverlightLOBFramework.Content.Miscellaneous.LoginPage.AWDataServiceClient_LoginCompleted(Object sender, GetLoginCompletedEventArgs e) in PersonFramework.PersonSR.PersonServiceClient.OnGetLoginCompleted(Object state)Line: 1Character: 1Code: 0URI: http://srvwebp2p/tipificacion/PersonTipificacion.aspx
11-08-2009 3:04 PM |
with WcfTestClient.exe show all result wit need, working perfectly.
11-08-2009 4:03 PM |
the web development herlper show me this...
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body><s:Fault> <faultcode xmlns:a="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">a:FailedAuthentication</faultcode> <faultstring xml:lang="es-VE">Access Denied.</faultstring></s:Fault>< /s:Body> </s:Envelope>
11-09-2009 9:52 AM |
Hi first thing to check if your service is running or not, here is one of my wcf service
[url] http://buildsite.dk/ecf/editor.svc
Now, this working url need to be given on your service reference. Then compile it and publish it.
ServiceReferences.ClientConfig
<configuration> <system.serviceModel> <bindings> <basicHttpBinding> <binding name="BasicHttpBinding_Editor" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647"> <security mode="None" /> </binding> </basicHttpBinding> </bindings> <client> <endpoint address="http://buildsite.dk/ecf/editor.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_Editor" contract="EditorService.Editor" name="BasicHttpBinding_Editor" /> </client> </system.serviceModel></configuration>
Once published in your IIS and in my case http://discountasp.net, if your service url runs it will show something like my [url] click on it and if the output comes...that means your service is working. Your sl project should run
Please 'Mark As Answer' if it helps you
Sharker
11-09-2009 11:28 AM |
Hi... my WCF is working perfectly, my SL App is running to, but wehn try consume my service raise a error:
11-09-2009 2:59 PM |