CommunicationException was unhandled by user code;The remote server returned an error: NotFound

Answered CommunicationException was unhandled by user code;The remote server returned an error: NotFound

  • Thursday, September 06, 2012 6:57 AM
     
      Has Code

    I have created a Azure cloud service with wcf web role. I am accessing a table storage from azure to get the details. I have deployed the wcf service in azure. When i am consuming the service in my silverlight application i encountered this error.

    This my

    Web.config file of my web role

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
      <configSections>
      </configSections>
        <!--To collect diagnostic traces, uncomment the section below or merge with existing system.diagnostics section.
            To persist the traces to storage, update the DiagnosticsConnectionString setting with your storage credentials.
            To avoid performance degradation, remember to disable tracing on production deployments.-->
      <!--<system.diagnostics>     
        <sharedListeners>
          <add name="AzureLocalStorage" type="CloudeVideoServiceWebRole.AzureLocalStorageTraceListener, CloudeVideoServiceWebRole"/>
        </sharedListeners>
        <sources>
          <source name="System.ServiceModel" switchValue="Verbose, ActivityTracing">
            <listeners>
              <add name="AzureLocalStorage"/>
            </listeners>
          </source>
          <source name="System.ServiceModel.MessageLogging" switchValue="Verbose">
            <listeners>
              <add name="AzureLocalStorage"/>
            </listeners>
          </source>
        </sources> 
       </system.diagnostics>--> 
      
      
      <system.diagnostics>
        <trace>
      <listeners>
            <add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=1.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="AzureDiagnostics">
              <filter type="" />
            </add>
          </listeners>
        </trace>
      </system.diagnostics>
      <system.web>
        <compilation debug="true" targetFramework="4.0" />
            <machineKey decryption="AES" decryptionKey="F7FA540B4DFD82E5BB196B95D15FF81F8CCC472560AD29264C56228C1BEFBA80" validation="SHA1" validationKey="8CCC472560AD29264C56228C1BEFBA805C47F4AF9DE62168764FF0DCE537184F0535D5D9AD66DEDC8CCC472560AD29264C56228C1BEFBA805C47F4AF97DC1ABF" />
      </system.web>
      <system.serviceModel>
        <behaviors>
          <serviceBehaviors>
            <behavior>
              <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
              <serviceMetadata httpGetEnabled="true" />
              <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
              <serviceDebug includeExceptionDetailInFaults="true" />
            </behavior>
          </serviceBehaviors>
        </behaviors>
        <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
      </system.serviceModel>
      <system.webServer>
        <modules runAllManagedModulesForAllRequests="true" />
        <!--
            To browse web app root directory during debugging, set the value below to true.
            Set to false before deployment to avoid disclosing web app folder information.
        -->
        <directoryBrowse enabled="true" />
      </system.webServer>
    </configuration>
    
    Can anyone help me!!!


    srithar

    • Moved by Otomii Lu Friday, September 07, 2012 6:16 AM (From:Windows Communication Foundation (WCF))
    •  

All Replies

  • Friday, September 07, 2012 8:24 AM
    Moderator
     
     Answered

    Hi,

    This is a commen error message in Silverlight application. The first thing I would suggest is to explicitly specify binding configuration in web.config. In .NET 4 Visual Studio does not generate binding configuration for WCF service anymore and uses implict configurations, which may vary in different environments. Secondly, if you're using HTTP binding, you can use Fiddler to see the HTTP response from server, which can tell you what the problem is. Please let me know what you find in Fiddler log so that we can do further troubleshooting steps.


    Allen Chen [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.