Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: DNN 4.3.6 for Red Fox Hosting

  1. #1
    Join Date
    Mar 2005
    Location
    Hampshire
    Posts
    432
    Thanks
    4
    Thanked 3 Times in 3 Posts

    Default DNN 4.3.6 for Red Fox Hosting

    Hi All,

    I have created a version of DNN 4.3.6 that will work on RedFox hosting. Please note the following

    1. It requires ASP.Net 2 since it is the version 4 of DNN. (I have not produced a version 3 for .Net 1.1 and will not be)
    2. Basically I have created a version that does not do the EventQueue code has been removed from the App Start and I have created a schedule that will execute this code.
    [COLOR=#000000]Below are more details on what I have changed

    Global.asax.vb

    In the Application_Start start method added the following to the top of the method
    Code:
    DotNetNuke.Common.ApplicationIdentity = System.Security.Principal.WindowsIdentity.GetCurrent()
    Commented out the following lines at the end of the method
    Code:
    Dim oEventController As New EventQueue.EventQueueController
    oEventController.ProcessMessages("Application_Start")
    In the DotNetNuke.Library in the Globals.vb file

    Added the following private member
    Code:
    Private _ApplicationIdentity As System.Security.Principal.WindowsIdentity
    Added the following Property
    Code:
    Public Property ApplicationIdentity() As System.Security.Principal.WindowsIdentity
    Get
    Return _ApplicationIdentity
    End Get
    Set(ByVal value As System.Security.Principal.WindowsIdentity)
    _ApplicationIdentity = value
    End Set
    End Property
    
    In the HttpModule.UrlRewrite module, within the UrlRewriteModule.vb file

    Added the following to the OnBeginRequest method
    Code:
    ' Check that the services are running under the current user
    If DotNetNuke.Common.ApplicationIdentity.Name <> System.Security.Principal.WindowsIdentity.GetCurrent().Name Then
    DotNetNuke.Common.ApplicationIdentity = System.Security.Principal.WindowsIdentity.GetCurrent()
    End If


    Within the Provider.DNNScheduler module, within the ProcessGroup.vb file

    In the Run method change the following
    Code:
    Try
                        Process.ScheduleHistoryItem.Succeeded = False
                        Process.DoWork()
                    Catch exc As Exception
                        'in case the scheduler client
                        'didn't have proper exception handling
                        'make sure we fire the Errored event
                        If Not Process Is Nothing Then
                            Process.ScheduleHistoryItem.Succeeded = False
                            Process.Errored(exc)
                        End If
                    End Try
    To this
    Code:
    Dim changedIdentity As Boolean = False
    Dim wi As System.Security.Principal.WindowsImpersonationContext
    Try
    Process.ScheduleHistoryItem.Succeeded = False
    If System.Security.Principal.WindowsIdentity.GetCurrent.Name <> Common.ApplicationIdentity.Name Then
    wi = Common.ApplicationIdentity.Impersonate()
    changedIdentity = True
    End If
    Process.DoWork()
    If changedIdentity Then
    wi.Undo()
    End If
    Catch exc As Exception
    'in case the scheduler client
    'didn't have proper exception handling
    'make sure we fire the Errored event
    If Not Process Is Nothing Then
    Process.ScheduleHistoryItem.Succeeded = False
    Process.Errored(exc)
    End If
    If changedIdentity Then
    wi.Undo()
    End If
    End Try
    


    I have also added the follwing SQL to the 04.03.06.SqlDataProvider file
    Code:
    
    INSERT INTO {databaseOwner}{objectQualifier}Schedule
     (TypeFullName,
     TimeLapse,
     TimeLapseMeasurement,
     RetryTimeLapse,
     RetryTimeLapseMeasurement,
     RetainHistoryNum,
     AttachToEvent,
     CatchUpEnabled,
            Enabled,
            ObjectDependencies)
    VALUES
     ('LeaHosting.DNN.Schedule.EventController.EventControl, LeaHosting.DNN.Schedule.EventController',
     1,
     'd',
     5,
     'm',
     5,
     'APPLICATION_START',
     1,
            1,
            '')
    GO


    Included in the Source Zip is the schedule that I have wrote to carry out the EventQueue stuff. Please note that this now runs every 24 hours (could not manage to get it to run just the once the way that I wanted).

    Now for the standard Warrenty

    There is no Warrenty with any of this code, I have ran and tested this on RedFox Hosting. If you use it, it is at your risk please always test first.

    I have now uploaded the files. Please note, I have not tested this on an upgrade.
    Last edited by Tanzy; 26th November 2006 at 07:16 PM. Reason: Tidied it up a bit

    Just chill

  2. #2
    Join Date
    Mar 2005
    Location
    Hampshire
    Posts
    432
    Thanks
    4
    Thanked 3 Times in 3 Posts

    Default DNN 4.3.6 Install

    I will try these one at a time
    Attached Files Attached Files

    Just chill

  3. #3
    Join Date
    Mar 2005
    Location
    Hampshire
    Posts
    432
    Thanks
    4
    Thanked 3 Times in 3 Posts

    Default DNN 4.3.6 Source

    This is the source for DNN 4.3.6
    Attached Files Attached Files

    Just chill

  4. #4
    Join Date
    Mar 2005
    Location
    Hampshire
    Posts
    432
    Thanks
    4
    Thanked 3 Times in 3 Posts

    Default

    Please take note of the following Security Alert issued by the DNN team about version 4.3.6 of DNN

    http://www.dotnetnuke.com/About/What...9/Default.aspx

    The version I have posted here IS affected by this security issue. I will post a new version when I get the chance.

    Just chill

  5. #5
    Join Date
    Jun 2006
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Upgrade to 4.3.6

    Can you advise how easy it is to upgrade from 4.0.3 to 4.3.6

    regards

    Jeremy

  6. #6
    Join Date
    Mar 2005
    Location
    Hampshire
    Posts
    432
    Thanks
    4
    Thanked 3 Times in 3 Posts

    Default

    It should not be too hard. I would recommend as always to do a test run first. I'm working away at the moment,with very limited internet connection. If you want to give me a shout at the start of Feb I can try to help you out.

    Just chill

  7. #7
    Join Date
    Apr 2005
    Location
    Haslemere, Surrey, UK
    Posts
    340
    Thanks
    5
    Thanked 3 Times in 3 Posts

    Default

    Hi

    I installed the 4.3.6 install.zip that was posted here and it just doesnt work.

    when I try and add an Event or Edit text I get a message

    A critical error has occurred.
    Object reference not set to an instance of an object.


    And the Log Viewer shows the trace :

    AssemblyVersion: 04.03.06
    PortalID: 0
    PortalName: My Website
    UserID: 1
    UserName: host
    ActiveTabID: 36
    ActiveTabName: Home
    RawURL: /Home/tabid/36/ctl/Edit/mid/368/Default.aspx
    AbsoluteURL: /Default.aspx
    AbsoluteURLReferrer: http://mydomain.com/Home/tabid/36/Default.aspx
    UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1
    DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
    ExceptionGUID: a0a17995-90fe-48a9-9eca-d5364e68a615
    InnerException: Object reference not set to an instance of an object.
    FileName:
    FileLineNumber: 0
    FileColumnNumber: 0
    Method: FreeTextBoxControls.FreeTextBox.RegisterClientScri pt
    StackTrace:
    Message: DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at FreeTextBoxControls.FreeTextBox.RegisterClientScri pt() at FreeTextBoxControls.FreeTextBox.OnPreRender(EventA rgs e) at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
    Source:
    Server Name: RADON

    Anyone have any ideas?

    TIA

    Alastair
    Alastair - WOWD



  8. #8
    Join Date
    Mar 2005
    Location
    Hampshire
    Posts
    432
    Thanks
    4
    Thanked 3 Times in 3 Posts

    Default

    I have seen this a number of times. It is not due to the installation. The problem is due to it not geting a reference to the FreeTextBoxControl I believe. Whenever I have had this issue, I normaly just refresh the page and everything is fine.

    Just chill

  9. #9
    Join Date
    Apr 2005
    Location
    Haslemere, Surrey, UK
    Posts
    340
    Thanks
    5
    Thanked 3 Times in 3 Posts

    Default

    Quote Originally Posted by Tanzy View Post
    I have seen this a number of times. It is not due to the installation. The problem is due to it not geting a reference to the FreeTextBoxControl I believe. Whenever I have had this issue, I normaly just refresh the page and everything is fine.
    I have tried refreshing the page and its still happening.
    Alastair - WOWD



  10. #10
    Join Date
    Mar 2005
    Location
    Hampshire
    Posts
    432
    Thanks
    4
    Thanked 3 Times in 3 Posts

    Default

    I will need to look at this from home tonight on my test system. Is it OK to get back to you either later tonight or tomorrow? I'm sure that I tested this functionallity, but once I have looked on my test system I should have a better idea as to what is going on.

    Just chill

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Red Fox Hosting Button?
    By Breaks in forum Customer Feedback and Suggestions
    Replies: 11
    Last Post: 8th October 2005, 08:16 PM
  2. Red Fox Hosting
    By Glynn in forum Customer Feedback and Suggestions
    Replies: 0
    Last Post: 12th May 2005, 10:58 PM
  3. Red fox logo
    By ferpferp in forum Garble
    Replies: 3
    Last Post: 10th April 2005, 11:39 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •