How to solve this error ? RRS feed

  • Question

  • User-1702762638 posted

    in webservice.cs i have write this code


    public DataSet GetProducts(string name)


    string conn = ConfigurationManager.ConnectionStrings["travel"].ToString();

    SqlDataAdapter adap;

    DataSet ds;

    string qry = "select * from tbl_login where name='" + name + "'";

    adap =new SqlDataAdapter(qry, conn);

    ds =new DataSet();


    return ds;

    i run this project and take that url for web reference, now i open new project i put same connectionstring and add this url as web reference and right click that webreference and it has webservice.wsdl code  i rightclick and click view in browser means it want to display .wsdl code but it not showing here it shows Error like this

    HTTP Error 403 - Forbidden.
      how i solve this error ?

    Friday, May 11, 2012 6:24 AM