hi,mike :
thank you!!
the problem is this:
1.open the asp.net application programme manage.
2.choice the "application programme "selection
3.go into "the define default error page" link at the "debugging and scout"
4.choice "the default error page URL of been destined for"
5.and select my wrong page(for example:myError.aspx).
myError.aspx:
<%@ Page Language="
VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="myError.aspx.
vb" Inherits="_Default" title="Untitled Page" Theme ="themes1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="sServer">
Sorry! This is wrong page!<br />
</asp:Content>
and
the code:
<customErrors defaultRedirect="~/myError.aspx" /> is in the webconfig.
the question is:
why not direct the myError.aspx when i am testing.