locked
Probléme WCF RRS feed

  • Question

  • Bonjour,

    Quand je lance mon application Silverlight mon service WCF me retourne une erreur 4004 dans mon code javascript et je ne vois pas les données de ma base.

    Voici mon fichier Web.config:

    <?xml version="1.0"?>
    <configuration>
      <configSections>
        <!-- BEGIN LOG4NET -->
        <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
        <!-- END LOG4NET -->
        <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
          <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
            <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
            <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
              <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
              <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
              <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
              <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
            </sectionGroup>
          </sectionGroup>
        </sectionGroup>
      </configSections>
      <!-- BEGIN LOG4NET -->
      <!-- This section contains the log4net configuration settings -->
      <log4net debug="true">
        <appender name="LogApplication" type="log4net.Appender.RollingFileAppender">
          <file value="Log\\WebAdmin.txt"/>
          <appendToFile value="true"/>
          <rollingStyle value="Date"/>
          <datePattern value="'_'yyyyMMdd'.txt'"/>
          <layout type="log4net.Layout.PatternLayout">
            <conversionPattern value="%d{yyyy-MM-dd HH:mm:ss,fff} [%-3t] [%-5p] [%c(%L) %M] - %m %n"/>
          </layout>
        </appender>
        <appender name="PerfApplication" type="log4net.Appender.RollingFileAppender">
          <file value="Log\\PerfWebAdmin.txt"/>
          <appendToFile value="true"/>
          <rollingStyle value="Date"/>
          <datePattern value="'_'yyyyMMdd'.txt'"/>
          <layout type="log4net.Layout.PatternLayout">
            <conversionPattern value="%d{yyyy-MM-dd HH:mm:ss,fff} [%-3t] [%-5p] [%c(%L) %M] - %m %n"/>
          </layout>
        </appender>
        <root>
          <level value="Info"/>
          <appender-ref ref="LogApplication"/>
        </root>
        <logger name="PerformanceLogger">
          <level value="Info"/>
          <appender-ref ref="PerfApplication"/>
        </logger>
      </log4net>
      <!-- END LOG4NET -->
      <appSettings>
        <!-- FTP -->
        <add key="FtpGedUri" value="ftp://veles.viaccess.fr/Vite.GED/"/>
        <add key="FtpGedLogin" value="ftpveles"/>
        <add key="FtpGedPassword" value="*******"/>
        <add key="FtpGedTimeout" value="5000"/>
        <add key="FtpCertificationFolder" value="PM"/>
        <add key="FtpAdminFolder" value="Admin"/>
        <add key="FtpSuiviComFolder" value="Commercial"/>
        <!-- SMTP Server -->
        <add key="smtpServer" value="smtp.viaccess.fr"/>
        <add key="smtpLogin" value="pariente"/>
        <add key="smtpPassword" value="O"/>
        <!-- Log Linq -->
        <add key="LinqLogIsEnabled" value="False"/>
        <!-- LDAP Active Directory -->
        <add key="LdapConnection" value="LDAP://DC=viaccess,DC=fr"/>
        <add key="LdapLogin" value="TITAN\BaseVite"/>
        <add key="LdapPassword" value="*****"/>
        <add key="LdapAdminGrp" value="BaseViteAdmin"/>
        <add key="LdapTamGrp" value="BaseViteTam"/>
        <add key="LdapManagerGrp" value="BaseViteManager"/>
        <add key="LdapIntegratorGrp" value="BaseViteIntegration"/>
        <add key="LdapComGrp" value="BaseViteCommercial"/>
        <add key="LdapAssGrp" value="BaseViteAssistant"/>
        <!-- K2 Server -->
        <add key="K2Server" value="volos"/>
        <add key="K2ServerPort" value="5252"/>
        <add key="K2ServerManagementPort" value="5555"/>
        <add key="K2ServerManagementUser" value="BaseViteK2"/>
        <add key="K2ServerManagementPassword" value="KdeUx!Srv81"/>
        <add key="K2ServerDomain" value="TITAN"/>
        <add key="AbortedCampaignBegin" value="Campaign Creation"/>
        <add key="CompanyAdminUrl" value="https://veles.viaccess.fr/ViteAdmin/CompanyList.aspx"/>
        <add key="CompanyAdminInitRequest" value="?CompanyID={0}"/>
        <add key="CompanyAdminInitRequestCreation" value="?CompanyName={0}&amp;Integrator={1}"/>
        <add key="NewProjectProcessUrl" value="https://veles.viaccess.fr/ViteSI/Workflow/Initialisation/ProjectCreation.aspx"/>
        <add key="SIUrl" value="https://veles.viaccess.fr/ViteSI/ProjectSI.aspx"/>
        <!--https://veles.viaccess.fr/ViteSI/ProjectSI.aspx-->
        <!-- Via Delivery Code / Label -->
        <add key="STARTER_KI" value="Starter Kit"/>
        <add key="DRV_ACCEPT" value="Driver Acceptance"/>
        <add key="LIB_DTA" value="DTA Library"/>
        <add key="LIB_ACS" value="ACS Library"/>
        <add key="DRV_FAILUR" value="Driver Failure"/>
        <add key="DRV_AUTHOR" value="Driver Authorization"/>
        <add key="DRV_ACCEPT" value="Driver Acceptance"/>
        <add key="CER_FAILUR" value="Certif. Failure"/>
        <add key="CER_AUTHOR" value="Certif. Authorization"/>
        <add key="CER_ACCEPT" value="Certif. Acceptance"/>
        <add key="PROCESS_DE" value="Process and Deliveries"/>
        <add key="SECRET_TEA" value="Team Secret Request"/>
        <add key="OTHER" value="Other"/>
        <!-- True or false to force IsTestKO datafield. None to don't force it. -->
        <add key="IsTestKO" value="None"/>
        <!-- When it is impossible to map sql value, we replace with this value -->
        <add key="TemplateNA" value="To be defined"/>
        <!-- Mail parameters -->
        <add key="ContactNameCode" value="[To Selected Contacts]"/>
        <add key="NotifSender" value="Vite.Notification@viaccess.com"/>
        <add key="ExternNotifSubjectPrefix" value="[PGP] VITE External Notif : "/>
        <add key="IsHabilitationEnabled" value="true"/>
        <!-- XML files namespace -->
        <add key="XmlCampaignNamespace" value="http://www.w3.org/2001/XMLSchema-instance"/>
        <add key="XmlCampaignNoNamespace" value="http://www.viaccess.com/XmlSchema/CampaignDefinition.xsd"/>
      </appSettings>
      <connectionStrings>
        <!--"Data Source=192.168.110.18;Initial Catalog=Viaccess.VITE;User ID=sa;Password=BV@dm1n%!0918"-->
        <add name="ViteConnection" connectionString="Data Source=localhost;Initial Catalog=Viaccess.Vite;User ID=sa;Paswword=********" providerName="System.Data.SqlClient"/>
      </connectionStrings>
      <system.transactions>
        <defaultSettings timeout="00:05:00"/>
      </system.transactions>
      <system.web>
        <!-- 
                Set compilation debug="true" to insert debugging 
                symbols into the compiled page. Because this 
                affects performance, set this value to true only 
                during development.
            -->
        <!-- Timeout : 24h -->
        <trace enabled="true" pageOutput="true" />
        <sessionState timeout="1440"/>
        <compilation debug="true">
          <assemblies>
            <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
            <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
            <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
            <add assembly="Viaccess.Vite.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=49a5871317e7e0e9"/>
            <add assembly="Viaccess.Vite.Service, Version=1.0.0.0, Culture=neutral, PublicKeyToken=49a5871317e7e0e9"/>
            <add assembly="Viaccess.Vite.BO, Version=1.0.0.0, Culture=neutral, PublicKeyToken=49a5871317e7e0e9"/>
            <add assembly="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821"/>
          </assemblies>
        </compilation>
        <!--
                The <authentication> section enables configuration 
                of the security authentication mode used by 
                ASP.NET to identify an incoming user. 
            -->
        <authentication mode="Windows"/>
        <!--<identity impersonate="true"/>-->
        <!-- Habilitation on the web application access -->
        <authorization>
          <allow users="*"/>
          <deny users="?"/>
        </authorization>
        <!--
                The <customErrors> section enables configuration 
                of what to do if/when an unhandled error occurs 
                during the execution of a request. Specifically, 
                it enables developers to configure html error pages 
                to be displayed in place of a error stack trace.-->
        <customErrors mode="Off"/>
        <pages>
          <controls>
            <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          </controls>
        </pages>
        <httpHandlers>
          <remove verb="*" path="*.asmx"/>
          <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
        </httpHandlers>
        <httpModules>
          <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        </httpModules>
        <httpRuntime executionTimeout="45" maxRequestLength="400000" shutdownTimeout="3600"/>
      </system.web>
      <system.codedom>
        <compilers>
          <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
            <providerOption name="CompilerVersion" value="v3.5"/>
            <providerOption name="WarnAsError" value="false"/>
          </compiler>
        </compilers>
      </system.codedom>
      <!-- 
            The system.webServer section is required for running ASP.NET AJAX under Internet
            Information Services 7.0.  It is not necessary for previous version of IIS.
        -->
      <system.webServer>
        <!--<validation validateIntegratedModeConfiguration="false"/>-->
        <modules>
          <remove name="ScriptModule"/>
          <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        </modules>
        <handlers>
          <remove name="WebServiceHandlerFactory-Integrated"/>
          <remove name="ScriptHandlerFactory"/>
          <remove name="ScriptHandlerFactoryAppServices"/>
          <remove name="ScriptResource"/>
          <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        </handlers>
      </system.webServer>
      <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
          <dependentAssembly>
            <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
            <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
            <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
          </dependentAssembly>
        </assemblyBinding>
      </runtime>
      <system.serviceModel>
        <behaviors>
          <serviceBehaviors>
            <behavior name="Viaccess.Vite.CertifSIWeb.WCF.ProcessWcfBehavior">
              <serviceMetadata httpGetEnabled="true"/>
              <serviceDebug includeExceptionDetailInFaults="false"/>
              <dataContractSerializer maxItemsInObjectGraph="6553600"/>
            </behavior>
            <behavior name="Viaccess.Vite.CertifSIWeb.WCF.SIWcfBehavior">
              <serviceMetadata httpGetEnabled="true"/>
              <serviceDebug includeExceptionDetailInFaults="false"/>
              <dataContractSerializer maxItemsInObjectGraph="6553600"/>
            </behavior>
          </serviceBehaviors>
        </behaviors>
        <bindings>
          <customBinding>
            <binding name="customBindingWindows">
              <binaryMessageEncoding>
                <readerQuotas maxArrayLength="2147483000" maxStringContentLength="2147483000"/>
              </binaryMessageEncoding>
              <httpTransport authenticationScheme="Negotiate" maxReceivedMessageSize="2147483000" maxBufferSize="2147483000"/>
            </binding>
            <binding name="customBindingWindowsSSL">
              <binaryMessageEncoding>
                <readerQuotas maxArrayLength="2147483000" maxStringContentLength="2147483000"/>
              </binaryMessageEncoding>
              <httpsTransport authenticationScheme="Negotiate" maxReceivedMessageSize="2147483000" maxBufferSize="2147483000"/>
            </binding>
            <binding name="customBindingWindowsSSLNtlm">
              <binaryMessageEncoding>
                <readerQuotas maxArrayLength="2147483000" maxStringContentLength="2147483000"/>
              </binaryMessageEncoding>
              <httpsTransport authenticationScheme="Ntlm" maxReceivedMessageSize="2147483000" maxBufferSize="2147483000"/>
            </binding>
          </customBinding>
        </bindings>
        <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
        <services>
          <service behaviorConfiguration="Viaccess.Vite.CertifSIWeb.WCF.ProcessWcfBehavior" name="Viaccess.Vite.CertifSIWeb.WCF.ProcessWcf">
            <endpoint address="" binding="customBinding" bindingConfiguration="customBindingWindowsSSLNtlm" contract="Viaccess.Vite.CertifSIWeb.WCF.ProcessWcf"/>
            <!--<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />-->
          </service>
          <service behaviorConfiguration="Viaccess.Vite.CertifSIWeb.WCF.SIWcfBehavior" name="Viaccess.Vite.CertifSIWeb.WCF.SIWcf">
            <endpoint address="" binding="customBinding" bindingConfiguration="customBindingWindowsSSL" contract="Viaccess.Vite.CertifSIWeb.WCF.SIWcf"/>
          </service>
        </services>
      </system.serviceModel>
    </configuration>

    Merci pour votre aide je suis bloqué depuis 3 semaines car je n'arrive pas à lancer le projet

    jeudi 18 décembre 2014 09:36