Click here to Skip to main content
14,546,133 members

SharePoint

 
GeneralRe: Daily Reminders in Sharepoint 2010 Pin
Joe DiNatale19-Jul-11 8:27
MemberJoe DiNatale19-Jul-11 8:27 
QuestionCalendar Control giving an error when placed inside an update panel Pin
Neeraj Kr6-Jul-11 8:32
MemberNeeraj Kr6-Jul-11 8:32 
AnswerRe: Calendar Control giving an error when placed inside an update panel Pin
Not Active6-Jul-11 8:40
mentorNot Active6-Jul-11 8:40 
GeneralRe: Calendar Control giving an error when placed inside an update panel Pin
Neeraj Kr7-Jul-11 5:40
MemberNeeraj Kr7-Jul-11 5:40 
QuestionEditing content of page having custom master page Pin
Nitin Sawant5-Jul-11 0:27
professionalNitin Sawant5-Jul-11 0:27 
AnswerRe: Editing content of page having custom master page Pin
ssivarao1-Aug-11 23:57
Memberssivarao1-Aug-11 23:57 
GeneralRe: Editing content of page having custom master page Pin
Nitin Sawant2-Aug-11 19:31
professionalNitin Sawant2-Aug-11 19:31 
GeneralException of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown when downloading the file form sharepoint document library Pin
Sudhanshu Mani Tripathi4-Jul-11 21:54
MemberSudhanshu Mani Tripathi4-Jul-11 21:54 
Hi,
I am using copy service(copy.asmx) to download the files from sharepoint document library.
In sharepoint server, I have created a doument library and this library contain serveral folders , i have to downlaod the files from document library folder but when i call the GetItem() method of copy service then throw exception SoapServerException . I am using following code to download the file.

// sharepoint is a web reference that points to http://sharepoint/_vti_bin/copy
Copy myCopyService = new Copy();
myCopyService.Url = url + "/_vti_bin/copy.asmx";
myCopyService.PreAuthenticate = true;
myCopyService.Credentials = new System.Net.NetworkCredential("Administrator", "Path1234", "e1srv245");

// URL to the file you want to downlaod
string copySource = url + "/PaymentAttachment/105/"+ fileName;

//HtmlAnchor anchor = new HtmlAnchor();
//anchor.Target = "_blank";
//anchor.HRef = copySource;

// Define the variables that will store the output from the web service call
FieldInformation myFieldInfo = new FieldInformation();
FieldInformation[] myFieldInfoArray = { myFieldInfo };
byte[] myByteArray;

// Call the web service
uint myGetUint = myCopyService.GetItem(copySource, out myFieldInfoArray, out myByteArray); // Convert into Base64 String
string base64String;
base64String = Convert.ToBase64String(myByteArray, 0, myByteArray.Length);

// Convert to binary array
byte[] binaryData = Convert.FromBase64String(base64String);

// Create a temporary file to write the text of the form to
string tempFileName = Path.GetTempPath() + "\\" + myFieldInfoArray[0].Value;

// Write the file to temp folder
FileStream fs = new FileStream(tempFileName, FileMode.CreateNew, FileAccess.ReadWrite);
fs.Write(binaryData, 0, binaryData.Length);
fs.Close();

I am not identifying, what i am missing?
GeneralRe: Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown when downloading the file form sharepoint document library Pin
ssivarao2-Aug-11 0:00
Memberssivarao2-Aug-11 0:00 
QuestionSharepoint2010 : Error while deploying Web Part Pin
Vishal Kumar Soni3-Jul-11 2:35
MemberVishal Kumar Soni3-Jul-11 2:35 
AnswerRe: Sharepoint2010 : Error while deploying Web Part Pin
thatraja3-Jul-11 5:13
professionalthatraja3-Jul-11 5:13 
GeneralRe: Sharepoint2010 : Error while deploying Web Part Pin
Not Active3-Jul-11 5:27
mentorNot Active3-Jul-11 5:27 
AnswerRe: Sharepoint2010 : Error while deploying Web Part Pin
Not Active3-Jul-11 5:21
mentorNot Active3-Jul-11 5:21 
AnswerRe: Sharepoint2010 : Error while deploying Web Part Pin
Afraz Shaikh7-Aug-11 19:09
MemberAfraz Shaikh7-Aug-11 19:09 
AnswerRe: Sharepoint2010 : Error while deploying Web Part Pin
ssivarao9-Sep-11 2:16
Memberssivarao9-Sep-11 2:16 
QuestionInserting a date when radio button is checked Pin
napy229-Jun-11 23:06
Membernapy229-Jun-11 23:06 
AnswerRe: Inserting a date when radio button is checked Pin
Not Active30-Jun-11 1:56
mentorNot Active30-Jun-11 1:56 
GeneralRe: Inserting a date when radio button is checked Pin
napy230-Jun-11 2:17
Membernapy230-Jun-11 2:17 
GeneralRe: Inserting a date when radio button is checked Pin
Not Active30-Jun-11 2:36
mentorNot Active30-Jun-11 2:36 
GeneralRe: Inserting a date when radio button is checked Pin
napy230-Jun-11 3:17
Membernapy230-Jun-11 3:17 
AnswerRe: Inserting a date when radio button is checked Pin
SAM_India1-Aug-11 19:15
MemberSAM_India1-Aug-11 19:15 
GeneralRe: Inserting a date when radio button is checked Pin
napy22-Aug-11 5:15
Membernapy22-Aug-11 5:15 
Questionusing WorkFlow.asmx to Complete a workflow Pin
saud_a_k28-Jun-11 18:39
Membersaud_a_k28-Jun-11 18:39 
QuestionWss webparts getting deleted unexpectedly Pin
nainakarri28-Jun-11 0:30
Membernainakarri28-Jun-11 0:30 
AnswerRe: Wss webparts getting deleted unexpectedly Pin
Not Active28-Jun-11 1:44
mentorNot Active28-Jun-11 1:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.