Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Links Module [L...  Cannot delete a link (
Previous Previous
 
Next Next
New Post 8/16/2007 4:09 PM
User is offline Frosty
5 posts
10th Ranked


Cannot delete a link ( 

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 4:32 PM
User is offline Frosty
5 posts
10th Ranked


Re: Cannot delete a link ( 

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

 
New Post 8/16/2007 4:39 PM
User is offline Frosty
5 posts
10th Ranked


Re: Cannot delete a link ( 

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 4:46 PM
User is offline Frosty
5 posts
10th Ranked


Re: Cannot delete a link ( 

... 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 Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Links Module [L...  Cannot delete a link (
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Viva Portals, L.L.C.
Expert module development and graphic design.
www.continure.com
DNN Photo Gallery
DNN Photo Gallery is a truly unique photo management module released January 1st 2006. With DNN Photo Gallery you can REALLY integrate images into your existing portal and make them look like they were designed for your site.
DNN Photo Gallery
Swirlhost Inc.
Affordable DotNetNuke Hosting, Skin Development, Custom Module Development, and DotNetNuke Consulting. We will install your preference of DNN and now host with us and get a free license for the Swirl AJAX Chatroom Module.
www.swirlhost.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP