ERROR: The request failed with HTTP status 404: Not Found. RRS feed

  • Question

  • hi all

    I have this problem seem i create other Web service.
    whenever i call the web methods in that Web service, i will have this error.
    I'm not really sure what's the problem. Can anyone help mi with this.

    This is my coding to call the Web methods from the Web service.
     protected void btnCalculate_Click(object sender, EventArgs e)
            string choice = DropDownList3.SelectedValue;
            decimal subjcost = Convert.ToDecimal(tut.SubjectCost(choice));
            int num = Convert.ToInt16(txtNoSem.Text);
            decimal misc = Convert.ToDecimal(txtMiscFee.Text);
            decimal total = Convert.ToDecimal(edu.TotalFees(subjcost, num, misc));
            Label1.Text = "Total Cost:";
            lblTotalCost.Text = Convert.ToString(total);

    This is my web method i created.
        public double SubjectCost(string sub)
            double cost = 0;
            if (sub.Equals("Maths"))
                cost = 225;
            else if (sub.Equals("English"))
                cost = 215;
            else if (sub.Equals("Chinese"))
                cost = 205;
            return cost;

    Thanks in advance!
    Monday, February 8, 2010 3:03 PM