locked
upgrade this web.config to asp.net 4.5 RRS feed

  • Question

  • User-1998474842 posted

    dear

    i want upgrade this web.config  to  asp.net 4.5 ? how can do it ?

    <?xml version="1.0"?>
    <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
    	<configSections>
    		<section name="aindapress" type="MB.aindapress.aindapressSection, __code"/>
    	</configSections>
    	<aindapress defaultConnectionStringName="AccessFileName">
    		<contactForm mailTo="info@web.com"/>
    	</aindapress>
    	<appSettings>
    		<add key="web" value="500"/>
    	</appSettings>
    	<connectionStrings>
    		<add name="AccessFileName" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\ASPNetDB.mdb;Persist Security Info=True" providerName="System.Data.OleDb"/>
    	</connectionStrings>
    	<system.web>
    		<globalization enableClientBasedCulture="true" requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="windows-1256" uiCulture="ar-IQ" culture="ar-IQ"/>
    		<pages>
          <controls>
            <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          </controls>
    			<namespaces>
    				<clear/>
    				<add namespace="System"/>
    				<add namespace="System.Collections"/>
    				<add namespace="System.Collections.Specialized"/>
    				<add namespace="System.Configuration"/>
    				<add namespace="System.Text"/>
    				<add namespace="System.Text.RegularExpressions"/>
    				<add namespace="System.Web"/>
    				<add namespace="System.Web.Caching"/>
    				<add namespace="System.Web.SessionState"/>
    				<add namespace="System.Web.Security"/>
    				<add namespace="System.Web.Profile"/>
    				<add namespace="System.Web.UI"/>
    				<add namespace="System.Web.UI.WebControls"/>
    				<add namespace="System.Web.UI.WebControls.WebParts"/>
    				<add namespace="System.Web.UI.HtmlControls"/>
    			</namespaces>
    		</pages>
    		<authentication mode="Forms">
    			<forms loginUrl="~/Ainda_User_Login.aspx" defaultUrl="~/acp"/>
    		</authentication>
    		<membership defaultProvider="AccessMembershipProvider" userIsOnlineTimeWindow="15">
    			<providers>
    				<clear/>
    				<add name="AccessMembershipProvider" type="Samples.AccessProviders.AccessMembershipProvider, SampleAccessProviders" connectionStringName="AccessFileName" enablePasswordRetrieval="true" enablePasswordReset="true" requiresUniqueEmail="false" requiresQuestionAndAnswer="false" minRequiredPasswordLength="1" minRequiredNonalphanumericCharacters="0" applicationName="SampleSite" hashAlgorithmType="SHA1" passwordFormat="Clear" />
          </providers>
    		</membership>
    		<profile enabled="true" defaultProvider="AccessProfileProvider">
    			<providers>
            <clear />
    				<add name="AccessProfileProvider" type="Samples.AccessProviders.AccessProfileProvider, SampleAccessProviders" connectionStringName="AccessFileName" applicationName="SampleSite" description="Stores and retrieves profile data from an ASP.NET_Access_Providers4 database."/>
    			</providers>
          <properties>
            <add name="FriendlyName" type="string" allowAnonymous="true" serializeAs="String"/>
            <add name="Height" type="int" allowAnonymous="true" serializeAs="String"/>
            <add name="Weight" type="int" allowAnonymous="true" serializeAs="Xml"/>
            <add name="StylesheetTheme" defaultValue="Shewa" allowAnonymous="true"/>
            <add name="FirstName" type="String" />
            <add name="LastName" type="String" />
            <add name="Gender" type="String" />
            <add name="BirthDate" type="DateTime" />
            <add name="Occupation" type="String" />
            <add name="Website" type="String" />
            <group name="Address">
              <add name="Street" type="String" />
              <add name="PostalCode" type="String" />
              <add name="City" type="String" />
              <add name="State" type="String" />
            </group>
            <group name="Contacts">
              <add name="Phone" type="String" />
              <add name="Fax" type="String" />
            </group>
          </properties>
    		</profile>
        <roleManager enabled="true" cacheRolesInCookie="true" cookieName="MYROLES" defaultProvider="MyRoleProvider">
          <providers>
            <clear />
            <add name="MyRoleProvider" connectionStringName="AccessFileName" applicationName="/" type="Samples.AccessProviders.AccessRoleProvider, SampleAccessProviders"/>
          </providers>
        </roleManager>
    		<anonymousIdentification enabled="true" cookieName=".ASPXANONYMOUS" cookieTimeout="100" cookiePath="/" cookieRequireSSL="false" cookieSlidingExpiration="true" cookieProtection="None" domain=""/>
    		<webParts>
    			<personalization defaultProvider="AccessPersonalizationProvider">
    				<providers>
    					<add name="AccessPersonalizationProvider" type="Samples.AccessProviders.AccessPersonalizationProvider, SampleAccessProviders" connectionStringName="AccessFileName" applicationName="SampleSite"/>
    				</providers>
    			</personalization>
    		</webParts>
        <compilation debug="true" />
        <sessionState timeout="90" mode="InProc" cookieless="AutoDetect" />
      </system.web>
    	<system.net>
    		<mailSettings>
    			<smtp from="info@web.com" deliveryMethod="Network">
            <network host="smtp.web.com" password="1234567" userName="info@web.com"  />
          </smtp>
    		</mailSettings>
    	</system.net>
    </configuration>
    



    Sunday, March 24, 2013 1:22 PM