Migration to .Net 4.0 - Appconfig setting changed

Posted by Manikandan711 under C# on 4/30/2013 | Points: 10 | Views : 2371 | Status : [Member] | Replies : 1
I migrating the .NET 1.1 windows projects to .Net 4.0, some new tags are added in my app.config file,

Any one explain me why this are created???


Code:

<applicationSettings>
<WinTester3.Properties.Settings>
<setting name="YYY" serializeAs="String">
<value>XXX</value>
</setting>
</WinTester3.Properties.Settings>
</applicationSettings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
</startup>
<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>

Thanks & Regards,
Manikandan Muthuraj
http://talkheredotnet.blogspot.com/



Responses

Posted by: Manikandan711 on: 5/1/2013 [Member] Starter | Points: 25

Up
0
Down
Hi Jithesh,

Thank you for your comments..
For more clarity i brief here,
In older version, We are configuring the values via, appSettings in app.config file i.e., "WinTester3.TTService.Service"
<appSettings>

<add key="WinTester3.TTService.Service" value="http://dfo.emirates.com/tickertapeservice/service.asmx" />
</appSettings>


But after migration new config section i.e applicationSettings is created and needs to configured same value is once again.

<configSections>

<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="WinTester3.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</sectionGroup>
</configSections>

<applicationSettings>
<WinTester3.Properties.Settings>
<setting name="WinTester3_TTService_Service" serializeAs="String">
<value>[VALUE]</value>
</setting>
</WinTester3.Properties.Settings>
</applicationSettings>



Why this is created, Need your valuable comments.


Thanks & Regards,
Manikandan Muthuraj
http://talkheredotnet.blogspot.com/

Manikandan711, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response