LinkClick.aspx after upgrading to DNN 3.3.0

Last post 06-21-2006 1:27 AM by IndianGuru. 13 replies.

Sort Posts:

  • LinkClick.aspx after upgrading to DNN 3.3.0

    06-16-2006, 4:06 PM
    • Member
      660 point Member
    • legends92
    • Member since 04-21-2004, 3:26 PM
    • Posts 132
    After upgrading to DNN 3.3.0 any module that I have that reads a *.htm file from \Portals\0 direcotyr has the following error messsage:

    Error loading File: /LinkClick.aspx?link=Symantec.htm&tabid=36&mid=517.
    Error loading File: /LinkClick.aspx?link=Schedule.htm&tabid=36&mid=517.

    Can anyone please help?
    Manhattan Beach DotNetNuke Meetup Group
  • Re: LinkClick.aspx after upgrading to DNN 3.3.0

    06-16-2006, 4:40 PM
    • Member
      660 point Member
    • legends92
    • Member since 04-21-2004, 3:26 PM
    • Posts 132
    Forgot to say, I'm using LucasLabs HTML feed module.
    Manhattan Beach DotNetNuke Meetup Group
  • Re: LinkClick.aspx after upgrading to DNN 3.3.0

    06-16-2006, 10:04 PM
    • Contributor
      2,830 point Contributor
    • ecktwo
    • Member since 02-18-2003, 11:51 PM
    • Posts 564

    Download it again.  Initial download was faulty.  Then make sure to use the new release.config as the basis of your web.config.

  • Re: LinkClick.aspx error after upgrading to DNN 3.3.0

    06-17-2006, 2:40 AM
    • Member
      660 point Member
    • legends92
    • Member since 04-21-2004, 3:26 PM
    • Posts 132
    ecktwo:

    Download it again.  Initial download was faulty.  Then make sure to use the new release.config as the basis of your web.config.



    I re-downloaded "DotNetNuke 3.3.0 Upgrade" zip file, made sure I'm using the release.config file and the module is still not working
    Manhattan Beach DotNetNuke Meetup Group
  • Re: LinkClick.aspx error after upgrading to DNN 3.3.0

    06-18-2006, 5:00 PM
    • Contributor
      2,830 point Contributor
    • ecktwo
    • Member since 02-18-2003, 11:51 PM
    • Posts 564

    Do you have one of these in your web.cofig?

     

    <add verb="*" path="LinkClick.aspx" type="DotNetNuke.Services.FileSystem.FileServerHandler, DotNetNuke"/>

  • Re: LinkClick.aspx error after upgrading to DNN 3.3.0

    06-18-2006, 10:04 PM
    • Member
      660 point Member
    • legends92
    • Member since 04-21-2004, 3:26 PM
    • Posts 132
    ecktwo:

    Do you have one of these in your web.cofig?

     

    <add verb="*" path="LinkClick.aspx" type="DotNetNuke.Services.FileSystem.FileServerHandler, DotNetNuke"/>



    I don't have that entry in the web.config for 3.3.0, but it wasn't there in the 3.2.2 web.config either. 
    Manhattan Beach DotNetNuke Meetup Group
  • Re: LinkClick.aspx error after upgrading to DNN 3.3.0

    06-19-2006, 1:09 AM
    • Contributor
      5,389 point Contributor
    • IndianGuru
    • Member since 02-21-2004, 10:25 PM
    • India
    • Posts 1,091
    ecktwo:

    Do you have one of these in your web.cofig?

     

    <add verb="*" path="LinkClick.aspx" type="DotNetNuke.Services.FileSystem.FileServerHandler, DotNetNuke"/>

    Hi I am having the same problem when upgraded to DNN 4.3.0 (from DNN 4.0.3) Crying

    I have noticed that my web.config file does have the entry <add verb="*" path="LinkClick.aspx" type="DotNetNuke.Services.FileSystem.FileServerHandler, DotNetNuke"/> under <httpHandlers>  section Surprise

    Please help Crying
  • Re: LinkClick.aspx error after upgrading to DNN 3.3.0

    06-19-2006, 1:45 AM
    • Contributor
      5,389 point Contributor
    • IndianGuru
    • Member since 02-21-2004, 10:25 PM
    • India
    • Posts 1,091
    Ohhh, I have noticed that the Function LinkClickUrl () is messed up Crying

    Instead of returning the filename, it returns the LinkClick.aspx?link=filename.ext&tabid=tabno

    Hence if you have used this function in the Code to retrive the filename programmatically, it would return error "as the URL not found" Crying

    This bug needs to be addressed at the earliest, since, all those (custom) Modules, who relies on the Function LinkClickUrl (), would stop working, the moment you upgrade to 4.3/3.3 Crying
  • Re: LinkClick.aspx error after upgrading to DNN 3.3.0

    06-19-2006, 4:09 PM
    • Star
      10,239 point Star
    • sbwalker
    • Member since 08-23-2002, 12:47 PM
    • Canada
    • Posts 2,049
    • ASPInsiders
      TrustedFriends-MVPs

    One of the major enhancements in the latest version is that we have abstracted the application from the file system for document storage. This provides the flexibility for managing files in different ways which were not possible in the past ( ie. secure file storage, database storage ). It also provides much better security as it allows us to consistently enforce our security model related to folders and files. As part of this enhancement, we are now consistently using the database as the reference for information related to files and folders ( the Files and Folders database tables ). In the past we referenced the database in some cases and the file system in others - resulting in inconsistencies. For example, you could FTP a file to the portal home directory and then link to it from your modules - even if the file was not identified in the Files database table. In the latest version, the files must be identified in the database in order for the system to handle them properly.

    The LinkClickUrl() method now returns LinkClick.aspx?link=filename.ext&tabid=##. But this should not cause any issues for modules as long as the FilerServerHandler is properly configured in the web.config ( as per the comments earlier in this thread ). You will see the following code in the FileServerHandler:

    If UrlType = TabType.File And URL.ToLower.StartsWith("fileid=") = False Then
     
    ' to handle legacy scenarios before the introduction of the FileServerHandler
     
    Dim objFiles As New FileController
      URL = "FileID=" & objFiles.ConvertFilePathToFileId(URL, _portalSettings.PortalId)
    End If

    This logic will take the LinkClick.aspx?link=filename.ext&tabid=## URL, locate the associated file in the database, and serve the file. The only problem which you may run into is a situation where your files are not properly identified in the database - in which case the logic above would fail to locate the file. To deal with this problem, you should use the Synchronize option in the File Manager to ensure all of your files are identified. Please note that the synchronize job will only process files which have an allowable extensions as defined in the Host Settings. So if you have manually copied files into your portal folders which have restricted file extensions, you will need to add the extension to the Host Settings ( otherwise you are bypassing the application's security model - which is never a good idea ).

    Shaun Walker
    Perpetual Motion Interactive Systems Inc.
    http://www.dotnetnuke.com
    DotNetNuke on SourceForge.Net
  • Re: LinkClick.aspx error after upgrading to DNN 3.3.0

    06-19-2006, 4:29 PM
    • Member
      660 point Member
    • legends92
    • Member since 04-21-2004, 3:26 PM
    • Posts 132

    I verified htm and html file types are allowable extension, synchronized via File Manager and the LucasLabs HTML Feed module is still not working.  Maybe this is a problem with the module it self than anything.  Unfortunately, LucasLabs no longer exists.

    Does anyone know any module that can read a htm or html file?

    Manhattan Beach DotNetNuke Meetup Group
  • Re: LinkClick.aspx error after upgrading to DNN 3.3.0

    06-19-2006, 10:06 PM
    • Contributor
      2,830 point Contributor
    • ecktwo
    • Member since 02-18-2003, 11:51 PM
    • Posts 564
    legends92:
    ecktwo:

    Do you have one of these in your web.cofig?

     

    <add verb="*" path="LinkClick.aspx" type="DotNetNuke.Services.FileSystem.FileServerHandler, DotNetNuke"/>



    I don't have that entry in the web.config for 3.3.0, but it wasn't there in the 3.2.2 web.config either. 

    In that case you really didn't use the new release.config.  It's there in my copy of the download.

  • Re: LinkClick.aspx error after upgrading to DNN 3.3.0

    06-20-2006, 2:14 AM
    • Contributor
      5,389 point Contributor
    • IndianGuru
    • Member since 02-21-2004, 10:25 PM
    • India
    • Posts 1,091
    sbwalker:

    One of the major enhancements in the latest version is that we have abstracted the application from the file system for document storage. This provides the flexibility for managing files in different ways which were not possible in the past ( ie. secure file storage, database storage ). It also provides much better security as it allows us to consistently enforce our security model related to folders and files. As part of this enhancement, we are now consistently using the database as the reference for information related to files and folders ( the Files and Folders database tables ). In the past we referenced the database in some cases and the file system in others - resulting in inconsistencies. For example, you could FTP a file to the portal home directory and then link to it from your modules - even if the file was not identified in the Files database table. In the latest version, the files must be identified in the database in order for the system to handle them properly.

    The LinkClickUrl() method now returns LinkClick.aspx?link=filename.ext&tabid=##. But this should not cause any issues for modules as long as the FilerServerHandler is properly configured in the web.config ( as per the comments earlier in this thread ). You will see the following code in the FileServerHandler:

    If UrlType = TabType.File And URL.ToLower.StartsWith("fileid=") = False Then
     
    ' to handle legacy scenarios before the introduction of the FileServerHandler
     
    Dim objFiles As New FileController
      URL = "FileID=" & objFiles.ConvertFilePathToFileId(URL, _portalSettings.PortalId)
    End If

    This logic will take the LinkClick.aspx?link=filename.ext&tabid=## URL, locate the associated file in the database, and serve the file. The only problem which you may run into is a situation where your files are not properly identified in the database - in which case the logic above would fail to locate the file. To deal with this problem, you should use the Synchronize option in the File Manager to ensure all of your files are identified. Please note that the synchronize job will only process files which have an allowable extensions as defined in the Host Settings. So if you have manually copied files into your portal folders which have restricted file extensions, you will need to add the extension to the Host Settings ( otherwise you are bypassing the application's security model - which is never a good idea ).

    This is surely a great enhancement and would benefit all.

    However, I guess, we can have provision at least for the time being, to have an option to use the old method too. Like we may have an option, some where in the Admin settings or may be and optional argument in the LinkClickUrl method to use the older system too. viz

    LinkClickUrl(ByVal FileId as string, ByVal LegacyCompliant as Boolean = True)

    so that, existing modules would work all ok, without modification and the newer modules would incorporate the newer model to take advantage of the new Security feature.

    I am concern, because there are many many module develoers (including me Sad) who have used the LinkClickUrl() in code to extract the filename and rebuilding the URL in many modules, in many places. While mending this code to comply to this new system is a daunting huge task (which ofcourse we would do, since it is necessary), the Module would simply break, in the new 3.3/4.3. We need to have breathing space, so that we update the code, and may be in 4.3.2, you remove this provision. But currently we all are stuck, since all those modules have to be upgraded at the earliest, otherwise it would break in new system.

    Please help Crying

  • Re: LinkClick.aspx error after upgrading to DNN 3.3.0

    06-20-2006, 5:32 AM
    • Member
      215 point Member
    • cyberfester
    • Member since 09-12-2002, 9:42 AM
    • Posts 43

    still doesn't work

    dnn 4.3:

    1) I've copied    <add verb="*" path="LinkClick.aspx" type="DotNetNuke.Services.FileSystem.FileServerHandler, DotNetNuke"/>
    in web.config in <httpHandlers> section

    2) In Admin --> FileManager  I've sincronized my FileSystemSecure folder (clicked on Synchronize Folder)

    3) using Link module (version 03.03.00) I create a link to a document in my FileSystem Secure folder (the one I have sincronized); but when i click on the link I get this error message:
    Could not find file 'D:\Sites\DNN_V4\Website\Portale\Portals\0\FileSystemSecureA\MyFile.xls'

    In \Portals\0\FileSystemSecureA\  there are some files but they are *.resources ('MyFile.xls.resources')

    Is it a bug or I'm doing something wrong?

    thanks
    Luca

  • Re: LinkClick.aspx error after upgrading to DNN 3.3.0

    06-21-2006, 1:27 AM
    • Contributor
      5,389 point Contributor
    • IndianGuru
    • Member since 02-21-2004, 10:25 PM
    • India
    • Posts 1,091
    sbwalker:

    The LinkClickUrl() method now returns LinkClick.aspx?link=filename.ext&tabid=##. But this should not cause any issues for modules as long as the FilerServerHandler is properly configured in the web.config ( as per the comments earlier in this thread ). You will see the following code in the FileServerHandler:

    If UrlType = TabType.File And URL.ToLower.StartsWith("fileid=") = False Then
     
    ' to handle legacy scenarios before the introduction of the FileServerHandler
     
    Dim objFiles As New FileController
      URL = "FileID=" & objFiles.ConvertFilePathToFileId(URL, _portalSettings.PortalId)
    End If


    When I looked into the Code, I found that, LinkClickURL() is marked obsolete. i.e. it is not being used by new DNN Versions/Modules any way. Why not leave it as it is, for backward compatability ?
Page 1 of 1 (14 items)