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

HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Re: DNN 6 Upgrade -- An error has occurred. Re: DNN 6 Upgrade -- An error has occurred.
Previous
 
Next
New Post
7/21/2011 12:30 PM
 
i also got an error from going 5.6.3 to 6.0

System.Data.SqlClient.SqlException: There is already an object named 'FK_Files_Folders' in the database. Could not create constraint. See previous errors. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection. (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) ALTER TABLE usrcafc30bc7cdb565a31c79812c8a19ef2.[Files] ADD CONSTRAINT [FK_Files_Portals] FOREIGN KEY ([PortalId]) REFERENCES usrcafc30bc7cdb565a31c79812c8a19ef2.[Portals] ([PortalID]), CONSTRAINT [FK_Files_Folders] FOREIGN KEY ([FolderID]) REFERENCES usrcafc30bc7cdb565a31c79812c8a19ef2.[Folders] ([FolderID]) ON DELETE CASCADE

[MODERATOR's NOTE: Mark, I split this post into a new thread as it was not related to the thread to which you had posted. Bill S]


http://shop.smallinternetsolutions.com
UNLIMITED HOSTING for less...
Windows Hosting Starting at $3.95/mo
 
New Post
7/21/2011 2:09 PM
 
Mark: I am a bit surprised to see this error as right before we create the constraints,  we have statements to drop them first. Did you have any other errors in Website\Providers\DataProviders\SqlDataProvider\*.resources file?

Ash Prasad
Director of Engineering
DNN Corp.
 
New Post
7/21/2011 2:47 PM
 
none that i can see just that one.  All other upgrade went smoothly...



i did find this in the event logs:

AssemblyVersion: 5.6.3

PortalID: -1

PortalName:

UserID: -1

UserName:

ActiveTabID: -1

ActiveTabName:

RawURL: /home/Install/Install.aspx?mode=upgrade

AbsoluteURL: /home/Install/Install.aspx

AbsoluteURLReferrer:

UserAgent: Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0

DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider

ExceptionGUID: 5b9f195a-a744-401e-8e46-3ee474c0572c

InnerException: Could not find file 'D:\inetpub\vhosts\smallinternetsolutions.com\subdomains\web\httpdocs\Default.aspx'.

FileName:

FileLineNumber: 0

FileColumnNumber: 0

Method: System.IO.__Error.WinIOError

StackTrace:

Message: System.IO.FileNotFoundException: Could not find file 'D:\inetpub\vhosts\smallinternetsolutions.com\subdomains\web\httpdocs\Default.aspx'. File name: 'D:\inetpub\vhosts\smallinternetsolutions.com\subdomains\web\httpdocs\Default.aspx' at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileInfo.get_Length() at DotNetNuke.Services.Upgrade.Upgrade.UpgradeApplication()

Source:

Server Name: PLESK-WEB1


http://shop.smallinternetsolutions.com
UNLIMITED HOSTING for less...
Windows Hosting Starting at $3.95/mo
 
New Post
7/21/2011 4:50 PM
 
You could run the query below to ensure that the constraint is present, then you can ignore the error:

select Referencing_Object_name, referencing_column_Name, Referenced_Object_name, Referenced_Column_Name from
(select Referenced_Column_Name = c.name, Referenced_Object_name = o.name, f.constid from sysforeignkeys f, sysobjects o, syscolumns c
where (f.rkeyid = o.id) and c.id = o.id and c.colid = f.rkey) r,
(select referencing_column_Name = c.name, Referencing_Object_name = o.name, f.constid from sysforeignkeys f, sysobjects o, syscolumns c
where (f.fkeyid = o.id) and c.id = o.id and c.colid = f.fkey) f
where r.Referenced_Column_Name = f.referencing_column_Name
and r.constid = f.constid
and Referenced_Column_Name = 'FolderId' and Referenced_Object_Name = 'Folders'
order by f.Referencing_Object_name

In my test environment, I get two records back:
Files FolderID Folders FolderID
FolderPermission FolderID Folders FolderID

Note: This query does not make any data changes or has any adverse impact on performance. 

Ash Prasad
Director of Engineering
DNN Corp.
 
New Post
7/21/2011 9:26 PM
 
ok this is what i got back.

Referencing_Object_name referencing_column_Name Referenced_Object_name Referenced_Column_Name
Files FolderID Folders FolderID
FolderPermission FolderID Folders FolderID

http://shop.smallinternetsolutions.com
UNLIMITED HOSTING for less...
Windows Hosting Starting at $3.95/mo
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Re: DNN 6 Upgrade -- An error has occurred. Re: DNN 6 Upgrade -- An error has occurred.


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