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

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...page not found errorpage not found error
Previous
 
Next
New Post
12/2/2010 1:30 PM
 
I created a DNN site and on one page I have an iFrame.  I have a custom vb.net program and in there I grab files from the web directory and put them as links so users can click them and view them.  The files are either pdf or dwg.  When I do this, the pdf files are opening fine, but the dwg files open a web page and give the error " The page cannot be found."  When I look at the files, the pdf and dwg files are in the exact same location, the URLs are coming back the same, the only difference is the file name.  On our old website, it was all .net and these links worked perfectly fine.  It would just open the dwg files if there was a viewer available.  Now that it's in an iFrame, it won't.  Does anyone know why?
 
New Post
12/2/2010 4:07 PM
 
I don't expect every user having .dwg installed, but how does the link to the files look like? aret hey relative or absolute? Is dwg handled by ASP.Net?

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
12/2/2010 4:59 PM
 
This is what I'm using to get the files and display them:

Dim ScienceDT As New Data.datatable

ScienceDT = WebSite.getCADlibrary("Science")

''Grab all the files from SCIENCE

Dim a As Integer

Dim b As Integer = ScienceDT.rows.count - 1

For a = 0 To b

Dim filestructure As String = ScienceDT.rows(a).item("fileStructure")

Dim FolderName As String = ScienceDT.rows(a).item("FolderName")

Dim path As String = filestructure + FolderName

Dim Title As String = ScienceDT.rows(a).item("Title")

Dim ScienceFiles() As String

ScienceFiles = io.directory.getFiles(Server.MapPath(path))

If ScienceFiles.GetLength(0) > 0 Then

Me.lblcontentScience.text = Me.lblcontentScience.text & "<p class='h4'>" & Title & "</p>"

For c As Integer = 0 To ScienceFiles.GetUpperBound(0)

Dim find As Int16 = ScienceFiles(c).LastIndexOf("\")

Dim FileName As String = ScienceFiles(c).Substring(find + 1)

Dim FilePath As String = path & "/" & FileName

FilePath = FilePath.Replace("\", "/")

Me.lblContentScience.Text = Me.lblContentScience.Text & "<a href='" & FilePath & "'>" & FileName & "</a><br>"

Next

End If

Next



Public Shared Function GetCADLibrary(ByVal type As String)

Dim dt As Data.DataTable

Dim str As String = "SELECT * FROM tblCADLibrary WHERE type = '" & type & "'"

dt = DBTools.CreateDT(str, DBLayer.DBTools.DB.DW)

Return dt

End Function



On the page I also have a link to a website that the users can go to to if they do not have a dwg viewer.  They can go here and download the viewer.  That's also why we have the pdf files up there, if they don't want to do the download, they can view the pdf files instead of the dwg files.

And again, on our old website, it worked.  I'm using the EXACT same program in the iFrame as what I was using in the old one.  Except it just isn't working in the DNN module and framework.

 
New Post
12/2/2010 6:20 PM
 
Has the correct mime type for .dwg file extension been added to the website's configuration on the web server?

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
12/6/2010 7:35 AM
 
I'll have to ask our network admin about this to be sure, but I would assume it would be if it worked in the previous website.  The url is exactly the same, so not too much changed on that end.  I don't know if the new "site" in IIS would be different for that?  I'll be checking on this.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...page not found errorpage not found 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