المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Web service problem - error when binding to datagrid



C# Programming
06-20-2009, 06:30 PM
Hey,
I am programing a program that uses a Web Service to connect between the Server and WinAPP forms.

I made the web service and active my IIS 7 (Using vista ultimate), then i enterd into my localost(using IP) and all go ok (check my defined methods and they returned void XML data)

But when i combine that web service to WinAPP and them bind data to datagrid i got error:
Object moved to here (http://www.barakasoft.com/vb/Service.asmx?UseAuto******Dectate=1)

the code i userd
UniversityWebReference.Service service = new WindowsUniversityClient.UniversityWebReference.Service();
try
{
this.grades_dataview.DataSource = service.GetGradesByStudentId(int.Parse(this.studentid_txtbox.Text));
}
catch (FormatException format_e)
{
MessageBox.Show(format_e.Message, "????? ????? ????? ???? ???????", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
catch(Exception ee)
{
MessageBox.Show(ee.Message, "????? ????? ????? ???? ???????", MessageBoxButtons.OK, MessageBoxIcon.Error);
}

Gindi Bar Yahav - Web & Software defeloper.