2
Answers

Unrecognized configuration section system.web/urlMapping.

Raja

Raja

8y
318
1
Unrecognized configuration section system.web/urlMapping.
This error shown on web config file.i want rewrite the url(Remove .aspx Extension.
 i have write the code inside the <system.web> tag. :)
Answers (2)
0
Raja

Raja

NA 1.7k 45.3k 8y
<configuration>
<connectionStrings>
<add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
</connectionStrings>
<configSections>
<sectionGroup name="urlMapping">

</sectionGroup>
</configSections>
<system.web>
<compilation debug="true" targetFramework="4.0"/>
<authentication mode="Forms">
<forms loginUrl="~/Account/Login.aspx" timeout="2880"/>
</authentication>
<membership>
<providers>
<clear/>
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/"/>
</providers>
</membership>
<profile>
<providers>
<clear/>
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>
</providers>
</profile>
<roleManager enabled="false">
<providers>
<clear/>
<add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/"/>
<add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/"/>
</providers>
</roleManager>
<urlMapping enabled="true">
<clear/>
<add url="~/Delete_Demo2/Default2.aspx" mappedurl="~/Delete_Demo2/Default2.aspx? tab=default"/>
<remove url="~/Delete_Demo2/Default2.aspx"/>
<add url="~/Delete_Demo2/About.aspx" mappedurl="~/Delete_Demo2/About.aspx" />
</urlMapping>
</system.web>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>
0
Dhanasekar

Dhanasekar

NA 553 129.4k 8y
Hi Raja Ganapathy,
 
   Can  you share the code snippet that  you are trying . so that we wil understand your problem.