Skip to content

Commit 5761e55

Browse files
Create unable-to-establish-a-connection-to-the-database-when-the application-is-deployed.md
1 parent 80356d8 commit 5761e55

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
title: Error Unable to establish a connection to the database when the application is deployed
3+
description: Upon deploying an error message Unable to establish a connection to the database when the application is deployed has been thrown
4+
type: troubleshooting
5+
page_title: Error Unable to establish a connection to the database when the application is deployed
6+
slug: unable-to-establish-a-connection-to-the-database-when-the application-is-deployed
7+
position:
8+
tags: Configuration
9+
ticketid: 1361723
10+
res_type: kb
11+
---
12+
13+
## Environment
14+
<table>
15+
<tr>
16+
<td>Product Version</td>
17+
<td>12.2.18.912</td>
18+
</tr>
19+
<tr>
20+
<td>Product</td>
21+
<td>Progress® Telerik® Reporting</td>
22+
</tr>
23+
</table>
24+
25+
26+
## Error Message
27+
The error message
28+
```
29+
Unable to establish a connection to the database. Please verify that your connection string is valid. In case you use a named connection string from
30+
the application configuration file, make sure the name is correct and the connection string settings are present in the configuration file of your
31+
application.
32+
------------- InnerException -------------
33+
The 'DbProviderFactories' section can only appear once per config file.
34+
```
35+
is returned from the attempt to deploy an application to a server.
36+
37+
## Cause\Possible Cause(s)
38+
The issues is caused by multiple **DbProviderFactory** entries in the *machine.config* file on the server.
39+
40+
## Solution
41+
Check the specified configuration files and compare them with development machine's ones. Alternatively, some troubleshooting instructions are discussed in the following stackoverflow threads:
42+
- [Override machine.config by web.config](https://stackoverflow.com/questions/2201242/override-machine-config-by-web-config)
43+
- ['DbProviderFactories' section can only appear once per config file error](https://forums.asp.net/t/1693277.aspx?+DbProviderFactories+section+can+only+appear+once+per+config+file+error)

0 commit comments

Comments
 (0)