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 ForumsDocumentsDocumentsDocuments is currently unavailable.Documents is currently unavailable.
Previous
 
Next
New Post
9/28/2007 3:46 PM
 

 

Hi,

  I am using dotnetnuke 4.6 and have installed the source of the documents module by converting it to a VS2005 Web application project using the steps in the following link:

http://dnnla.nesinteractivos.com/DNNLibrary/tabid/88/TID/13/cid/12/Default.aspx

I am able to build the project and add it in my portal. But i want to make a change to the documents module in which the list of uploaded documents show up in the page based on the users who uploaded it. For example if user A uploades document D1 and B uploads D2, A can only see D1 in the list and B can see only D2. I made the change and built the project. I modified the SP getDocuments as well. Everything build fine. But once i refresh the dotnetnuke webpage, i get the following error. Can someone help me out in this regard.

Error: Documents is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: The type initializer for 'DotNetNuke.Modules.Documents.DataProvider' threw an exception. ---> System.TypeInitializationException: The type initializer for 'DotNetNuke.Modules.Documents.DataProvider' threw an exception. ---> System.ArgumentNullException: Value cannot be null. Parameter name: type at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Activator.CreateInstance(Type type) at DotNetNuke.Framework.Reflection.CreateObject(String TypeName, String CacheKey, Boolean UseCache) at DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, String ObjectProviderName, String ObjectNamespace, String ObjectAssemblyName, Boolean UseCache) at DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, String ObjectNamespace, String ObjectAssemblyName) at DotNetNuke.Modules.Documents.DataProvider.CreateProvider() in C:\Projects\DotNetNuke_04.06.00_Source\Website\DesktopModules\Documents\DataProvider.vb:line 52 at DotNetNuke.Modules.Documents.DataProvider..cctor() in C:\Projects\DotNetNuke_04.06.00_Source\Website\DesktopModules\Documents\DataProvider.vb:line 47 --- End of inner exception stack trace --- at DotNetNuke.Modules.Documents.DataProvider.Instance() at DotNetNuke.Modules.Documents.DocumentController.GetDocumentsSettings(Int32 ModuleId) in C:\Projects\DotNetNuke_04.06.00_Source\Website\DesktopModules\Documents\DocumentController.vb:line 91 at DotNetNuke.Modules.Documents.Document.LoadSettings() in C:\Projects\DotNetNuke_04.06.00_Source\Website\DesktopModules\Documents\Document.ascx.vb:line 362 at DotNetNuke.Modules.Documents.Document.Page_Load(Object sender, EventArgs e) in C:\Projects\DotNetNuke_04.06.00_Source\Website\DesktopModules\Documents\Document.ascx.vb:line 72 --- End of inner exception stack trace ---

 

Thanx,

Subrajit

 
New Post
10/7/2007 6:47 PM
 

I believe I did the exact same thing you did over the weekend.  I wanted to make some changes to the module, so I thought a good place to start would be to upgrade the documents module to asp.net 2.0.  What resolved my error was a modification to the "dataprovider.vb" file in the "app_code\documents" folder.

Change the following line from:
        Private Shared Sub CreateProvider()
            objProvider = CType(Framework.Reflection.CreateObject("data", "DotNetNuke.Modules.Documents", "DotNetNuke.Modules.Documents"), DataProvider)
        End Sub

to

        Private Shared Sub CreateProvider()
            objProvider = CType(Framework.Reflection.CreateObject("data", "DotNetNuke.Modules.Documents", ""), DataProvider)
        End Sub

I'm not quote sure why that resolved the issue, but I guess the "DotNetNuke.Modules.Documents" assembly need not be referenced with the DataProvider.

 

 


http://www.idsconsulting.com Ideas, Design, Success.
 
New Post
10/7/2007 7:34 PM
 

I believe I did the exact same thing you did over the weekend.  I wanted to make some changes to the module, so I thought a good place to start would be to upgrade the documents module to asp.net 2.0.  What resolved my error was a modification to the "dataprovider.vb" file in the "app_code\documents" folder.

Change the following line from:
        Private Shared Sub CreateProvider()
            objProvider = CType(Framework.Reflection.CreateObject("data", "DotNetNuke.Modules.Documents", "DotNetNuke.Modules.Documents"), DataProvider)
        End Sub

to

        Private Shared Sub CreateProvider()
            objProvider = CType(Framework.Reflection.CreateObject("data", "DotNetNuke.Modules.Documents", ""), DataProvider)
        End Sub

I'm not quote sure why that resolved the issue, but I guess the "DotNetNuke.Modules.Documents" assembly need not be referenced with the DataProvider.

 

 


http://www.idsconsulting.com Ideas, Design, Success.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsDocumentsDocumentsDocuments is currently unavailable.Documents is currently unavailable.


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