In one server 192.1681.0.112 only sharepoint has been installed.
In another server 192.168.1.245 only vs2005 has been installed
In 245 server i have written the following code to upload a file to 112 server by adding the webservice of Lists as
http://server/_vti_bin/Lists.asmx .
The code which i written is as follows
try
{
fStream.Read(contents, 0, (
fStream.Close();
objLists.Credentials =
objLists.Url =
objLists.AddAttachment(
}
"Microsoft.SharePoint.SoapServer.SoapServerException'."
After taking its inner text of exception the exceptions is as follows
"Value does not fall within the expected range."
Actually i have no subsites under the sharepoint site..
http://devhydmoss:8080/Lists/satish/AllItems.aspx
So, the List "satish" is under main site itself. I am able to add new list or library easily without any exceptions.
But when i need to upload a file the soap exception comes into picture. using Lists.GetListCollection() method i retrived a lists of the sharepoint site. i have seen this list "satish" in mainsite itself.
Any idea regarding this...