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 ForumsBlogBlogBlog 4.0 Tag links wrong?Blog 4.0 Tag links wrong?
Previous
 
Next
New Post
5/26/2010 8:25 AM
 
Hello

On this website (Dnn5.2.3) i have a Blog (v.4.0.0) module and a Tag list. If i click on one of the tags logged in as a host i get this error:

DotNetNuke.Services.Exceptions.ModuleLoadException: The stored procedure 'dbo.Blog_GetTag' doesn't exist. ---> System.InvalidOperationException: The stored procedure 'dbo.Blog_GetTag' doesn't exist. at System.Data.SqlClient.SqlCommand.DeriveParameters() at System.Data.SqlClient.SqlCommandBuilder.DeriveParameters(SqlCommand command) at Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.DiscoverSpParameterSet(SqlConnection connection, String spName, Boolean includeReturnValueParameter, Object[] parameterValues) at Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSetInternal(SqlConnection connection, String spName, Boolean includeReturnValueParameter) at Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSet(String connectionString, String spName, Boolean includeReturnValueParameter) at Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSet(String connectionString, String spName) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, String spName, Object[] parameterValues) at DotNetNuke.Modules.Blog.Data.SqlDataProvider.GetTag(Int32 TagID) at DotNetNuke.Modules.Blog.Business.TagController.GetTag(Int32 TagID) at DotNetNuke.Modules.Blog.ViewBlog.Page_Load(Object sender, EventArgs e) ---

If i look at a link to one of the blogentries, it looks like this: http://njhvidberg.dk/Bloggen/tabid/213/EntryId/12/Harzen-klatring-i-weekenden-22-5-til-24-5.aspx
You can see there is a .../EntryId/12/... in it.
If i look at one of the taglinks, it looks like this: http://njhvidberg.dk/Bloggen/tabid/213/tagid/56/Harzen.aspx
You can see it has a .../tagid/56/... in it.

Why is the taglinks not working? I have tried to 'fumble around' with SEO and cache settings and tried to delete the taglist and create a new one.

Niels-Jørgen Hvidberg http://newcomtech.dk http://njhvidberg.dk
 
New Post
5/26/2010 10:25 AM
 
Niels, The error says it all. There is a missing stored procedure in your database called 'dbo.Blog_GetTag'. I am not sure what version of the module you are using, but I suggest re-installing the LATEST version of the blog module, then check the database to see if that sproc is present. Hope this helps.

Maxiom TechnologyAntonio Chagoury | Microsoft MVP
Maxiom Technology
Professional .net & DotNetNuke Solutions
web: www.maxiomtech.com
blog: www.cto20.com
twitter: @antoniochagoury & @maxiomtech

 
New Post
5/27/2010 4:27 PM
 
Aha!
yes, i tried to install the Blog 4.0.0 again, but there was not any dbo.Blog_GetTag StoredProcedure installed. So i traced the file "04.00.00.SqlDataProvider" from the DesktopModules\Blog\_Installation\SQL library.

In the bottom i found this sql script:

if exists (select * from dbo.sysobjects where id = object_id(N'{databaseOwner}{objectQualifier}Blog_GetTag') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure {databaseOwner}{objectQualifier}Blog_GetTag
GO
CREATE PROCEDURE {databaseOwner}{objectQualifier}Blog_GetTag
    @TagID int
AS
select t.*
from {databaseOwner}{objectQualifier}Blog_tags t
where t.TagID = @TagID
GO
By some unknown reason this code does not work, so i rewrote it and ran this script, which created the StoredProcedure and the tag links work fine now.

CREATE PROCEDURE dbo.Blog_GetTag
    @TagID int
AS
select t.*
from dbo.Blog_tags t
where t.TagID = @TagID
GO
Thanks for your 'eagle eyes' that spotted the error :-)

Niels-Jørgen Hvidberg http://newcomtech.dk http://njhvidberg.dk
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsBlogBlogBlog 4.0 Tag links wrong?Blog 4.0 Tag links wrong?


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