0
i send project but i could not find your mail adress on site. also i set path as you are saying before.
Please change the path in config as following:
path="*/detay/*"
In my machine it is working when i use url
http://localhost:62078/detay/article1and alsoi tried project you sent me.but i couldn't run on my computer.
Thanks again.
0
Here the path is again wrong..
You can try my web app attachment.
or
Give your sample project.. i will fix it.
0
it is already given same error.
Line 8: <compilation debug="true" targetFramework="4.0"/> Line 9: <httpHandlers> Line 10: <add verb="*" path="*/detay/*" type="handler.Detay,Detay" validate="true"/> Line 11: </httpHandlers> Line 12: </system.web>
Also, Thanks for replies.
0
You have to use:
handler.Detay,Detay
It is always namespace.type,assemblyname
0
how can i use this. Sorry but i can't success with it. i created a webhandler like below:
<%@ WebHandler Language="C#" Class="handler.Detay" %>
using System;
using System.Web;
using System.Web.UI;
using System.Web.Services;
namespace handler
{
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Detay : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
string path = context.Request.Path;
int ind = path.LastIndexOf('.');
string newpath = path.Substring(0, ind);
string detayadi = context.Request.QueryString["adi"];
newpath = newpath + "/" + detayadi;
context.RewritePath(newpath);
IHttpHandler hnd = PageParser.GetCompiledPageInstance(newpath, null, context);
hnd.ProcessRequest(context);
}
public bool IsReusable
{
get
{
return false;
}
}
}
}
also web.config is set as you said. it gives error:
Could not load file or assembly 'handler' or one of its dependencies. Sistem belirtilen dosyayi bulamiyor.
Source Error:
Line 8: <compilation debug="true" targetFramework="4.0"/>
Line 9: <httpHandlers>
Line 10: <add verb="*" path="*/detay/*" type="handler.Detay,handler" validate="true"/>
Line 11: </httpHandlers>
Line 12: </system.web>
|

0
Yes, you can try the attached web application by putting a breakpoint in ProcessRequest
0
does the code you try is my code? i changed we.config as you said. i works but url is :...detay.aspx?id=xxx&adi=xxx.
0
Hello Sadi,
Please change the path in config as following:
path="*/detay/*"
In my machine it is working when i use url "http://localhost:62078/detay/article1"
Regards,
Jean Paul