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 ForumsForumForumPage Load ExceptionPage Load Exception
Previous
 
Next
New Post
5/25/2007 7:09 AM
 

AssemblyVersion: 04.03.06
PortalID: 0
PortalName: DNN Guru
UserID: -1
UserName:
ActiveTabID: 53
ActiveTabName: GURUS
RawURL: /DNNGURU/GURUS/tabid/53/Default.aspx
AbsoluteURL: /DNNGURU/Default.aspx
AbsoluteURLReferrer: http://69.93.233.32/DNNGURU/Home/tabid/36/Default.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 679fe816-6238-4a81-a7bf-aa056deffec4
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: .dnntspdresource.loadcategory
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 dnntspdresource.loadcategory(Int32 categoryid) at dnntspdresource.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
Server Name: SERVER2

 

I don't know why this is happening I have made this Module in DNN3 and now when i am running it into DNN4 sometimes it gives this error but when clicking again on same it shows result it is very strange

Please help me as i am having my DeadLine over my head

 
New Post
5/27/2007 12:02 PM
 

That doesn't seem to be a forum problem, I would look at someting you have using categories.

 


Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
New Post
5/28/2007 8:50 AM
 

Hi Crispy,

Thanks   i solved this Problem it was not in categories.

i replace my Dataprovider.vb function and now its working but i didn't figure out what was the problem

here is function which i replaced

Public Shared Shadows Function Instance() As DataProvider
            Dim strCacheKey As String = [NameSpace] & "." & [ProviderType] & "provider"

            ' Use the cache because the reflection used later is expensive
            Dim cache As System.Web.Caching.Cache = System.Web.HttpContext.Current.Cache

            If cache(strCacheKey) Is Nothing Then

                ' Get the provider PDConfiguration based on the type
                Dim objProviderKBConfiguration As DotNetNuke.Framework.Providers.ProviderConfiguration = DotNetNuke.Framework.Providers.ProviderConfiguration.GetProviderConfiguration([ProviderType])

                Try

                    ' Override the typename if a ProviderName is specified ( this allows the application to load a different DataProvider assembly for custom modules )
                    Dim strTypeName As String = [NameSpace] & "." & objProviderKBConfiguration.DefaultProvider & "," & [AssemblyName] & "." & objProviderKBConfiguration.DefaultProvider

                    ' Use reflection to store the constructor of the class that implements DataProvider
                    Dim t As Type = Type.GetType(strTypeName, True)

                    ' Insert the type into the cache
                    cache.Insert(strCacheKey, t.GetConstructor(System.Type.EmptyTypes))

                Catch e As Exception
                    Throw e
                End Try
            End If

            Return CType(CType(cache(strCacheKey), ConstructorInfo).Invoke(Nothing), DataProvider)
        End Function

 

Now i am using this function

 

 

' singleton reference to the instantiated object

 

Private Shared objProvider As DataProvider = Nothing

 

' constructor

 

CreateProvider()

 

Shared Sub New()End Sub

 

' dynamically create provider

 

objProvider =

 

Private Shared Sub CreateProvider()CType(Framework.Reflection.CreateObject("data", "PowerDirectory.Data", "PowerDirectory"), DataProvider)End Sub

 

' return the provider

 

 

 

Public Shared Shadows Function Instance() As DataProviderReturn objProviderEnd Function

 

 

 

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumPage Load ExceptionPage Load Exception


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