P
Prince
I have the following code within the ASP.NET project I
have created.
public class RedirectHandler : IHttpHandler{
//empty constructor
public void ProcessRequest(HttpContext context){
response.Redirect("page2.aspx");
}
public bool IsReusable(){
get {return false;}
}
}
then in the Web.config file, within the <System.web> I
have
<httpHandlers>
<add verb="*" path="*/xxx" type="RedirectHandler" />
</httpHandlers>
Basically, what I'm trying to do is, when a user enters,
www.xyz.com/xxx, I want the browser to redirect to
www.xyz.com/xxx.aspx. I don't mind if the user sees the
url in the address. There is no page named xxx. The
page is xxx.aspx but I don't want the person to HAVE to
enter the extension. They can but I don't want them to
HAVE to.
When I run the program, I get the following error.
Description: An error occurred during the processing of a
configuration file required to service this request.
Please review the specific error details below and modify
your configuration file appropriately.
Parser Error Message: Could not load type
DistributorRedirectHandler from assembly System.Web
It then highlights the <add verb="*" .....
line. Can anyone explain what this error message means
and how I can address it?
thanks,
Prince
have created.
public class RedirectHandler : IHttpHandler{
//empty constructor
public void ProcessRequest(HttpContext context){
response.Redirect("page2.aspx");
}
public bool IsReusable(){
get {return false;}
}
}
then in the Web.config file, within the <System.web> I
have
<httpHandlers>
<add verb="*" path="*/xxx" type="RedirectHandler" />
</httpHandlers>
Basically, what I'm trying to do is, when a user enters,
www.xyz.com/xxx, I want the browser to redirect to
www.xyz.com/xxx.aspx. I don't mind if the user sees the
url in the address. There is no page named xxx. The
page is xxx.aspx but I don't want the person to HAVE to
enter the extension. They can but I don't want them to
HAVE to.
When I run the program, I get the following error.
Description: An error occurred during the processing of a
configuration file required to service this request.
Please review the specific error details below and modify
your configuration file appropriately.
Parser Error Message: Could not load type
DistributorRedirectHandler from assembly System.Web
It then highlights the <add verb="*" .....
line. Can anyone explain what this error message means
and how I can address it?
thanks,
Prince