Hi!
I am facing a problem with the Download link. It gives the absolute path of the file on the server and says:
A critical error has occurred.
Could not find file "E:\wwwroot\BDGDNN\DotNetNuke\Portals\0\Repository\GapAnalysisFindings.d9f49446-04ea-41f1-bc96-a63178b1e02b.ppt".
Where as I feel instead of the above path it should use the Url of the site to download the file, but it is not using the URL instead it is using the absolute path of the file on the server.
I went to the Log viewer to get the full error report. It is as follows: (I have changed the IP in the following)
AssemblyVersion: 03.02.02
Method: System.IO.__Error.WinIOError
FileName:
FileLineNumber: 0
FileColumnNumber: 0
PortalID: 0
PortalName: Bangalore Group
UserID: 2
UserName: admin
ActiveTabID: 57
ActiveTabName: Library
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://xx.xx.xx.xx/Default.aspx?tabid=57
ExceptionGUID: 4e1e1953-5347-4b5d-ad98-d5786f08367d
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
InnerException: Could not find file "E:\wwwroot\BDGDNN\DotNetNuke\Portals\0\Repository\GapAnalysisFindings.d9f49446-04ea-41f1-bc96-a63178b1e02b.ppt".
Message: DotNetNuke.Services.Exceptions.PageLoadException: Could not find file "E:\wwwroot\BDGDNN\DotNetNuke\Portals\0\Repository\GapAnalysisFindings.d9f49446-04ea-41f1-bc96-a63178b1e02b.ppt". ---> System.IO.FileNotFoundException: Could not find file "E:\wwwroot\BDGDNN\DotNetNuke\Portals\0\Repository\GapAnalysisFindings.d9f49446-04ea-41f1-bc96-a63178b1e02b.ppt". File name: "E:\wwwroot\BDGDNN\DotNetNuke\Portals\0\Repository\GapAnalysisFindings.d9f49446-04ea-41f1-bc96-a63178b1e02b.ppt" at System.IO.__Error.WinIOError(Int32 errorCode, String str) at System.IO.FileInfo.get_Length() at DotNetNuke.Modules.Repository.RepositoryBL.StreamFile(String FilePath, String DownloadAs) at DotNetNuke.Modules.Repository.RepositoryBL.DownloadFile(String ItemID) at DotNetNuke.Modules.Repository.Repository.lstObjects_ItemCommand(Object source, DataGridCommandEventArgs e) at System.Web.UI.WebControls.DataGrid.OnItemCommand(DataGridCommandEventArgs e) at System.Web.UI.WebControls.DataGrid.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) at System.Web.UI.WebControls.DataGridItem.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) at System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain() --- End of inner exception stack trace ---
StackTrace:
Source:
Server Name: AAPACDEV8003
Can somebody help me out with this problem?