Error when using Windows authentication in Dataportal

Error when using Windows authentication in Dataportal

Old forum URL: forums.lhotka.net/forums/t/2331.aspx


mart posted on Tuesday, February 13, 2007

I am attempting to connect from a Web Service to the Dataportal.  I have setup & tested the Dataportal which seems to be working.  However when making a call through the web service i continuallly receive the following error message

Value cannot be null.
Parameter name: type
I have seen this message before under different circumstances and was down to a key entry missing from the config file.  As yet i havent been able to find anything that is missing.

The application is in development and both the WebService and the Dataportal reside on the same machine.

Extract from DataPortal config

<system.runtime.remoting>

        <application>
            <service>
                <wellknown mode="SingleCall" objectUri="DataPortal.rem" type="CSLA.Server.DataPortal, CSLA.Server.DataPortal" />   
                <wellknown mode="SingleCall" objectUri="ServicedDataPortal.rem"    type="CSLA.Server.ServicedDataPortal.DataPortal, CSLA.Server.ServicedDataPortal" />           
            </service>

             <channels>
                <channel ref="http">
                      <serverProviders>
                        <provider ref="wsdl"/>
                        <formatter ref="soap" typeFilterLevel="Full"/>
                        <formatter ref="binary" typeFilterLevel="Full"/>
                      </serverProviders>
                </channel>
           
                </channels>
                          
        </application>
   
    </system.runtime.remoting>

 
  <appSettings>
    <add key="Authentication" value="Windows" />
    <add key="DB:RSS" value="data source=IS4;initial catalog=i34; integrated security=SSPI" />
       
  </appSettings>

Extract from web service config


 <appSettings>
<add key="Authentication" value="Windows" />
    <add key="PortalServer" value="http://localhost/DataPortal/DataPortal.rem" />
      <add key="ServicedPortalServer" value="http://localhost/DataPortal/ServicedDataPortal.rem" />
</appSettings>
 <system.web>

    <webServices>
        <protocols>
            <add name="HttpGet" />
            <add name="HttpPost" />
        </protocols>
    </webServices>
<system.web>
 

Copyright (c) Marimer LLC