none
Missing pdb file RRS feed

  • Question

  • I have a Silverlight application with a hosted WCF service. After migrating from Windows XP to Windows 8 I have problems, when I try to publish the web service to a remote server (it Works fine on localhost).

    I have noticed, that when I publish to the remote server, it doesn't create a pdb file in the bin folder. This is true both, when I publish from Visual Web developer 2010 and Visual Studio for Web 2013 on my Windows 8 PC. When I publish from Visual Web developer 2010 on my Windows XP PC, it does create a pdb file.

    I can call the web service by putting the url in IE and get the usual information. But when I call my web app, which calls the web service, the app hangs - apperantly it can't connect to the service. But I get no error message from the app as it should, when the service call returns e.Error != null.

    I have found the following error messages in the server.svclog file:
    1. There is a problem with the XML that was received from the network. See inner exception for more details
    2. Content Type application/soap+xml; charset=utf-8 was sent to a service expecting application/soap+msbin1.  The client and service bindings may be mismatched.

    Does that help finding the reason for the problem?

    There are no entries in Fiddler neither when I make the simple call with the service url in IE, nor when I try to call the app.

    Tuesday, November 19, 2013 1:43 PM

Answers

  • Hi,

    >>Content Type application/soap+xml; charset=utf-8 was sent to a service expecting application/soap+msbin1.  The client and service bindings may be mismatched

    Please try to debug the application with a fiddler trace to see what HTTP request is being sent and what is being returned. And check if it really is a SOAP response or an IIS error wrapped as XML.

    #Fiddler:
    http://fiddler2.com/ .

    #Silverlight & WCF Debugging and using Fiddler:
    http://www.fredmastro.com/post/Silverlight-WCF-Debugging-and-using-Fiddler!.aspx .

    And do mind to share your configure file here?

    Maybe you did not have the correct namespace in the services element inside web.config.

    http://msdn.microsoft.com/en-us/library/ms733932.aspx.

    For instance, the name attribute should have "a fully qualified name which consists of the namespace, a period, and then the type name. For example "MyNameSpace.myServiceType"."

    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, November 20, 2013 8:07 AM
    Moderator
  • Some how the problem has been solved. Only I don't know exactly why. So please close the issue and thank you for help.
    Saturday, November 23, 2013 1:25 PM

All replies

  • Hi,

    >>Content Type application/soap+xml; charset=utf-8 was sent to a service expecting application/soap+msbin1.  The client and service bindings may be mismatched

    Please try to debug the application with a fiddler trace to see what HTTP request is being sent and what is being returned. And check if it really is a SOAP response or an IIS error wrapped as XML.

    #Fiddler:
    http://fiddler2.com/ .

    #Silverlight & WCF Debugging and using Fiddler:
    http://www.fredmastro.com/post/Silverlight-WCF-Debugging-and-using-Fiddler!.aspx .

    And do mind to share your configure file here?

    Maybe you did not have the correct namespace in the services element inside web.config.

    http://msdn.microsoft.com/en-us/library/ms733932.aspx.

    For instance, the name attribute should have "a fully qualified name which consists of the namespace, a period, and then the type name. For example "MyNameSpace.myServiceType"."

    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, November 20, 2013 8:07 AM
    Moderator
  • Below is the clientaccesspolicy file. It's location is shown on the screen dump below.

     

    <?xml version="1.0" encoding="utf-8" ?>
    <access-policy>
      <cross-domain-access>
        <policy>
          <allow-from http-request-headers="*">
            <domain uri="*"/>
          </allow-from>
          <grant-to>
            <resource include-subpaths="true" path="/"/>
          </grant-to>
        </policy>
      </cross-domain-access>
    </access-policy>

    The services part of the web.config:

    <services>
     <service behaviorConfiguration="Familiealbummet.Web.DBServiceBehavior" name="Familiealbummet.Web.DBService">
      <endpoint address="" binding="customBinding" bindingConfiguration="customBinding0" contract="Familiealbummet.Web.DBService"/>
      <endpoint address="mex" binding="basicHttpBinding" contract="IMetadataExchange"/>
     </service>
    </services>

    When I run the application directly from Visual Studio against the remove web service, it works. But when I call the app via IE url=www.mejlholm.dk/familiealbummettest, it just hangs. I have put debug messages into the app, which shows that it never reaches the point, where it calls the web service.

    As I said, no pdb file in folder bin is generated, when I publish the app. What is the purpose of the pdb file? Does that explain, why I can only run the app directly from VS?

    service>

    </

    services>


    Wednesday, November 20, 2013 1:27 PM
  • Below is a TextView from Fiddler,  when I try to run the app at www.mejlholm.dk/FamiliealbummetTest. When I run it directly from VS, this message is not present. Note: "Your browser does not support frames...". What does this mean? I use IE version 10.0.9200.16736. I have just bought the PC with Windows 8, so I would expect, that I have a new version od IE.

    PS: After searching the forums I understand, that my problem has nothing to do with the missing pdb file, Is that true?

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

    <html>

    <head>

    <title>www.mejlholm.dk</title>

    </head>

    <frameset  rows="*">

        <frame src="http://mejlholmdk0.eweb702.discountasp.net/FamiliealbummetTest" name="scannet_url_redirect_frame" scrolling="Auto" noresize marginwidth="0" marginheight="0">

    </frameset>

    <noframes>

    Your browser does not support frames...

    <A HREF="http://mejlholmdk0.eweb702.discountasp.net/FamiliealbummetTest">Click here to continue</A>

    </noframes>

    <body></body>

    </html>





    Thursday, November 21, 2013 11:46 AM
  • Some how the problem has been solved. Only I don't know exactly why. So please close the issue and thank you for help.
    Saturday, November 23, 2013 1:25 PM