...
O valor a ser atribuído a tag DefaultDB deve ser idêntica ao nome do alias que aponta para a base de dados utilizada. No nosso exemplo que citamos atribuímos o valor "CorporeRM" ao alias e respectivamente a ao DefaultDB.
Exemplo;
RM.Host.exe.config | RM.Host.Service.exe.config |
<?xml version="1.0"?> <configuration> <appSettings> <add key="JobServer3Camadas" value="false" /> <add key="Port" value="8050" /> <add key="ActionsPath" value="C:\totvs\CorporeRM\RM.Net;C:\totvs\CorporeRM\Corpore.Net\Bin" /> <add key="EnableCompression" value="true" /> <add key="DefaultDB" value="CorporeRM" /> </appSettings> <runtime> <NetFx40_LegacySecurityPolicy enabled="true" /> </runtime> <system.runtime.remoting> <customErrors mode="Off" /> </system.runtime.remoting> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" /> </startup> </configuration> | <?xml version="1.0"?> <configuration> <appSettings> <add key="JobServer3Camadas" value="false" /> <add key="Port" value="8050" /> <add key="ActionsPath" value="C:\totvs\CorporeRM\RM.Net;C:\totvs\CorporeRM\Corpore.Net\Bin" /> <add key="EnableCompression" value="true" /> <add key="DefaultDB" value="CorporeRM" /> </appSettings> <runtime> <NetFx40_LegacySecurityPolicy enabled="true" /> </runtime> <system.runtime.remoting> <customErrors mode="Off" /> </system.runtime.remoting> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" /> </startup> </configuration> |
...