none
SilverLight 5.0 App + WCF Service : Not Able to add Reference to AuthenticationService.svc hosted. RRS feed

  • General discussion

  • Here is my problem. I have a Silverlight Application , which authenticates using WCF Authenthication Service. WCF Service is hosted in the server and accessible via https://tsteftools.mydomain.net/2013/EFAN/DEV/AuthenticationService.svc via browser.

    But when I tried to add reference to these Service inside the my Silverlight App , am getting an error "The Document at the url https://tsteftools.mydomian.net/2013/EFAN/DEV/AuthenticationService.svc was not recognized as a known document type.The error message from each known type may help you fix the problem ... ". Intresting thing is there are services as well, like https://tsteftools.mydomain.net/2013/EFAN/DEV/GetAcceptanceReportEF.svc which I am able to add Reference in my SL app. Here is my Web.config of WCF project. It would be great if any body help on this. Thank you very much.

    <?xml version="1.0" encoding="utf-8"?>
    <!--
      For more information on how to configure your ASP.NET application, please visit
      http://go.microsoft.com/fwlink/?LinkId=169433
      configSource="Config\DEV.config"
      This Configuration file contains EDM connections and services ABC related to Development environment.
      -->
    <configuration>
      <appSettings>
        <add key="DLConnectionPath" value="\\DEVEFCAPP01\e$\Central13\DBConnector_DEV.xml"/>
        <add key="BackupDLConnectionPath" value="\\DEVEFCAPP01\e$\Central12\DBConnector.xml"/>
        <add key="Role" value="Automation"/>
        <add key="Mode" value="DEV"/>
        <add key="YearLong" value="2013"/>
        <add key="ModFactor" value="1"/>
        <add key="FILConnectionKey" value="14"/>
      </appSettings>
      <connectionStrings configSource="Config\Prod.config">
      </connectionStrings>
      <system.web>
        <customErrors mode="Off"></customErrors>
        <authentication mode="Forms" />
        <compilation debug="true" targetFramework="4.0">
          <assemblies>
            <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
          </assemblies>
        </compilation>
        <roleManager enabled="true" defaultProvider="RoleProvider">
          <providers>
            <clear />
            <add name="RoleProvider" type="System.Web.Security.SqlRoleProvider" applicationName="/EFErrorAnalyzer" connectionStringName="ASPNetDBConnectionString" />
          </providers>
        </roleManager>
        <membership defaultProvider="MembershipProvider">
          <providers>
            <clear />
            <add name="MembershipProvider" applicationName="/EFErrorAnalyzer" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ASPNetDBConnectionString" enablePasswordReset="true" enablePasswordRetrieval="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" passwordFormat="Clear" minRequiredNonalphanumericCharacters="0" minRequiredPasswordLength="6" />
          </providers>
        </membership>
        <profile defaultProvider="ProfileProvider">
          <providers>
            <clear />
            <add name="ProfileProvider" applicationName="/EFErrorAnalyzer" type="System.Web.Profile.SqlProfileProvider, System.Web,Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ASPNetDBConnectionString" />
          </providers>
          <properties></properties>
        </profile>
      </system.web>
      <system.serviceModel>
        <behaviors>
          <serviceBehaviors>
            <behavior name="behavior1">
              <serviceTimeouts transactionTimeout="00:30:00" />
              <serviceMetadata httpGetEnabled="true"/>
              <serviceDebug includeExceptionDetailInFaults="true" />
            </behavior>
            <behavior name="AuthenticationServiceTypeBehaviors">
              <serviceMetadata httpGetEnabled="true"/>
            </behavior>
          </serviceBehaviors>
        </behaviors>
        <bindings>
          <basicHttpBinding>
            <binding name="userHttp" hostNameComparisonMode="StrongWildcard" receiveTimeout="00:10:00" sendTimeout="00:10:00" openTimeout="00:10:00" closeTimeout="00:10:00" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" transferMode="Buffered" messageEncoding="Text" textEncoding="utf-8" bypassProxyOnLocal="false" useDefaultWebProxy="true">
              <readerQuotas maxDepth="32" maxArrayLength="2147483647" maxStringContentLength="2147483647" />
            </binding>
          </basicHttpBinding>
        </bindings>
        <services>
          <service behaviorConfiguration="AuthenticationServiceTypeBehaviors" name="System.Web.ApplicationServices.AuthenticationService">
            <endpoint binding="basicHttpBinding" bindingConfiguration="userHttp" bindingNamespace="http://asp.net/ApplicationServices/v200" contract="System.Web.ApplicationServices.AuthenticationService" />
          </service>
          <service behaviorConfiguration="behavior1" name="EFErrorAnalyzer.Web.GetEFErrorsEF">
            <endpoint address="" binding="basicHttpBinding" bindingConfiguration="userHttp" contract="EFErrorAnalyzer.Web.IGetEFErrorsEF"></endpoint>
            <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
          </service>
          <service behaviorConfiguration="behavior1" name="EFErrorAnalyzer.Web.GetErroredEfilesEF">
            <endpoint address="" binding="basicHttpBinding" bindingConfiguration="userHttp" contract="EFErrorAnalyzer.Web.IGetErroredEfilesEF"></endpoint>
            <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
          </service>
          <service behaviorConfiguration="behavior1" name="EFErrorAnalyzer.Web.GetAcceptanceReportEF">
            <endpoint address="" binding="basicHttpBinding" bindingConfiguration="userHttp" contract="EFErrorAnalyzer.Web.IGetAcceptanceReportEF"></endpoint>
            <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
          </service>
          <service behaviorConfiguration="behavior1" name="EFErrorAnalyzer.Web.MembershipService">
            <endpoint address="" binding="basicHttpBinding" bindingConfiguration="userHttp" contract="EFErrorAnalyzer.Web.IMembershipService"></endpoint>
            <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
          </service>
        </services>
        <serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="true"></serviceHostingEnvironment>
      </system.serviceModel>
      <system.web.extensions>
        <scripting>
          <webServices>
            <authenticationService enabled="true" requireSSL="false" />
          </webServices>
        </scripting>
      </system.web.extensions>
    </configuration>





    • Edited by coretechie Friday, November 8, 2013 9:31 AM changed
    Thursday, November 7, 2013 11:20 AM

All replies