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 ForumsLinksLinksCannot delete a link (Cannot delete a link (
Previous
 
Next
New Post
8/16/2007 7:09 PM
 

I am running DNN v4.5.1 with Links v3.0.7

When I login as 'admin' and try to delete a link (e.g. the "Croydon Christian Church" link on website:  www.frostbyte.com.au) at get an error:

Error: Edit Links is currently unavailable

If I then login as 'host' and try to perform the same function I get the following error display:

Error: Edit Links is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: The stored procedure 'dbo.DeleteLink' doesn't exist. ---> System.InvalidOperationException: The stored procedure 'dbo.DeleteLink' 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.ExecuteNonQuery(String connectionString, String spName, Object[] parameterValues) at DotNetNuke.Modules.Links.SqlDataProvider.DeleteLink(Int32 ItemId, Int32 ModuleId) at DotNetNuke.Modules.Links.EditLinks.cmdDelete_Click(Object sender, EventArgs e) --- End of inner exception stack trace ---

The detailed error message seems pretty clear ... I can confirm that there is no stored procedure dbo.DeleteLink in the SQL database ... can you shed any light on "why" this is so?

Thanks for any help,

Steve.

 
New Post
8/16/2007 7:32 PM
 

Minor typo above ... Links module is of course v3.3.7

 
New Post
8/16/2007 7:39 PM
 

Hmmm. Weird. We have another server also running DNN 4.5.1 which was upgraded the same day and by the same person that upgraded the one I've mentioned above.  The other server does have a dbo.DeleteLink stored procedure, as follows:

************************************************************/
/*****              SqlDataProvider                     *****/
/*****                                                  *****/
/*****                                                  *****/
/***** Note: To manually execute this script you must   *****/
/*****       perform a search and replace operation     *****/
/*****       for dbo. and   *****/
/*****                                                  *****/
/************************************************************/

/** Change the procedure to allow for ModuleID to be passed in. **/
CREATE procedure dbo.DeleteLink

 @ItemId int,
 @ModuleId int

as

delete
from dbo.Links
where  ItemID = @ItemId AND ModuleID = @ModuleId
GO

So is this fix going to be as simple as creating the SP with the code I've posted above?  I have just enough knowhow to be dangerous, but should be able to manage this if its the right way out of the situation.

Of course, now I'm starting to wonder whether there are OTHER sp's which might be missing after the upgrade ....

 
New Post
8/16/2007 7:46 PM
 

... and to answer my own question ... having engaged the assistance of some of our I.T. people ... yes, I've been able to create the dbo.DeleteLink stored procedure by copying the one from the other DNN installation ... and yes, that's fixed the problem.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsLinksLinksCannot delete a link (Cannot delete a link (


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