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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Error when uninstall module!Error when uninstall module!
Previous
 
Next
New Post
8/3/2009 11:28 PM
 

Hey everyone!

I just create new module and then I register module for my site. But when I uninstall I receive an error like this:

Package Uninstall Logs
 
Info Reading Component Manifest - Script
Info Reading Component Manifest - Module
Info Module Manifest read successfully
Info Reading Component Manifest - Assembly
Info Reading Component Manifest - File
StartJob Starting Package Uninstall
Info Starting Package Uninstall - ModuleName1Au0309
Info Starting Component Uninstall - Script
Info Begin Sql UnInstall
Info Executing Uninstall.SqlDataProvider
Info Start Sql execution: Uninstall.SqlDataProvider file
Failure SQL Execution resulted in following Exceptions: System.Data.SqlClient.SqlException: 'FK_ModuleName1Au0309_Modules' is not a constraint. Could not drop constraint. See previous errors. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) /************************************************************/ /***** SqlDataProvider *****/ /***** *****/ /***** *****/ /***** Note: To manually execute this script you must *****/ /***** perform a search and replace operation *****/ /***** for dbo. and *****/ /***** *****/ /************************************************************/ /** Drop FAQs Table **/ ALTER TABLE dbo.[YourCompany_ModuleName1Au0309] DROP CONSTRAINT [FK_ModuleName1Au0309_Modules]
Info End Sql execution: Uninstall.SqlDataProvider file
Info End Sql UnInstall
Info Component uninstalled successfully - Script
Warning Component Uninstalled with Warnings - Script
Info Starting Component Uninstall - Module
Info Module un-registered successfully - ModuleName1Au0309
Info Component uninstalled successfully - Module
Info Component Uninstall Successful - Module
Info Starting Component Uninstall - Assembly
Info Assembly unregistered - bin\ModuleName1Au0309.dll
Info Component uninstalled successfully - Assembly
Info Component Uninstall Successful - Assembly
Info Starting Component Uninstall - File
Info Component uninstalled successfully - File
Info Component Uninstall Successful - File
Warning Uninstalled with Warnings - ModuleName1Au0309
EndJob Uninstalled with Warnings

Any solution for this trouble? Thanks!

 
New Post
8/4/2009 1:16 AM
 

You have bad SQL scripts, you'll need to update them to run properly.

try manually running the uninstall.sqldataprovider to test it out first. Backup your DB before you do that.


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
8/6/2009 11:57 AM
 

It is true that your script is bad.  Problem is, it may be the DotNetNuke Complied Module template that gave you the bad script.  I am having same issue, so I looked at the 01.00.00.SqlDataProvider and Uninstall.SqlDataProvider files that are in the actual template, and they are'nt compatible in how they expect the Foreign Key to be named in the default table that is to be created.

01.00.00.SqlDataProvider: [FK_{objectQualifier}$YourCompany$_$safeprojectname$_{objectQualifier}Modules]

Uninstall.SqlDataProvider: [FK_{objectQualifier}$safeprojectname$_{objectQualifier}Modules]

Notice that Uninstall.SqlDataProvider is missing "$YourCompany$_" in there.  Not too hard to fix though.  Each time you create a new project with this template, go right into the Uninstall.SqlDataProvider file and fix it.  As a mid-term solution, you could edit the template itself to fix this.  As a long-term solution, DNN team should fix the template.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Error when uninstall module!Error when uninstall module!


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