https://dotnetnuke.svn.codeplex.com/svn/Trunk/Library/Services/Upgrade/Upgrade.vb
That shows you the source code and you can see this is the method that is failing:
Private
Shared
Sub
UpgradeToVersion_530()
Dim
ModuleDefID
As
Integer
'update languages module
ModuleDefID = GetModuleDefinition(
"Languages"
,
"Languages"
)
RemoveModuleControl(ModuleDefID,
""
)
AddModuleControl(ModuleDefID,
""
,
""
,
"DesktopModules/Admin/Languages/languageEnabler.ascx"
,
"~/images/icon_language_32px.gif"
, SecurityAccessLevel.View, 0,
""
,
True
)
AddModuleControl(ModuleDefID,
"Editor"
,
""
,
"DesktopModules/Admin/Languages/languageeditor.ascx"
,
"~/images/icon_language_32px.gif"
, SecurityAccessLevel.View, 0)
'Add new View Profile module
ModuleDefID = AddModuleDefinition(
"ViewProfile"
,
""
,
"ViewProfile"
,
False
,
False
)
AddModuleControl(ModuleDefID,
""
,
""
,
"DesktopModules/Admin/ViewProfile/ViewProfile.ascx"
,
"~/images/icon_profile_32px.gif"
, SecurityAccessLevel.View, 0)
AddModuleControl(ModuleDefID,
"Settings"
,
"Settings"
,
"DesktopModules/Admin/ViewProfile/Settings.ascx"
,
"~/images/icon_profile_32px.gif"
, SecurityAccessLevel.Edit, 0)
'Add new Sitemap settings module
ModuleDefID = AddModuleDefinition(
"Sitemap"
,
""
,
"Sitemap"
,
False
,
False
)
AddModuleControl(ModuleDefID,
""
,
""
,
"DesktopModules/Admin/Sitemap/SitemapSettings.ascx"
,
"~/images/icon_analytics_32px.gif"
, SecurityAccessLevel.View, 0)
AddAdminPages(
"Search Engine Sitemap"
,
"Configure the sitemap for submission to common search engines."
,
"~/images/icon_analytics_16px.gif"
,
"~/images/icon_analytics_32px.gif"
,
True
, ModuleDefID,
"Search Engine Sitemap"
,
"~/images/icon_analytics_32px.gif"
)
'Add new Photo Profile field to Host
Dim
objListController
As
New
ListController
Dim
dataTypes
As
ListEntryInfoCollection = objListController.GetListEntryInfoCollection(
"DataType"
)
Dim
properties
As
ProfilePropertyDefinitionCollection = ProfileController.GetPropertyDefinitionsByPortal(Null.NullInteger)
ProfileController.AddDefaultDefinition(Null.NullInteger,
"Preferences"
,
"Photo"
,
"Image"
, 0, properties.Count * 2 + 2, UserVisibilityMode.AllUsers, dataTypes)
Dim
strInstallTemplateFile
As
String
=
String
.Format(
"{0}Template\UserProfile.page.template"
, InstallMapPath)
Dim
strHostTemplateFile
As
String
=
String
.Format(
"{0}Templates\UserProfile.page.template"
, HostMapPath)
If
File.Exists(strInstallTemplateFile)
Then
If
Not
File.Exists(strHostTemplateFile)
Then
File.Copy(strInstallTemplateFile, strHostTemplateFile)
End
If
End
If
If
File.Exists(strHostTemplateFile)
Then
Dim
tabController
As
New
TabController()
Dim
objPortals
As
New
PortalController
Dim
arrPortals
As
ArrayList = objPortals.GetPortals
For
Each
objPortal
As
PortalInfo
In
arrPortals
properties = ProfileController.GetPropertyDefinitionsByPortal(objPortal.PortalID)
'Add new Photo Profile field to Portal
ProfileController.AddDefaultDefinition(objPortal.PortalID,
"Preferences"
,
"Photo"
,
"Image"
, 0, properties.Count * 2 + 2, UserVisibilityMode.AllUsers, dataTypes)
'Rename old Default Page template
Dim
DefaultPageTemplatePath
As
String
=
String
.Format(
"{0}Templates\Default.page.template"
, objPortal.HomeDirectoryMapPath)
If
File.Exists(DefaultPageTemplatePath)
Then
File.Move(DefaultPageTemplatePath,
String
.Format(
"{0}Templates\Default_old.page.template"
, objPortal.HomeDirectoryMapPath))
'Update Default profile template in every portal
objPortals.CopyPageTemplate(
"Default.page.template"
, objPortal.HomeDirectoryMapPath)
'Synchronize the Templates folder to ensure the templates are accessible
FileSystemUtils.SynchronizeFolder(objPortal.PortalID,
String
.Format(
"{0}Templates\", objPortal.HomeDirectoryMapPath), "
Templates/",
False
,
True
,
True
,
False
)
Dim
xmlDoc
As
New
XmlDocument
Try
' open the XML file
xmlDoc.Load(strHostTemplateFile)
Catch
ex
As
Exception
LogException(ex)
End
Try
Dim
userTabNode
As
XmlNode = xmlDoc.SelectSingleNode(
"//portal/tabs/tab"
)
Dim
tabName
As
String
= XmlUtils.GetNodeValue(userTabNode,
"name"
)
Dim
userTab
As
TabInfo = tabController.GetTabByName(tabName, objPortal.PortalID)
If
userTab
Is
Nothing
Then
userTab = tabController.DeserializeTab(userTabNode,
Nothing
, objPortal.PortalID, PortalTemplateModuleAction.Merge)
tabController.DeserializePanes(userTabNode.SelectSingleNode(
"panes"
), userTab.PortalID, userTab.TabID, PortalTemplateModuleAction.Ignore,
New
Hashtable)
End
If
'Update SiteSettings to point to the new page
If
objPortal.UserTabId > Null.NullInteger
Then
objPortal.RegisterTabId = objPortal.UserTabId
Else
objPortal.UserTabId = userTab.TabID
End
If
objPortals.UpdatePortalInfo(objPortal)
'Add Users folder to every portal
Dim
strUsersFolder
As
String
=
String
.Format(
"{0}Users\"
, objPortal.HomeDirectoryMapPath)
If
Not
Directory.Exists(strUsersFolder)
Then
'Create Users folder
Directory.CreateDirectory(strUsersFolder)
'Synchronize the Users folder to ensure the user folder is accessible
FileSystemUtils.SynchronizeFolder(objPortal.PortalID, strUsersFolder,
"Users/"
,
False
,
True
,
True
,
False
)
End
If
Next
End
If
AddEventQueue_Application_Start_FirstRequest()
'Change Key for Module Defintions
ModuleDefID = GetModuleDefinition(
"Extensions"
,
"Extensions"
)
RemoveModuleControl(ModuleDefID,
"ImportModuleDefinition"
)
AddModuleControl(ModuleDefID,
"EditModuleDefinition"
,
"Edit Module Definition"
,
"DesktopModules/Admin/Extensions/Editors/EditModuleDefinition.ascx"
,
"~/images/icon_extensions_32px.gif"
, SecurityAccessLevel.Host, 0)
'Module was incorrectly assigned as "IsPremium=False"
RemoveModuleFromPortals(
"Users And Roles"
)
End
Sub
Error: Cannot create a file when that file already exists.
at DotNetNuke.Services.Upgrade.Upgrade.UpgradeApplication(String strProviderPath, Version version, Boolean writeFeedback)
perhaps there are clues. I don't know...