Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryDownload File: Absolute Path ErrorDownload File: Absolute Path Error
Previous
 
Next
New Post
7/26/2006 5:39 AM
 

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?

 
New Post
7/26/2006 9:26 AM
 

Is the file actually there? Have you moved this portal from some other server? ( such as from a development machine to a production machine ).

The repository module uses absolute file paths to access it's files. It does that because one of the early requirements as requested by the users was to be able to store the files outside the web root ( on a separate file server, or outside of the web root for security purposes ). The location where the files are stored is set in the module settings ( the folder locations are only editable if you are logged in using the host account ). For example :: If you moved the portal/database from a server where the files were on the D: drive to another server where the files are now on the E: drive, the repository module would not be able to find the physical files.

The solution is to go into the module settings using the host account and change the location folders to point to where the files are located.

 
New Post
8/10/2006 11:05 AM
 
IMHO it would be good to have aternative of using relative path, because if you move site to other server and have many repository modules it is a pain to correct all physical paths in module settings.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryDownload File: Absolute Path ErrorDownload File: Absolute Path Error


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out