Problem with DNN Module

 

I have created a DNN Module, Everything looks fine in VWD, no errors. However when I try to load the page, I get the following error. My .vb is also included, the upload, download, & paypal code is actually in there 12 times, I removed some of them to make this post shorter.

Error: PGT is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at YourCompany.Modules.PGT.ViewPGT..ctor() in C:\Users\David\Desktop\sites\DNN\DesktopModules\PGT\ViewPGT.ascx.vb:line 152 at ASP.desktopmodules_pgt_viewpgt_ascx..ctor() in C:\Users\David\Desktop\sites\DNN\DesktopModules\PGT\ViewPGT.ascx.vb:line 912304 at __ASP.FastObjectFactory_app_web_6gkdbv9i.Create_ASP_desktopmodules_pgt_viewpgt_ascx() at System.Web.Compilation.BuildResultCompiledType.CreateInstance() at System.Web.UI.TemplateControl.LoadControl(IWebObjectFactory objectFactory, VirtualPath virtualPath, Type t, Object[] parameters) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) --- End of inner exception stack trace ---

'
' DotNetNuke® - http://www.dotnetnuke.com
' Copyright (c) 2002-2006
' by Perpetual Motion Interactive Systems Inc. ( http://www.perpetualmotion.ca )
'
' Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
' documentation files (the "Software"), to deal in the Software without restriction, including without limitation
' the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
' to permit persons to whom the Software is furnished to do so, subject to the following conditions:
'
' The above copyright notice and this permission notice shall be included in all copies or substantial portions
' of the Software.
'
' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
' TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
' THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
' CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
' DEALINGS IN THE SOFTWARE.
'
Imports DotNetNuke
Imports System.IO
Imports System.Web.UI
Imports System.Web.UI.Page
Imports System.Collections.Generic
Imports System.Reflection
Imports DotNetNuke.Security.PortalSecurity
Imports DotNetNuke.Entities.Modules.ModuleController
Imports DotNetNuke.Entities.Modules.ModuleSettingsBase
Imports DotNetNuke.Entities.Modules.ModuleInfo

Partial Class DesktopModules_PGT_ViewPGT
    Inherits Entities.Modules.PortalModuleBase
   

End Class
Namespace YourCompany.Modules.PGT
 
       
    ''' -----------------------------------------------------------------------------
    ''' <summary>
    ''' The ViewDynamicModule class displays the content
    ''' </summary>
    ''' <remarks>
    ''' </remarks>
    ''' <history>
    ''' </history>
    ''' -----------------------------------------------------------------------------
    Partial Class ViewPGT
        Inherits Entities.Modules.PortalModuleBase
        Implements Entities.Modules.IActionable

#Region "Private Members"

        Private strTemplate As String

#End Region

#Region "Event Handlers"

        ''' -----------------------------------------------------------------------------
        ''' <summary>
        ''' Page_Load runs when the control is loaded
        ''' </summary>
        ''' <remarks>
        ''' </remarks>
        ''' <history>
        ''' </history>
        ''' -----------------------------------------------------------------------------
        Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            Try
                If Not Page.IsPostBack Then
                    If CType(Settings("template"), String) <> "" Then
                        strTemplate = CType(Settings("template"), String)
                    Else
                        strTemplate = Localization.GetString("Template.Text", LocalResourceFile)
                    End If

                    Dim objPGTs As New PGTController
                    Dim colPGTs As List(Of PGTInfo)

                    ' get the content from the PGT table
                    colPGTs = objPGTs.GetPGTs(ModuleId)

                    If colPGTs.Count = 0 Then
                        If Localization.GetString("DefaultContent", LocalResourceFile) <> "" Then
                            ' add the content to the PGT table
                            Dim objPGT As PGTInfo = New PGTInfo
                            objPGT.ModuleId = ModuleId
                            objPGT.Content = Localization.GetString("DefaultContent", LocalResourceFile)
                            objPGT.CreatedByUser = Me.UserId
                            objPGTs.AddPGT(objPGT)
                            ' get the content from the PGT table
                            colPGTs = objPGTs.GetPGTs(ModuleId)
                        End If
                    End If

                    ' bind the content to the repeater
                    lstContent.DataSource = colPGTs
                    lstContent.DataBind()
                End If
            Catch exc As Exception        'Module failed to load
                ProcessModuleLoadException(Me, exc)
            End Try

        End Sub

        Protected Sub lstContent_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataListItemEventArgs) Handles lstContent.ItemDataBound
            Dim strContent As String = strTemplate
            Dim strValue As String

            ' add content to template
            Dim objProperties As ArrayList = Common.Utilities.CBO.GetPropertyInfo(GetType(PGTInfo))
            Dim intProperty As Integer
            Dim objPropertyInfo As PropertyInfo
            For intProperty = 0 To objProperties.Count - 1
                objPropertyInfo = CType(objProperties(intProperty), PropertyInfo)
                If strContent.IndexOf("[" & objPropertyInfo.Name.ToUpper & "]") <> -1 Then
                    strValue = Server.HtmlDecode(DataBinder.Eval(e.Item.DataItem, objPropertyInfo.Name).ToString())
                    strContent = strContent.Replace("[" & objPropertyInfo.Name.ToUpper & "]", strValue)
                End If
            Next intProperty

            ' assign the content
            Dim lblContent As Label = CType(e.Item.FindControl("lblContent"), Label)
            lblContent.Text = strContent
        End Sub

#End Region

#Region "Optional Interfaces"
       
        ''' -----------------------------------------------------------------------------
        ''' <summary>
        ''' Registers the module actions required for interfacing with the portal framework
        ''' </summary>
        ''' <value></value>
        ''' <returns></returns>
        ''' <remarks></remarks>
        ''' <history>
        ''' </history>
        ''' -----------------------------------------------------------------------------
        Public ReadOnly Property ModuleActions() As Entities.Modules.Actions.ModuleActionCollection Implements Entities.Modules.IActionable.ModuleActions
            Get
                Dim Actions As New Entities.Modules.Actions.ModuleActionCollection
                Actions.Add(GetNextActionID, Localization.GetString(Entities.Modules.Actions.ModuleActionType.AddContent, LocalResourceFile), Entities.Modules.Actions.ModuleActionType.AddContent, "", "", EditUrl(), False, Security.SecurityAccessLevel.Edit, True, False)
                Return Actions
            End Get
        End Property

#End Region
        Dim coach As String = school & " - Coach"
        Dim school As String = CType(Settings("school"), String).ToString
        Dim league As String = CType(Settings("league"), String).ToString
        Dim sport As String = CType(Settings("sport"), String).ToString
        Dim subPrice As String = CType(Settings("subPrice"), String).ToString
        Dim subTerm1 As String = CType(Settings("subTerm1"), String).ToString
        Dim subTerm2 As String = CType(Settings("subTerm2"), String).ToString
        Dim singlePrice As String = CType(Settings("singlePrice"), String).ToString
        Dim singleTerm1 As String = CType(Settings("singleTerm1"), String).ToString
        Dim singleTerm2 As String = CType(Settings("singleTerm2"), String).ToString

        Dim strPath1 As String = "~/uploads/" & school & "/1/"
        Dim FileName1 As String = Path.GetFileNameWithoutExtension(strPath1)
        Dim DLPath1 As String = strPath1 & FileName1

        Dim strPath2 As String = "~/uploads/" & school & "/2/"
        Dim FileName2 As String = Path.GetFileNameWithoutExtension(strPath2)
        Dim DLPath2 As String = strPath2 & FileName2

        Dim strPath3 As String = "~/uploads/" & school & "/3/"
        Dim FileName3 As String = Path.GetFileNameWithoutExtension(strPath3)
        Dim DLPath3 As String = strPath3 & FileName3

        Dim strPath4 As String = "~/uploads/" & school & "/4/"
        Dim FileName4 As String = Path.GetFileNameWithoutExtension(strPath4)
        Dim DLPath4 As String = strPath4 & FileName4

        Dim strPath5 As String = "~/uploads/" & school & "/5/"
        Dim FileName5 As String = Path.GetFileNameWithoutExtension(strPath5)
        Dim DLPath5 As String = strPath5 & FileName5

        Dim strPath6 As String = "~/uploads/" & school & "/6/"
        Dim FileName6 As String = Path.GetFileNameWithoutExtension(strPath6)
        Dim DLPath6 As String = strPath6 & FileName6

        Dim strPath7 As String = "~/uploads/" & school & "/7/"
        Dim FileName7 As String = Path.GetFileNameWithoutExtension(strPath7)
        Dim DLPath7 As String = strPath7 & FileName7

        Dim strPath8 As String = "~/uploads/" & school & "/8/"
        Dim FileName8 As String = Path.GetFileNameWithoutExtension(strPath8)
        Dim DLPath8 As String = strPath8 & FileName8

        Dim strPath9 As String = "~/uploads/" & school & "/9/"
        Dim FileName9 As String = Path.GetFileNameWithoutExtension(strPath1)
        Dim DLPath9 As String = strPath9 & FileName9

        Dim strPath10 As String = "~/uploads/" & school & "/10/"
        Dim FileName10 As String = Path.GetFileNameWithoutExtension(strPath10)
        Dim DLPath10 As String = strPath10 & FileName10

        Dim strPath11 As String = "~/uploads/" & school & "/11/"
        Dim FileName11 As String = Path.GetFileNameWithoutExtension(strPath11)
        Dim DLPath11 As String = strPath11 & FileName11

        Dim strPath12 As String = "~/uploads/" & school & "/12/"
        Dim FileName12 As String = Path.GetFileNameWithoutExtension(strPath12)
        Dim DLPath12 As String = strPath12 & FileName12
        Public Sub Page_Load2(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load, Me.Load
            '-------------------------------------------------------------------------------------------------------------------- Access
            '
            '--------------------------------------------------------------------------------------------------------------------

            If IsInRole(coach) Then
                FileUpload1.Visible = True
                Upload1.Visible = True
                ULLabel1.Visible = True
                FileUpload2.Visible = True
                Upload2.Visible = True
                ULLabel2.Visible = True
                FileUpload3.Visible = True
                Upload3.Visible = True
                ULLabel3.Visible = True
                FileUpload4.Visible = True
                Upload4.Visible = True
                ULLabel4.Visible = True
                FileUpload5.Visible = True
                Upload5.Visible = True
                ULLabel5.Visible = True
                FileUpload6.Visible = True
                Upload6.Visible = True
                ULLabel6.Visible = True
                FileUpload7.Visible = True
                Upload7.Visible = True
                ULLabel7.Visible = True
                FileUpload8.Visible = True
                Upload8.Visible = True
                ULLabel8.Visible = True
                FileUpload9.Visible = True
                Upload9.Visible = True
                ULLabel9.Visible = True
                FileUpload10.Visible = True
                Upload10.Visible = True
                ULLabel10.Visible = True
                FileUpload11.Visible = True
                Upload11.Visible = True
                ULLabel11.Visible = True
                FileUpload12.Visible = True
                Upload12.Visible = True
                ULLabel12.Visible = True
                Label2.Visible = True
                Label3.Visible = False
                Label4.Visible = True
            Else
                FileUpload1.Visible = False
                Upload1.Visible = False
                ULLabel1.Visible = False
                FileUpload2.Visible = False
                Upload2.Visible = False
                ULLabel2.Visible = False
                FileUpload3.Visible = False
                Upload3.Visible = False
                ULLabel3.Visible = False
                FileUpload4.Visible = False
                Upload4.Visible = False
                ULLabel4.Visible = False
                FileUpload5.Visible = False
                Upload5.Visible = False
                ULLabel5.Visible = False
                FileUpload6.Visible = False
                Upload6.Visible = False
                ULLabel6.Visible = False
                FileUpload7.Visible = False
                Upload7.Visible = False
                ULLabel7.Visible = False
                FileUpload8.Visible = False
                Upload8.Visible = False
                ULLabel8.Visible = False
                FileUpload9.Visible = False
                Upload9.Visible = False
                ULLabel9.Visible = False
                FileUpload10.Visible = False
                Upload10.Visible = False
                ULLabel10.Visible = False
                FileUpload11.Visible = False
                Upload11.Visible = False
                ULLabel11.Visible = False
                FileUpload12.Visible = False
                Upload12.Visible = False
                ULLabel12.Visible = False
                Label2.Visible = False
                Label3.Visible = True
                Label4.Visible = False
            End If

            If IsInRole(school + " Temp1") Then
                Download1.Visible = True
                Download2.Visible = False
                Download3.Visible = False
                Download4.Visible = False
                Download5.Visible = False
                Download6.Visible = False
                Download7.Visible = False
                Download8.Visible = False
                Download9.Visible = False
                Download10.Visible = False
                Download11.Visible = False
                Download12.Visible = False
                Buy1.Visible = False
            ElseIf IsInRole(school + " Temp2") Then
                Download1.Visible = False
                Download2.Visible = True
                Download3.Visible = False
                Download4.Visible = False
                Download5.Visible = False
                Download6.Visible = False
                Download7.Visible = False
                Download8.Visible = False
                Download9.Visible = False
                Download10.Visible = False
                Download11.Visible = False
                Download12.Visible = False
                Buy2.Visible = False
            ElseIf IsInRole(school + " Temp3") Then
                Download1.Visible = False
                Download2.Visible = False
                Download3.Visible = True
                Download4.Visible = False
                Download5.Visible = False
                Download6.Visible = False
                Download7.Visible = False
                Download8.Visible = False
                Download9.Visible = False
                Download10.Visible = False
                Download11.Visible = False
                Download12.Visible = False
                Buy3.Visible = False
            ElseIf IsInRole(school + " Temp4") Then
                Download1.Visible = False
                Download2.Visible = False
                Download3.Visible = False
                Download4.Visible = True
                Download5.Visible = False
                Download6.Visible = False
                Download7.Visible = False
                Download8.Visible = False
                Download9.Visible = False
                Download10.Visible = False
                Download11.Visible = False
                Download12.Visible = False
                Buy4.Visible = False
            ElseIf IsInRole(school + " Temp5") Then
                Download1.Visible = False
                Download2.Visible = False
                Download3.Visible = False
                Download4.Visible = False
                Download5.Visible = True
                Download6.Visible = False
                Download7.Visible = False
                Download8.Visible = False
                Download9.Visible = False
                Download10.Visible = False
                Download11.Visible = False
                Download12.Visible = False
                Buy5.Visible = False
            ElseIf IsInRole(school + " Temp6") Then
                Download1.Visible = False
                Download2.Visible = False
                Download3.Visible = False
                Download4.Visible = False
                Download5.Visible = False
                Download6.Visible = True
                Download7.Visible = False
                Download8.Visible = False
                Download9.Visible = False
                Download10.Visible = False
                Download11.Visible = False
                Download12.Visible = False
                Buy6.Visible = False
            ElseIf IsInRole(school + " Temp7") Then
                Download1.Visible = False
                Download2.Visible = False
                Download3.Visible = False
                Download4.Visible = False
                Download5.Visible = False
                Download6.Visible = False
                Download7.Visible = True
                Download8.Visible = False
                Download9.Visible = False
                Download10.Visible = False
                Download11.Visible = False
                Download12.Visible = False
                Buy7.Visible = False
            ElseIf IsInRole(school + " Temp8") Then
                Download1.Visible = False
                Download2.Visible = False
                Download3.Visible = False
                Download4.Visible = False
                Download5.Visible = False
                Download6.Visible = False
                Download7.Visible = False
                Download8.Visible = True
                Download9.Visible = False
                Download10.Visible = False
                Download11.Visible = False
                Download12.Visible = False
                Buy8.Visible = False
            ElseIf IsInRole(school + " Temp9") Then
                Download1.Visible = False
                Download2.Visible = False
                Download3.Visible = False
                Download4.Visible = False
                Download5.Visible = False
                Download6.Visible = False
                Download7.Visible = False
                Download8.Visible = False
                Download9.Visible = True
                Download10.Visible = False
                Download11.Visible = False
                Download12.Visible = False
                Buy9.Visible = False
            ElseIf IsInRole(school + " Temp10") Then
                Download1.Visible = False
                Download2.Visible = False
                Download3.Visible = False
                Download4.Visible = False
                Download5.Visible = False
                Download6.Visible = False
                Download7.Visible = False
                Download8.Visible = False
                Download9.Visible = False
                Download10.Visible = True
                Download11.Visible = False
                Download12.Visible = False
                Buy10.Visible = False
            ElseIf IsInRole(school + " Temp11") Then
                Download1.Visible = False
                Download2.Visible = False
                Download3.Visible = False
                Download4.Visible = False
                Download5.Visible = False
                Download6.Visible = False
                Download7.Visible = False
                Download8.Visible = False
                Download9.Visible = False
                Download10.Visible = False
                Download11.Visible = True
                Download12.Visible = False
                Buy11.Visible = False
            ElseIf IsInRole(school + " Temp12") Then
                Download1.Visible = False
                Download2.Visible = False
                Download3.Visible = False
                Download4.Visible = False
                Download5.Visible = False
                Download6.Visible = False
                Download7.Visible = False
                Download8.Visible = False
                Download9.Visible = False
                Download10.Visible = False
                Download11.Visible = False
                Download12.Visible = True
                Buy12.Visible = False
            ElseIf IsInRole(school) Or IsInRole(coach) Then
                Download1.Visible = True
                Download2.Visible = True
                Download3.Visible = True
                Download4.Visible = True
                Download5.Visible = True
                Download6.Visible = True
                Download7.Visible = True
                Download8.Visible = True
                Download9.Visible = True
                Download10.Visible = True
                Download11.Visible = True
                Download12.Visible = True
                Buy1.Visible = False
                Buy2.Visible = False
                Buy3.Visible = False
                Buy4.Visible = False
                Buy5.Visible = False
                Buy6.Visible = False
                Buy7.Visible = False
                Buy8.Visible = False
                Buy9.Visible = False
                Buy10.Visible = False
                Buy11.Visible = False
                Buy12.Visible = False
            Else
                Download1.Visible = False
                Buy1.Visible = True
                Download2.Visible = False
                Buy2.Visible = True
                Download3.Visible = False
                Buy3.Visible = True
                Download4.Visible = False
                Buy4.Visible = True
                Download5.Visible = False
                Buy5.Visible = True
                Download6.Visible = False
                Buy6.Visible = True
                Download7.Visible = False
                Buy7.Visible = True
                Download8.Visible = False
                Buy8.Visible = True
                Download9.Visible = False
                Buy9.Visible = True
                Download10.Visible = False
                Buy10.Visible = True
                Download11.Visible = False
                Buy11.Visible = True
                Download12.Visible = False
                Buy12.Visible = True
            End If

            Label10.Text = ("Purchase Season pass to all " & school & "," & league & " " & sport & " Game Tapes - $" & subPrice)
            vid1.Text = FileName1
            vid2.Text = FileName2
            vid3.Text = FileName3
            vid4.Text = FileName4
            vid5.Text = FileName5
            vid6.Text = FileName6
            vid7.Text = FileName7
            vid8.Text = FileName8
            vid9.Text = FileName9
            vid10.Text = FileName10
            vid11.Text = FileName11
            vid12.Text = FileName12
        End Sub
        Protected Sub Upload1_Click1(ByVal sender As Object, ByVal e As System.EventArgs) Handles Upload1.Click
            If FileUpload1.HasFile Then
                Try
                    If Not Directory.Exists(strPath1) Then
                        Directory.CreateDirectory(strPath1)
                    End If
                    FileUpload1.SaveAs(Server.MapPath(strPath1 + FileUpload1.FileName))
                    ULLabel1.Text = "File Uploaded!"
                Catch ex As Exception
                    ULLabel1.Text = "ERROR: " & ex.Message.ToString()
                End Try
            Else
                ULLabel1.Text = "You have not specified a file."
            End If
        End Sub


        '-------------------------------------------------------------------------------------------------------------------- PayPal
        '
        '--------------------------------------------------------------------------------------------------------------------
        Protected Sub Subscription_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Subscription.Click
            Response.Write(PayPalPostForm0().ToString)

        End Sub
        Public Function PayPalPostForm0() As String
            Dim PostUrl As String = "https://www.paypal.com/cgi-bin/webscr"
            Dim Cmd As String = "_xclick-subscriptions"
            Dim no_shipping As String = "1"
            Dim BusinessEmail As String = "_________@truvista.net"
            Dim Currency As String = "USD"
            Dim ItemName As String = school
            Dim a3 As String = subPrice
            Dim ret As String = "http://www._______________.com/dnn/desktopmodules/uldl/Payment_success.aspx"
            Dim cancel As String = "http://www.___________.com"
            Dim Note As String = "1"
            Dim p3 As String = subTerm1
            Dim t3 As String = subTerm2
            Dim bn As String = "PP-SubscriptionsBF"
            'Create the Form to write to the page with PayPal parameters
            Dim ppForm As New StringBuilder
            ppForm.Append("<Form name=" + """" + "frmPP" + """" + " id=" + """" + "frmPP" + """" + " action=" + """" + PostUrl + """" + " method=" + """" + "post" + """" + ">")
            ppForm.Append("<input type=" + """" + "hidden" + """" + " name=" + """" + "cmd" + """" + " value=" + """" + Cmd + """" + ">")
            ppForm.Append("<input type=" + """" + "hidden" + """" + " name=" + """" + "no_shipping" + """" + " value=" + """" + no_shipping + """" + ">")
            ppForm.Append("<input type=" + """" + "hidden" + """" + " name=" + """" + "business" + """" + " value=" + """" + BusinessEmail + """" + ">")
            ppForm.Append("<input type=" + """" + "hidden" + """" + " name=" + """" + "currency_code" + """" + " value=" + """" + Currency + """" + ">")
            ppForm.Append("<input type=" + """" + "hidden" + """" + " name=" + """" + "item_name" + """" + " value=" + """" + ItemName + """" + ">")
            ppForm.Append("<input type=" + """" + "hidden" + """" + " name=" + """" + "a3" + """" + " value=" + """" + a3 + """" + ">")
            ppForm.Append("<input type=" + """" + "hidden" + """" + " name=" + """" + "return" + """" + " value=" + """" + ret + """" + ">")
            ppForm.Append("<input type=" + """" + "hidden" + """" + " name=" + """" + "no_shipping" + """" + " value=" + """" + no_shipping + """" + ">")
            ppForm.Append("<input type=" + """" + "hidden" + """" + " name=" + """" + "cancel_return" + """" + " value=" + """" + cancel + """" + ">")
            ppForm.Append("<input type=" + """" + "hidden" + """" + " name=" + """" + "no_note" + """" + " value=" + """" + Note + """" + ">")
            ppForm.Append("<input type=" + """" + "hidden" + """" + " name=" + """" + "bn" + """" + " value=" + """" + bn + """" + ">")
            ppForm.Append("<input type=" + """" + "hidden" + """" + " name=" + """" + "p3" + """" + " value=" + """" + p3 + """" + ">")
            ppForm.Append("<input type=" + """" + "hidden" + """" + " name=" + """" + "t3" + """" + " value=" + """" + t3 + """" + ">")
            Return ppForm.ToString
        End Function


        '-------------------------------------------------------------------------------------------------------------------- Download
        '
        '--------------------------------------------------------------------------------------------------------------------

        Protected Sub Download1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Download1.Click

            Response.TransmitFile(Server.MapPath(DLPath1))
        End Sub

    End Class
End Namespace


0
RDO
7/9/2008 4:46:04 PM
asp.net.dotnetnuke 25171 articles. 0 followers. Follow

0 Replies
1440 Views

Similar Articles

[PageSpeed] 6
Get it on Google Play
Get it on Apple App Store

Reply:

Similar Artilces:

Dnn 3.x TextEditor in Custom module problem (vs.net?)
Okay, I need to find out if anyone else is having this problem or has had it with a solution. It is possibly a vs.net problem. I am converting a DNN 2 custom module that used the FTB called directly. I have converted to using the DNN HtmlEditorProvider via the dnn:texteditor user control. Yes, I have added the register tag to the ascx page. Funny thing is that when I add the dnn:texteditor control takes in the HTML portion of the ascx page in VS.NET, the code-behind says that it too changed by showing an "*" next to the code behind name. However in the code behind, the te...

Problem Developing C# modules in DNN 4.0 -- C# and VB.NET files in App_Code folder
I recently installed DNN 4.0 to get familiar with all the new things involved, especially the new way modules are developed.  I used the source version of DNN 4.0, unzipped it into the proper folder, configured IIS, and had the basic site up and running.  I also had installed the templates to create DNN modules in Visual Studio .NET 2005.  When I tried creating a new C# DNN module, VS.NET created a module folder under App_Code and DesktopModules, as expected.  However, when I tried to build the web site, it complained that in the App_Code folder, there are .cs files and ....

Problem with DNN 3.0.11 and Documents Module Problem
Why is it that the Documents module title of the document must link to a image instead of the actual document download? This cases some confusion for those selecting the title to download the document. I dont think DNN2 did it this way. Shaan A bug has been entered for this. There are several problem with the documents module. Here is the threat that I was experiencing. Regards, Phebous... www.ricecheesesoftware.com...

Problem Installing Modules via install\module During DNN Install
I'm currently troubleshooting an install problem that is killing me since I do 3-5 installs of DNN per day.With v3.0.13 I had an 9 modules I placed in the install\module folder for automatic installation.  With v3.1 that number has increased to 25 (I'm not sure if the number has anything to do with it).When installing DNN v3.1, the install page lists all of the modules. EX:00:00:18.078 -   Installing Module File C:\hshome\jangles\bunstore.co.uk\Install\Module\Announcements_3.1.0.zip:00:00:19.218 -   Installing Module File C:\hshome\jangles\bunstore.co.uk\Install...

Problem In DotNetNuke[DNN]
hey frnds need help    i'm using DotNetNuke Content Manager n i face the problem when i make a new page when i fill up all the information n click on the update linkbutton it will raised JavaScript Error "WebForm_DoPostBackWithOptions is not defined"   so pls help me how can i slpve that problem....  Check the fourms at www.dotnetnuke.com. JeffPlease: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue....

More problems with my first dotnetnuke module build. Error when I try to load the module on the home page
Got past the module cache issue, now I have a problem displaying the module on the home page.  When I try to add it, I get this error.  What the heck is this all about?Unhandled error loading module.DotNetNuke.Services.Exceptions.ModuleLoadException: Parser Error: Could not load type '.ShoppingCart'. ---> System.Web.HttpParseException: Parser Error: Could not load type '.ShoppingCart'. ---> System.Web.HttpException: Could not load type '.ShoppingCart'. at System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase) at System.Web.UI.TemplateParser.ProcessMainDirec...

Dot Net Nuke (DNN)
Normal 0 false false false MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-b...

DNN module Mod problem..
Hey everyone, I need some help, im a bit new to DNN 2.0's Modues (well new to DNN frankly)... Im getting this ambiguous error in a Module i modded.. I didnt do too many mods and it did compile in VS2k3, and im pretty lost. I saw this thread (http://www.asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=615425) and it appreared he had a same problem, but said "it was the Ascx".. im just lost here and im not sure how to debug it.. heres my error.. ANy Help is welcomed. ------------------------------------------------------- DotNetNuke.ModuleLoadException: Unhandled Er...

Problem with DNN discussions module
For some implementations it would be nice to be able to allow unregistered viewers to comment on a site. So, in testing the discussions modules, I gave "All users" edit rights to the discussions module on my site, logged out, and tried making comments. Well, it creates the discussion table entries in the back end, but will not display those messages. In addition if the anonymous user is in the edit mode and clicks cancel, good 'ol 404 is encountered. Saved threads are not displayed on the page, but the thread icon is now a [+] indicating there are child objects (replies) to the ...

problems installing DNN on DiscountASP.NET
It works fine on local machine (I had to give full access to C:\DNN...) I'm preatty sure that SQL Connection string is OK. This is the error I'm getting:Method not found: Void DotNetNuke.Services.Log.EventLog.LogInfo.set_LogConfigID(System.String). An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [MissingMethodException: Method not found: Void DotNetNuke.Services.Log.EventLog.LogInfo.set_LogConfigID(System.St...

Net::LDAP::Constant module problem
Hi, I have a Linux RedHat 7.3 machine that I am trying to install the Netmeeting Directory Kit on (http://www.freesoft.org/software/NetMeeting/). I have installed the Berkeley 4.0.14 database and OpenLDAP 2.0.27. I am using Perl 5.6.1 with the LDAP module. While running the script nmaddentry I get the following message: ":all" is not exported by the Net::LDAP::Constant module at ./nmaddentry line 9 Can't continue after import errors at ./nmaddentry line 9 BEGIN failed--compilation aborted at ./nmaddentry line 9, <DATA> line 422. The first ten lines of ...

Datawindow.Net & Dotnetnuke (DNN)
Evaluating Datawindow.NET 2.0 trial version ..... Is anybody using it to develope Dotnetnuke modules? Is this even possible since DNN uses its own data access layer (DAL)? Thanks! Mel foothillgroup@yahoo.com If the DAL exposed datasets you'd be set. DataWindow.Net can still work with them. Unforunately, the DNN DAL uses ArrayLists, so until DataWindow.Net starts supporting object types for data, there's a mismatch. Fortunately, the DNN DAL isn't really a requirement for using DNN: http://www.dotnetnuke.com/Community/ForumsDotNetNuke/tabid/795/postid/26708/D...

Problem with .NET DataGrid in custom module
I'm working all one simple module called Products which simply display all the products in a table and let user add/edit/update products. I used the module template generated in VS2003 (downloaded from DNNJungle I think). In a file called Product.ascx, I put the following code: In Product.ascx.vb, I put the following code: The problem is, when I add the one ButtonColumn in into my DataGrid (let say Select button), the module will crash. If I remove it, the module works fine. Please help. Thank you very much in advance. I use the ButtonColumn in DataGrids with no problem on custom modules...

Problem with News Module, DNN 2
I've noticed that in in the news module, that it is no longer word wrapping long text in the descriptions . . . Was working great in the 1.x module - now it is not. The problem is it pushes the content in the right pane . . .sounds trivial, but a real pain! Any help would be appreciated! Jonathan MerrillCCA, MCP, NET+www.gomerrill.com Which news module?Modules, Skins & Skin Objects @ www.smcculloch.net The news module that comes with DNN2. I have it setup to pull from an external source - http://news.com.com/2547-1_3-0-20.xml It appears the description line is not word wr...

Web resources about - Problem with DNN Module - asp.net.dotnetnuke

Is–ought problem - Wikipedia, the free encyclopedia
The is–ought problem in meta-ethics as articulated by Scottish philosopher and historian David Hume (1711–76) is that many writers make claims ...


Sleeping in on weekends linked to health problems
... morning snoozes (however glorious they may be). Sleeping late on days-off—and other sleep-time adjustments—are linked to metabolic problems ...

Accenture is shaking up its 360,000-person workforce to try to fix its pay problem
... of the company's ongoing processes to identify potential pay discrepancies. Overall, Nanterme's philosophy is simple: " If we find a problem, ...

8 more years of leap-second problems loom; governments punt decision to 2023
Tick. Tick. Tick. Clang! That was the sound of an intergovernmental conference kicking the leap-second can down the road. Sysadmins will be dealing ...

Is Racism Against Whites As Big A Problem As It Is Against Blacks?
Is Racism Against Whites As Big A Problem As It Is Against Blacks?

10 Simple Techs to Tackle World Problems
Each year, the Tech Museum of Innovation recognizes innovators who are employing technology to solve the world's most pressing problems.

The prison-building simulator that makes you part of the problem
​It wasn't supposed to be this way. I started off with altruistic intentions. I was going to create a spacious, roomy penitentiary. I was going ...

How This Startup Solves Our Too-Much-Data Problem
Using lessons from quantum computing and music, Teraki claims to cut data torrents from our sensor-bedecked world by up to 90%. Smart thermostats ...

Apple Loop: iPad Pro Anger At Power Problems, Frustrating iPhone 6S Data Loss, Microsoft Storms iOS
This week’s Apple Loop includes data loss on the iPhone 6S, comparisons of the iPad Pro and the MacBook, more rumors on the iPhone 6C, a look ...

Resources last updated: 11/21/2015 1:54:08 AM