Silverlight, ComunicationException Not found when uploading files with leng> xxx
===

First of all sorry about my english, is very weak. I hope it can be able to understand me well.

I'm getting troubles uploading a file with silverlight. The problem is always the same. It doesn't matter if I changed the web.config and client.config to increase the quouta value. When I'm trying to upload a file with lenght > xx kb It throws the Communication exception error NotFound.

Thanks in avanced.

Here goes the click button code when upload.

        
 

private void btAddDoc_Click(object sender, RoutedEventArgs e)
    {
        OpenFileDialog ofd = new OpenFileDialog();
        if (ofd.ShowDialog() == false)
            return;

        try
        {
            using (Stream stream = ofd.File.OpenRead())
            {
                if (stream.Length < 5120000)
                {
                    byte[] data = new byte[stream.Length];
                    stream.Read(data, 0, (int)stream.Length);
                    proxyFile.UploadFileAsync(data, ofd.File.Name, 13);
                }
                else
                {
               
                }
            }
        }
        catch
        {               
        }            
    }

 
 
                     

-------------- The web.config:  ------


  

      <?xml version="1.0"?>
    <configuration>
      <configSections>
        <sectionGroup name="system.serviceModel">
          <section name="domainServices" type="System.ServiceModel.DomainServices.Hosting.DomainServicesSection, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" allowDefinition="MachineToApplication" requirePermission="false" />
        </sectionGroup>
      </configSections>
      <connectionStrings>
        <remove name="LocalMySqlServer"/>
        <add name="LocalMySqlServer" connectionString="Datasource=192.168.16.6;uid=root;Pwd=trotar;Database=monitordeinstalaciones;" providerName="MySql.Data.MySqlClient" />
      </connectionStrings>
      <system.web>
        <authentication mode="Forms" />
        <membership defaultProvider="MySQLMembershipProvider" />
        <roleManager enabled="true" defaultProvider="MySQLRoleProvider" />
        <profile defaultProvider="MySqlProfileProvider">
          <properties>
            <add name="FriendlyName"/>
            <add name="UserId" type="int" />
          </properties>
        </profile>
        <httpModules>
          <add name="DomainServiceModule" type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        </httpModules>
        <compilation debug="true" targetFramework="4.0" />
        <globalization culture="auto" uiCulture="auto" />
      </system.web>
      <system.webServer>
        <validation validateIntegratedModeConfiguration="false"/>
        <modules runAllManagedModulesForAllRequests="true">
          <add name="DomainServiceModule" preCondition="managedHandler"
              type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        </modules>
      </system.webServer>
      <system.serviceModel>
        <bindings>
         
          <!--<customBinding>        
            <binding name="MonitorizacionIncidencias.Web.Services.Service1.customBinding0">
              <binaryMessageEncoding />
              <httpTransport />
            </binding>        
          </customBinding>-->
    
    
          <webHttpBinding>
            <binding name="MyBasicHttpBinding" maxReceivedMessageSize="2147483647"   maxBufferSize="2147483647">
            <readerQuotas
                maxArrayLength="2147483647"
                maxBytesPerRead="2147483647"
                maxDepth="2147483647"
                maxNameTableCharCount="2147483647"
                maxStringContentLength="2147483647" />
            </binding>
          </webHttpBinding>
    
          <!--<basicHttpBinding>
            <binding name="MyBasicHttpBinding"
            maxBufferPoolSize="2147483647"
            maxReceivedMessageSize="2147483647"
            maxBufferSize="2147483647">
              
            
              
            </binding>
          </basicHttpBinding>-->
    
        </bindings>
        
        <extensions>
                      
          <bindingExtensions>
            <add name="pollingDuplexHttpBinding" type="System.ServiceModel.Configuration.PollingDuplexHttpBindingCollectionElement,System.ServiceModel.PollingDuplex, Version=5.0.0.0,Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
          </bindingExtensions>
          
        </extensions>
        <services>
          
          <service behaviorConfiguration="SilverlightWCFLargeDataApplication.Web.SilverlightWCFServiceBehavior" name="MonitorizacionIncidencias.Web.Services.IncidenciasService">      
            <endpoint address="" binding="webHttpBinding" bindingConfiguration="MyBasicHttpBinding" contract="MonitorDeInstalaciones2.Web.IncidenciasService" />       
            <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />        
          </service>             
          
        </services>
        <behaviors>
          <serviceBehaviors>
          
            <behavior name="">
              <serviceMetadata httpGetEnabled="true" />
              <serviceDebug includeExceptionDetailInFaults="false" />
            </behavior>
            
            <behavior name="SilverlightWCFLargeDataApplication.Web.SilverlightWCFServiceBehavior">
              <serviceMetadata httpGetEnabled="true"/>
              <serviceDebug includeExceptionDetailInFaults="false"/>
              <dataContractSerializer maxItemsInObjectGraph="2147483647"/>          
            </behavior>
    
          </serviceBehaviors>
        </behaviors>
        
        <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
        
      </system.serviceModel>
      
    </configuration>

 client config ------------------------------------------------------------

  

      <configuration>
        <system.serviceModel>
            <bindings>
                <customBinding>
                    <binding name="CustomBinding_Files">
                        <binaryMessageEncoding />
                        <httpTransport maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" />
                    </binding>
                </customBinding>
            </bindings>
            <client>
                <endpoint address="http://localhost:4014/Services/Files.svc"
                    binding="customBinding" bindingConfiguration="CustomBinding_Files"
                    contract="FilesServiceReference.Files" name="CustomBinding_Files" />
            </client>
        </system.serviceModel>
    </configuration>

   
