CodeSmith Community
Your Code. Your Way. Faster!

this.url null exception using WebserviceClient in Winforms app.

Latest post 12-21-2006 2:50 PM by needbrew. 2 replies.
  • 12-21-2006 9:49 AM

    • needbrew
    • Top 150 Contributor
    • Joined on 03-20-2006
    • Posts 38
    • Points 1,180

    this.url null exception using WebserviceClient in Winforms app.

    Hi All,

     

    I am trying to get a winforms app to use the WebServiceClient DLL and keep getting the error url is null when it trys to assign it to the proxy.Url.  I have set up the config as follows and think I have everything set.

     <netTiersService defaultProvider="WsNetTiersProvider">
      <providers>

       <add
       name="SqlNetTiersProvider"
       type="grd.Data.SqlClient.SqlNetTiersProvider, grd.Data.SqlClient"
       connectionStringName="netTiersConnectionString"
       providerInvariantName="System.Data.SqlClient"
       entityFactoryType="grd.Entities.EntityFactory"
       useEntityFactory="true"
       enableEntityTracking="true"
       enableMethodAuthorization="false"
       useStoredProcedure="false"
      />
       <add
         name="WsNetTiersProvider"
         type="grd.Data.WebServiceClient.WsNetTiersProvider, grd.Data.WebServiceClient"
         url="http://localhost/GrdServices/GrdServices.asmx"
            />
      </providers>
     </netTiersService>

     

    AnyIdeas

     

    Thanks

    Filed under:
    • Post Points: 35
  • 12-21-2006 11:11 AM In reply to

    Re: this.url null exception using WebserviceClient in Winforms app.

    That usuall means that you are trying to access the webservice provider directly.  Continue calling  DataRepository.MyEntityProvider.GetAll();  it will instatiate and pass the correct url for the webservice.

    On 12/21/06, needbrew <bounce-needbrew@codesmithsupport.com> wrote:

    Hi All,

     

    I am trying to get a winforms app to use the WebServiceClient DLL and keep getting the error url is null when it trys to assign it to the proxy.Url.  I have set up the config as follows and think I have everything set.

     <netTiersService defaultProvider="WsNetTiersProvider">
      <providers>

       <add
       name="SqlNetTiersProvider"
       type="grd.Data.SqlClient.SqlNetTiersProvider, grd.Data.SqlClient"
       connectionStringName="netTiersConnectionString"
       providerInvariantName=" System.Data.SqlClient"
       entityFactoryType="grd.Entities.EntityFactory"
       useEntityFactory="true"
       enableEntityTracking="true"
       enableMethodAuthorization="false"
       useStoredProcedure="false"
      />
       <add
         name="WsNetTiersProvider"
         type="grd.Data.WebServiceClient.WsNetTiersProvider, grd.Data.WebServiceClient"
         url=" http://localhost/GrdServices/GrdServices.asmx"
            />
      </providers>
     </netTiersService>

     

    AnyIdeas

     

    Thanks






    Robert Hinojosa
    -------------------------------------
    Member of the Codesmith Tools, .netTiers, teams
    http://www.nettiers.com
    -------------------------------------
    • Post Points: 35
  • 12-21-2006 2:50 PM In reply to

    • needbrew
    • Top 150 Contributor
    • Joined on 03-20-2006
    • Posts 38
    • Points 1,180

    Re: this.url null exception using WebserviceClient in Winforms app.

    OK,

     

    I got it to work, but the first time you call any of the data providers they are really slow.  After the first call they seem to seppd up.  It seems to be when the app just starts.  After you have loaded some data it is speedy.  Why is that?

     

    Thanks and keep up the good work.

     

     

    • Post Points: 5
Page 1 of 1 (3 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems