none
Setting DataSource Connetion Progrmmatically RRS feed

  • Question

  • Hi

     I want to set the connection string for my shared datasource alrady published on Report Server .

     I want to take it from user and set it into my Windows application

     I tried adding ReportService2005 webreference and calling method

     

    for eg:

         private reportserviceobj as new ReportService2005.ReportService2005

         private sourcedef      as   new ReportService2005.DataSourceDefinition

    sourcedef.connctionstring="mystring"

    sourcedef.username="username"

    sourcedef.password="password"

       reportserviceobj.setdatasetcontents("MyDataSource",sourcedef)

     

     

    But it gives me 'HTTP Request Faild:401 UnAuthorized Acess' error

     

    am i missing something?

     

    -Pankaj

     

    Friday, May 4, 2007 11:45 AM