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 ForumsDocumentsDocumentsError when using CategoryError when using Category
Previous
 
Next
New Post
4/6/2011 5:25 PM
 
I just upgraded from DNN 5.6.1 to 5.6.2 and installed the Documents module 4.1.2 that comes with it. Everything worked fine until my client decided they wanted to use Categories. I get a number of errors.

First, when I save the Category List in the Host Lists section I get this error:

AssemblyVersion: 5.6.2
PortalID: 0
PortalName: The Client Inc.
UserID: 1
UserName: Super****
ActiveTabID: 33
ActiveTabName: Lists
RawURL: /~/Default.aspx?tabid=33&Key=:Evelyn%20Drive&portalid=0
AbsoluteURL: /~/Default.aspx
AbsoluteURLReferrer: http://client.com/Host/Lists/tabid/33/portalid/0/Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30729; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET4.0C; Tablet PC 2.0; .NET4.0E)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: b45c5127-75a2-48c7-921c-25d7b2770d88
InnerException: The file '/~/Default.aspx' does not exist.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.UI.Util.CheckVirtualFileExists
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: The file '/~/Default.aspx' does not exist. ---> System.Web.HttpException: The file '/~/Default.aspx' does not exist. at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --- End of inner exception stack trace ---

So, it seems the URL is not properly formed there. However, the List seems to have been created okay.
When I try to edit an item in the Documents module and assign it a Category from the list I get this error:

ModuleId: 441
ModuleDefId: 125
FriendlyName:
ModuleControlSource: DesktopModules/Documents/EditDocs.ascx
AssemblyVersion: 5.6.2
PortalID: 0
PortalName: The Client Inc.
UserID: 1
UserName: SuperTom
ActiveTabID: 75
ActiveTabName: Evelyn Drive
RawURL: /EvelynDrive/tabid/75/ctl/Edit/mid/441/ItemID/0/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://client.com/EvelynDrive/tabid/75/ctl/Edit/mid/441/ItemID/0/Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30729; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET4.0C; Tablet PC 2.0; .NET4.0E)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: ea72438c-558f-497e-816d-6b29f8c006b1
InnerException: Parameter count does not match Parameter Value count.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: Microsoft.ApplicationBlocks.Data.SqlHelper.AssignParameterValues
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Parameter count does not match Parameter Value count. ---> System.ArgumentException: Parameter count does not match Parameter Value count. at Microsoft.ApplicationBlocks.Data.SqlHelper.AssignParameterValues(SqlParameter[] commandParameters, Object[] parameterValues) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, String spName, Object[] parameterValues) at DotNetNuke.Modules.Documents.SqlDataProvider.UpdateDocument(Int32 moduleId, Int32 ItemId, String Title, String URL, Int32 UserId, Int32 OwnedByUserID, String Category, Int32 SortOrderIndex, String Description) at DotNetNuke.Modules.Documents.DocumentController.UpdateDocument(DocumentInfo objDocument) at DotNetNuke.Modules.Documents.EditDocs.Update(Boolean Override) --- End of inner exception stack trace ---

I thought it might be the list, so I created another one and got exactly the same results. Now I'm thinking that it might be because I put items in the Documents module without any Category specified (wasn't using it), and then after putting two items in, I enabled the Category list and put it in as a column. Then I tried to assign a Category to a Documents item.

Any ideas how to get this working?

 
New Post
4/6/2011 5:55 PM
 
I tried some tests on a test page, and it does not appear to be related to Categories afterall (I think).

I deleted all my Lists, put a Documents module on a test page, added one document. Then I edited that document, and without making any changes, simply clicked the Update link. I got the error:

ModuleId: 457
ModuleDefId: 125
FriendlyName:
ModuleControlSource: DesktopModules/Documents/EditDocs.ascx
AssemblyVersion: 5.6.2
PortalID: 0
PortalName: The Client Inc.
UserID: 1
UserName: SuperTom
ActiveTabID: 80
ActiveTabName: test
RawURL: /test/tabid/80/ctl/Edit/mid/457/ItemID/6/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://client.com/test/tabid/80/ctl/Edit/mid/457/ItemID/6/Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30729; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET4.0C; Tablet PC 2.0; .NET4.0E)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 67aad287-7f8f-4be1-93f2-9ef0a95baafd
InnerException: Parameter count does not match Parameter Value count.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: Microsoft.ApplicationBlocks.Data.SqlHelper.AssignParameterValues
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Parameter count does not match Parameter Value count. ---> System.ArgumentException: Parameter count does not match Parameter Value count. at Microsoft.ApplicationBlocks.Data.SqlHelper.AssignParameterValues(SqlParameter[] commandParameters, Object[] parameterValues) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, String spName, Object[] parameterValues) at DotNetNuke.Modules.Documents.SqlDataProvider.UpdateDocument(Int32 moduleId, Int32 ItemId, String Title, String URL, Int32 UserId, Int32 OwnedByUserID, String Category, Int32 SortOrderIndex, String Description) at DotNetNuke.Modules.Documents.DocumentController.UpdateDocument(DocumentInfo objDocument) at DotNetNuke.Modules.Documents.EditDocs.Update(Boolean Override) --- End of inner exception stack trace ---

I tried to edit a document on another site that I had also upgraded in the same way (but it was previously using Documents 4.0.0), and I was able to edit and update a document with no problem. It does not use Categories, however.

Any ideas?
 
New Post
4/8/2011 6:27 PM
 
Here's an update. I also found out that the Delete option in the module also causes this error, and so I can't delete a document from the list.
I looked through the database files to see if I could spot an inconsistency, but found none.
I un-installed the Documents module and all of its files; re-installed the new module again and found the exact same problem.

Last ditch effort, I un-installed the module and installed the old module, 4.1.0. Everything worked great.

That's what I'm delivering to the customer. It works. 4.1.2 seems not to work. That's my experience.
 
New Post
4/9/2011 4:48 AM
 
Are you using an objectQualifier? I see some changes in the dataprovider regarding dbo and objectqualifier handling.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/9/2011 5:20 AM
 
I noticed, there is a sqldataprovider file missing in manifest for 4.1.2 (which needs to be fixed)! Once you installed 4.1.0, upgrade from 4.1.0 to 4.1.2 should work as expected, previous versions need to be upgraded to 4.1.0 first.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsDocumentsDocumentsError when using CategoryError when using Category


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