yesubabu k

yesubabu k

  • 1.1k
  • 644
  • 63.5k

Connection string problem

Dec 19 2018 11:18 PM
Dear Experts,
i am new to this 
my question is 
when i execute exe file from bin folder it running correctly
but
 when i generated the setup file then i run it , its not getting correct connection string
 
 my  App.config file like below
 
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="PMAS.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<connectionStrings>
<add name="ApplicationServices" connectionString="DB\JK_MCST.db;Version=3;datetimeformat=CurrentCulture" providerName="System.Data.SQLite" />
</connectionStrings>
<appSettings>
<add key="LogPath" value="Log" />
<add key="ClientSettingsProvider.ServiceUri" value="" />
</appSettings>
<system.web>
<membership defaultProvider="ClientAuthenticationMembershipProvider">
<providers>
<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
</providers>
</membership>
<roleManager defaultProvider="ClientRoleProvider" enabled="true">
<providers>
<add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
</providers>
</roleManager>
</system.web>
<userSettings>
<PMAS.Properties.Settings>
<setting name="connectionstring" serializeAs="String">
<value>E:\MCST\PMAS\DB\JK_MCST.db; FailifMissing=True; Version=3</value>
</setting>
</PMAS.Properties.Settings>
</userSettings>
</configuration>
 

Answers (4)