Skip to main content

Microsoft Silverlight

Answered Question WCF in Production Error.RSS Feed

(0)

kingve
kingve

Member

Member

21 points

78 Posts

WCF in Production Error.

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 8
2009-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 1
2009-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 1
2009-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 1
2009-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
shamrat231

Contributor

Contributor

4677 points

595 Posts

Re: WCF in Production Error.

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 Mahmud
Software 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.

Dhaka, Bangladesh
LinkedIn :: SL Profile :: Blog

kingve
kingve

Member

Member

21 points

78 Posts

Re: WCF in Production Error.

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: 1
Character: 1
Code: 0
URI: http://srvwebp2p/tipificacion/PersonTipificacion.aspx 

 

kingve
kingve

Member

Member

21 points

78 Posts

Re: WCF in Production Error.

with WcfTestClient.exe show all result wit need, working perfectly.

any suggestion?

 

 

kingve
kingve

Member

Member

21 points

78 Posts

Re: WCF in Production Error.

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>
What do I do?  

 

shamrat231
shamrat231

Contributor

Contributor

4677 points

595 Posts

Answered Question

Re: WCF in Production Error.

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

Dhaka, Bangladesh
LinkedIn :: SL Profile :: Blog

kingve
kingve

Member

Member

21 points

78 Posts

Re: WCF in Production Error.

Hi... my WCF is working perfectly, my SL App is running to, but wehn try consume my service raise a error:

Error user login <domain>\<machine>$
 
but this user not exist in my AD (Active Directory)

kingve
kingve

Member

Member

21 points

78 Posts

Re: WCF in Production Error.

He was referring to a database that did not correspond, thanks for your help.

You are very good in the area.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities