<configuration>
......
<system.web>
<customErrors mode="Off" >
<error statusCode="404" redirect="~/" />
</customErrors>
<configuration>
......
<system.web>
<customErrors mode="Off" >
<error statusCode="404" redirect="~/" />
</customErrors>