An item with the same key has already been added.
The error was only on one of our report servers. Restarting the report server service fixed the issue.
This posting is provided "AS IS" with no warranties. Use code at your own risk.
An item with the same key has already been added.
The identity of application pool WhouseAppPool is invalid. The user name or password that is specified for the identity may be incorrect, or the user may not have batch logon rights. If the identity is not corrected, the application pool will be disabled when the application pool receives its first request. If batch logon rights are causing the problem, the identity in the IIS configuration store must be changed after rights have been granted before Windows Process Activation Service (WAS) can retry the logon. If the identity remains invalid after the first request for the application pool is processed, the application pool will be disabled. The data field contains the error number.
Application pool WhouseAppPool has been disabled. Windows Process Activation Service (WAS) did not create a worker process to serve the application pool because the application pool identity is invalid.
Application pool WhouseAppPool has been disabled. Windows Process Activation Service (WAS) encountered a failure when it started a worker process to serve the application pool.
static void ExportAllProjects(Args _args)
{
ProjectNode sharedProject = Infolog.projectRootNode().AOTfindChild("Shared");
TreeNodeIterator treeIterator;
TreeNode childNode;
str folderPath = @"C:\\AXProjects\\";
str folderName;
System.DateTime dateTime = DateTimeUtil::newDateTime(systemDateGet(), timeNow());
void exportProject(TreeNode _projectNode)
{
FileIoPermission perm;
str exportFileName;
if(_projectNode != null)
{
exportFileName = folderPath + folderName + "\\" + _projectNode.AOTname() + ".xpo";
perm = new FileIoPermission(exportFileName, "W");
perm.assert();
_projectNode.treeNodeExport(exportFileName);
CodeAccessPermission::revertAssert();
}
}
folderName = dateTime.ToString("yyyyMMdd_HHmmss");
if(sharedProject)
{
treeIterator = sharedProject.AOTiterator();
if(treeIterator)
{
if(!WinAPI::pathExists(folderPath + folderName))
{
info(strFmt('Creating the folder %1', folderPath + folderName));
WinAPI::createDirectoryPath(folderPath + folderName);
}
childNode = treeIterator.next();
while (childNode)
{
info(strFmt('Exporting %1', childNode.AOTname()));
exportProject(childNode);
childNode = treeIterator.next();
}
}
sharedProject.treeNodeRelease();
}
}
1:AX6AOS1:AOS60$01
2:AX6AOS2:AOS60$01
3:AX6AOS3:AOS60$01
AOSNAME:AxTest
DATABASESERVER:SQL2008\SQL2008
DATABASENAME:AxaptaDB
IMPORTMODELSTOREFILENAME:AX6AOS01.axmodelstore
EXPORTMODELSTOREFILENAME1:AX6AOS1_AxTest
EXPORTMODELSTOREFILENAME2:.axmodelstore
TEMPSCHEMANAME:AXTempSchema