I just installed a fresh copy of Mojoportal 2.2.7.8 MySql on my localhost sandbox to test some features and ran into some problems with the Shared Files module. When downloading a PDF I got a "File does not begin with a %PDF-" error. So I uploaded a text file and tried downloading that. The content that was received is as follows.
<html>
<head>
<title>Positive number required.<br>Parameter name: bufferSize</title>
<style>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
Here is the log entry
2008-11-19 09:17:29,678 ERROR mojoPortal.Web.Global - 127.0.0.1-en-US - /SharedFiles/Download.aspx?pageid=3&fileid=1&mid=3
System.ArgumentOutOfRangeException: Positive number required.
Parameter name: bufferSize
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
at Apache.Web.WorkerRequest.SendResponseFromFile(String filename, Int64 offset, Int64 length)
at Brettle.Web.NeatUpload.DecoratedWorkerRequest.SendResponseFromFile(String filename, Int64 offset, Int64 length)
at System.Web.HttpWorkerRequest.TransmitFile(String filename, Int64 offset, Int64 length, Boolean isImpersonating)
at System.Web.HttpFileResponseElement.System.Web.IHttpResponseElement.Send(HttpWorkerRequest wr)
at System.Web.HttpWriter.Send(HttpWorkerRequest wr)
at System.Web.HttpResponse.Flush(Boolean finalFlush)
at System.Web.HttpResponse.Flush()
at System.Web.HttpWriter.TransmitFile(String filename, Int64 offset, Int64 size, Boolean isImpersonating, Boolean supportsLongTransmitFile)
at System.Web.HttpResponse.TransmitFile(String filename, Int64 offset, Int64 length)
at System.Web.HttpResponse.TransmitFile(String filename)
at mojoPortal.Web.SharedFilesDownload.DownloadFile()
at mojoPortal.Web.SharedFilesDownload.Page_Load(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at mojoPortal.Web.mojoBasePage.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Any ideas? This is a fresh install on an empty database. No upgrade at all, running on Apache (Windows), MySql and Dot Net (Not mono)