ALM Service Configuration Editor Error "The 'DbProviderFactories' section can only appear once per config file"
searchcancel
ALM Service Configuration Editor Error "The 'DbProviderFactories' section can only appear once per config file"
book
Article ID: 4277
calendar_today
Updated On: 07-26-2024
Products
CA Agile Requirements Designer
Issue/Introduction
You get the following error message when starting the ALM Service:
Unhandled exception has occurred in your application.
If you click Continue, the application will ignore the error and attempt to continue.
If you click Quit, the application will close immediately.
The 'DbProviderFactories' section can only appear once per config file.
Environment
Release : All releases
Component : CA Agile Requirements Designer - Agile Designer GTHPALMService- HP ALM Service
Cause
This error occurs when the line 'DbProviderFactories' appears twice in your Microsoft.NET configuration file. Your ALM Group Policies need to be configured properly.
Resolution
Remove the DbProviderFactories mentioned in the error message:
Go to C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config
Open machine.config in Notepad++ or a text editor of your choice.
Search for 'DbProviderFactories'.
Click the 'Next' button twice on the Find window.
Take a backup (copy/paste into another file) of this 3rd DbProviderFactories mentioned (line 158 typically).
Now delete this line because it has nothing in it but <DbProviderFactories/>.
Re-Start ALM Connection:
Go to C:\Grid-Tools\GTHPALMService\GTHPALMService_ConfigEditor
Open the ALMServiceConfigEditor.exe.
On the Connection String tab, click the 'Verify' button.
You should get a 'Connection opened successfully' message.
Check Group Policy Status:
Go to the 'Status' tab in the config editor.
Click the 'Get Task Status' button. You will most likely receive the message 'GT ALMService is currently: Unknown'. This means we will need to enable this and start the service now.
Click the 'Create Task' button.
Enter the username and password you would use to create Windows task. You might need administrator access. This information should be the domain name/username and password.
Click the 'Check Group Policy Status' button. You will most likely receive the error message 'Setting is not enabled for group policy- Do not forcefully unload the user's registry at user logoff'. This means we will have to enable the group policy status now.
Enable the Group Policy Status:
Open a Windows command prompt.
Type gpedit.msc and hit enter.
In the Local Group Policy Editor that opens, go to 'Computer Configuration'.
Click on 'Administrator Templates'.
Click on 'System'.
Click on 'User Profile'.
Double-click on 'Do not forcefully unload the user's registry at logoff'.
Click the radio button for 'Enabled'.
Click the 'Apply' button.
Click the 'OK' button.
Check Group Policy Status: (again)
Go to C:\Grid-Tools\GTHPALMService\GTHPALMService_ConfigEditor
Open ALMServiceConfigEditor.exe
Go to the 'Status' tab in the config editor.
Click the 'Check Group Policy Status' button.
Now we should receive the message 'Group Policy settings verified'. This means the group policy settings are enabled.
Start ALM Service:
Click the 'Start Service' button. This is a service task in Windows.
Click the 'Get Service Status' button. You should receive the message 'GT ALM Service is running'.
Verify the service is started by going to the log files at C:\Grid-Tools\GTHPALMService\logs\alm-(date).log
Connect to ALM Connectors in Agile Designer:
Launch Agile Designer.
In the left-hand pane, click the 'Connectors' option.
Choose 'GT HP ALM Service' option.
In the 'Connectors Dock' on the right hand pane, click on the 'Login' button.
In the 'Login to ALM window', type in your ALM Service URL, User Name, and Password.
ALM Service URL: http://{{server}}:8095/ALMService
Now username and password that you use to login to HP ALM
Select a 'Domain' and 'Project' and click the 'OK' button.
Check to see if test cases from ALM are listing in the connectors dock.