Monday, September 10, 2012

Communication Exception was unhandled by user code: The remote server returned an error: NotFound.

Communication Exception was unhandled by user code: The remote server returned an error: NotFound.

I am uploading video files to Azure Blob via silverlight. When i upload files more than 25 mb. I am getting the following error: Communication Exception was unhandled by user code: The remote server returned an error: NotFound.

Web.Config in Web Role WCF Service

<?xml version="1.0"?>  <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="AzureVideoGalleryService.AzureLocalStorageTraceListener, AzureVideoGalleryService"/>      </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" />      <httpRuntime maxRequestLength="2147483647"/>      <sessionState timeout="6000"></sessionState>    </system.web>    <system.serviceModel>      <bindings>        <basicHttpBinding>          <binding name="ServicesBinding"                   maxReceivedMessageSize="2147483647"                   maxBufferSize="2147483647" maxBufferPoolSize="2147483647">            <readerQuotas                      maxArrayLength="2147483647"                      maxBytesPerRead="2147483647"                      maxDepth="2147483647"                      maxNameTableCharCount="2147483647"                      maxStringContentLength="2147483647"/>          </binding>        </basicHttpBinding>      </bindings>      <services>        <service name="AzureVideoGalleryService.Service1" behaviorConfiguration="AzureVideoGalleryServiceData.Service1Behavior">          <endpoint address="" binding="basicHttpBinding" contract="AzureVideoGalleryService.IService1" bindingConfiguration ="ServicesBinding"/>          <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>        </service>      </services>      <behaviors>        <serviceBehaviors>          <behavior name="AzureVideoGalleryServiceData.Service1Behavior">            <!-- 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"/>            <dataContractSerializer maxItemsInObjectGraph ="2147483647"/>          </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>  

Service Definition on my Cilent side Silverlight

<configuration>      <system.serviceModel>          <bindings>              <basicHttpBinding>                  <binding name="BasicHttpBinding_IService1" maxBufferSize="2147483647"                      maxReceivedMessageSize="2147483647">                      <security mode="None" />                  </binding>              </basicHttpBinding>          </bindings>          <client>              <endpoint address="http://127.0.0.1:82/Service1.svc" binding="basicHttpBinding"                  bindingConfiguration="BasicHttpBinding_IService1" contract="TestService.IService1"                  name="BasicHttpBinding_IService1" />          </client>      </system.serviceModel>  </configuration>  

Pls help!!!

Answers & Comments...




No comments:

Post a Comment

Send us your comment related to the topic mentioned on the blog