Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

webservice problem

  Asked By: Rolando    Date: Nov 05    Category: Sharepoint    Views: 1090

I am trying to find the areaname from areadata using 'areaservice' webservice. The code attached at end.
I can get the areaname from the code in my development machine.
But strangely When I try to run it in my production machine I get the error (attached below the code). All other parts which is using many webservice are working fine in production machine.

What may be the problem in my production machine?

---------C# code --------
aService.AreaService ars = new aService.AreaService();

Guid aGuid = new Guid("myguidstring");
aService.AreaData aData = ars.GetAreaData(aGuid);
string aName = aData.AreaName; // At this point i am geting the error

----------------the error-----------------
Message: There is an error in XML document (1, 1505).

StackTrace: at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle)

at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader)

at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)

at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

at WindowsApplication2.aService.AreaService.GetAreaData(Guid AreaID) in c:\windowsapplication2\web references\aservice\reference.cs:line 233

at WindowsApplication2.Form1.button4_Click(Object sender, EventArgs e) in c:\windowsapplication2\form1.cs:line 201




No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on webservice problem Or get search suggestion and latest updates.