Dear XIII ,hello
Thanks for your help.you are all right.
But I fix this problem through IIS and in my local system,What about internet and web server.? i don't access to iis of my Host.
Should i contact to them or i can programmatically solve this problem.?
my guess is that you need to ask it at your hosting company. If they have a strict policy they'll likely not allow it. But first thing would be to ask for it.
Grz, Kris.
Read my blog | Twitter Working with Azure, chatbots, ASP.NET MVC, Web API, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
Dear my Friend...
Thanks for your help.Isearch your solution in MSDN and found this:
....The benefit of this approach is that it simplifies deployment: all you need to do is copy the .ashx file to your virtual directory. There is no need to create or modify a Web.config file or to update IIS—the requisite configuration was done when .NET
was installed...
it's great that you found a solution to your problem. However you mentioned a page on the MSDN site but didn't provide an uri to it. Others might want to see this information also. So please, in the future, always try to give your resources where you found
something that helped you out.
Grz, Kris.
Read my blog | Twitter Working with Azure, chatbots, ASP.NET MVC, Web API, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
Member
30 Points
174 Posts
Problem in Writing Custom HttpHandler.....
Oct 02, 2005 05:51 AM|ZarrinPour|LINK
Hi all,
For writing custom HttpHandler I have done the following steps:
1) I wrote a class that Implements IHttpHandler (MyHandler.cs)
2) Then i wrote the following lines in my Web.Config file:
<configuration>
<system.web>
<httpHandlers>
<add verb="*" path="*.zar" type="Test.MyHandler,Test" />
</httpHandlers>
</system.web>
</configuration>
After That i request the following Url (My project Name is Test)
http://LocalHost/Test/Show.zar (Show.zar file doesn't Exist,only for test )
But I received the "The page cannot be found" Error.
What Should i do.? PLease Help Me.
All-Star
191723 Points
20951 Posts
ASPInsiders
Moderator
MVP
Re: Problem in Writing Custom HttpHandler.....
Oct 02, 2005 06:09 AM|XIII|LINK
did you also made sure that the .zar file extension is known by the asp_isapi.dll?
Grz, Kris.
Working with Azure, chatbots, ASP.NET MVC, Web API, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
Member
30 Points
174 Posts
Re: Problem in Writing Custom HttpHandler.....
Oct 02, 2005 06:51 AM|ZarrinPour|LINK
Thanks for your help.you are all right.
But I fix this problem through IIS and in my local system,What about internet and web server.? i don't access to iis of my Host.
Should i contact to them or i can programmatically solve this problem.?
Thanks in advance.
Best Regards.
All-Star
191723 Points
20951 Posts
ASPInsiders
Moderator
MVP
Re: Problem in Writing Custom HttpHandler.....
Oct 02, 2005 07:13 AM|XIII|LINK
my guess is that you need to ask it at your hosting company. If they have a strict policy they'll likely not allow it. But first thing would be to ask for it.
Grz, Kris.
Working with Azure, chatbots, ASP.NET MVC, Web API, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
Member
11 Points
400 Posts
Betreft: Re: Problem in Writing Custom HttpHandler.....
Oct 03, 2005 02:52 AM|webbes|LINK
<configuration>
<system.web>
<httpHandlers>
<add verb="*" path="Show.ashx" type="Test.MyHandler,Test" />
</httpHandlers>
</system.web>
</configuration>
You can guess the rest right?
Cheers,
Wes
Member
30 Points
174 Posts
Re: Betreft: Re: Problem in Writing Custom HttpHandler.....
Oct 05, 2005 03:42 AM|ZarrinPour|LINK
Dear my Friend...
Thanks for your help.Isearch your solution in MSDN and found this:
....The benefit of this approach is that it simplifies deployment: all you need to do is copy the .ashx file to your virtual directory. There is no need to create or modify a Web.config file or to update IIS—the requisite configuration was done when .NET was installed...
Once again Thank You & Best Regards.
All-Star
191723 Points
20951 Posts
ASPInsiders
Moderator
MVP
Re: Betreft: Re: Problem in Writing Custom HttpHandler.....
Oct 05, 2005 01:15 PM|XIII|LINK
it's great that you found a solution to your problem. However you mentioned a page on the MSDN site but didn't provide an uri to it. Others might want to see this information also. So please, in the future, always try to give your resources where you found something that helped you out.
Grz, Kris.
Working with Azure, chatbots, ASP.NET MVC, Web API, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
Member
30 Points
174 Posts
Re: Betreft: Re: Problem in Writing Custom HttpHandler.....
Oct 05, 2005 02:50 PM|ZarrinPour|LINK
http://msdn.microsoft.com/msdnmag/issues/02/09/HTTPPipelines/
Thanks for your advise.
Regards.