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