upload bug

Apr 23, 2009 at 12:22 PM
hi.
When I've tried to upload a structure of directories and files, I got an exception. I have fixed it by changing the code so in RS2005Facade.cs line 38 instead of:

 

public ReportWarning[] CreateReport(string filename, string destination, bool overwrite, Byte[] definition, string Properties)

 

{

 

Warning[] err = rs.CreateReport(System.IO.Path.GetFileNameWithoutExtension(filename), destination, overwrite, definition, null);

 

 

return System.Array.ConvertAll<Warning, ReportWarning>(err, ConvertSPWarningToReportWarning);

 


I wrote:

 

public ReportWarning[] CreateReport(string filename, string destination, bool overwrite, Byte[] definition, string Properties)

 

{

 

Warning[] err = rs.CreateReport(System.IO.Path.GetFileNameWithoutExtension(filename), destination, overwrite, definition, null);

 

 

if (err != null)

 

 

return System.Array.ConvertAll<Warning, ReportWarning>(err, ConvertSPWarningToReportWarning);

 

 

else return null;

 

Coordinator
May 5, 2009 at 7:20 PM
Thanx for reporting, I fixed it in the code