473,785 Members | 2,421 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HttpHandler not working

I have created a HttpHandler to intercept *.zip requests, authenticate
and authorize user before allowing user to download the file. This
works perfectly when I run it from ASP.NET development server (from VS
2005).

But when I run it from our web app server (Windows Server 2003-R2, IIS
6.0) it gives me a 404 Page not found error from IIS. I have
mapped .zip to aspnet_isapi.dl l in IIS. And I have this added to my
web.config

<httpHandlers >
<add verb="*" path="datafeed/*.zip"
type="XXX.Web.D ataFeedHttpHand ler.DataFeedHtt pHandler" />
</httpHandlers>

Another thing different from my development environment is that the
Website on the app server is on Port 82 and not Port 80. Is this
causing the problem? Also is there any way I can debug and find out
where the error is occuring and get some more info on the error? (I
dont have VS 2005 on the app server)

Any help is highly appreciated.

Thanks,
Deepa

May 17 '07 #1
4 2937
re:
!But when I run it from our web app server (Windows Server 2003-R2, IIS
!6.0) it gives me a 404 Page not found error from IIS.

Does the account : NT AUTHORITY\NETWO RK SERVICE
have read rights to the datafeed directory on the W2K3 server ?

The ASP.NET Development Server runs as MachineName\Adm inistrator,
and automatically has read rights to the datafeed directory in your development box..

ASP.NET runs as NT AUTHORITY\NETWO RK SERVICE on Windows Server 2003.
You have to, specifically, assign rights to the datafeed directory to that account on the server.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
<de************ *@gmail.comwrot e in message
news:11******** **************@ h2g2000hsg.goog legroups.com...
>I have created a HttpHandler to intercept *.zip requests, authenticate
and authorize user before allowing user to download the file. This
works perfectly when I run it from ASP.NET development server (from VS
2005).

But when I run it from our web app server (Windows Server 2003-R2, IIS
6.0) it gives me a 404 Page not found error from IIS. I have
mapped .zip to aspnet_isapi.dl l in IIS. And I have this added to my
web.config

<httpHandlers >
<add verb="*" path="datafeed/*.zip"
type="XXX.Web.D ataFeedHttpHand ler.DataFeedHtt pHandler" />
</httpHandlers>

Another thing different from my development environment is that the
Website on the app server is on Port 82 and not Port 80. Is this
causing the problem? Also is there any way I can debug and find out
where the error is occuring and get some more info on the error? (I
dont have VS 2005 on the app server)

Any help is highly appreciated.

Thanks,
Deepa

May 17 '07 #2
Thanks for your reply. I have assigned read rights to the Datafeed
directory to the Network service account. I still get the 404 message.
I am not sure if it even comes to the aspnet_isapi.dl l since the "Page
not found" message is from IIS. Does it have anything to do with the
non default port that I am using (port 82)??
Thanks.
On May 17, 4:40 pm, "Juan T. Llibre" <nomailrepl...@ nowhere.com>
wrote:
re:
!But when I run it from our web app server (Windows Server 2003-R2, IIS
!6.0) it gives me a 404 Page not found error from IIS.

Does the account : NT AUTHORITY\NETWO RK SERVICE
have read rights to the datafeed directory on the W2K3 server ?

The ASP.NET Development Server runs as MachineName\Adm inistrator,
and automatically has read rights to the datafeed directory in your development box..

ASP.NET runs as NT AUTHORITY\NETWO RK SERVICE on Windows Server 2003.
You have to, specifically, assign rights to the datafeed directory to that account on the server.

Juan T. Llibre, asp.net MVP
asp.net faq :http://asp.net.do/faq/
foros de asp.net, en español :http://asp.net.do/foros/
=============== =============== ========<deepa. raviki...@gmail .comwrotein message

news:11******** **************@ h2g2000hsg.goog legroups.com...
I have created a HttpHandler to intercept *.zip requests, authenticate
and authorize user before allowing user to download the file. This
works perfectly when I run it from ASP.NET development server (from VS
2005).
But when I run it from our web app server (Windows Server 2003-R2, IIS
6.0) it gives me a 404 Page not found error from IIS. I have
mapped .zip to aspnet_isapi.dl l in IIS. And I have this added to my
web.config
<httpHandlers >
<add verb="*" path="datafeed/*.zip"
type="XXX.Web.D ataFeedHttpHand ler.DataFeedHtt pHandler" />
</httpHandlers>
Another thing different from my development environment is that the
Website on the app server is on Port 82 and not Port 80. Is this
causing the problem? Also is there any way I can debug and find out
where the error is occuring and get some more info on the error? (I
dont have VS 2005 on the app server)
Any help is highly appreciated.
Thanks,
Deepa

May 18 '07 #3
re:
!>have anything to do with the non default port that I am using (port 82)??

No. The 404 Page not found error from IIS is typical error message for permission problems.

Make sure the NT AUTHORITY\NETWO RK SERVICE
account has access rights to the directory and *.aspx files you execute.

You *did* enable ASP.NET on the W2K3 R2 server, right ?
You must, specifically, enable ASP.NET on W2K3.

And...you are *not* impersonating, are you ?
If you are, the account you're impersonating is the one which needs access permission.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
<de************ *@gmail.comwrot e in message
news:11******** **************@ e65g2000hsc.goo glegroups.com.. .
Thanks for your reply. I have assigned read rights to the Datafeed
directory to the Network service account. I still get the 404 message.
I am not sure if it even comes to the aspnet_isapi.dl l since the "Page
not found" message is from IIS. Does it have anything to do with the
non default port that I am using (port 82)??
Thanks.
On May 17, 4:40 pm, "Juan T. Llibre" <nomailrepl...@ nowhere.com>
wrote:
re:
!But when I run it from our web app server (Windows Server 2003-R2, IIS
!6.0) it gives me a 404 Page not found error from IIS.

Does the account : NT AUTHORITY\NETWO RK SERVICE
have read rights to the datafeed directory on the W2K3 server ?

The ASP.NET Development Server runs as MachineName\Adm inistrator,
and automatically has read rights to the datafeed directory in your development box..

ASP.NET runs as NT AUTHORITY\NETWO RK SERVICE on Windows Server 2003.
You have to, specifically, assign rights to the datafeed directory to that account on the server.

Juan T. Llibre, asp.net MVP
asp.net faq :http://asp.net.do/faq/
foros de asp.net, en español :http://asp.net.do/foros/
=============== =============== ========<deepa. raviki...@gmail .comwrote in message

news:11******** **************@ h2g2000hsg.goog legroups.com...
I have created a HttpHandler to intercept *.zip requests, authenticate
and authorize user before allowing user to download the file. This
works perfectly when I run it from ASP.NET development server (from VS
2005).
But when I run it from our web app server (Windows Server 2003-R2, IIS
6.0) it gives me a 404 Page not found error from IIS. I have
mapped .zip to aspnet_isapi.dl l in IIS. And I have this added to my
web.config
<httpHandlers >
<add verb="*" path="datafeed/*.zip"
type="XXX.Web.D ataFeedHttpHand ler.DataFeedHtt pHandler" />
</httpHandlers>
Another thing different from my development environment is that the
Website on the app server is on Port 82 and not Port 80. Is this
causing the problem? Also is there any way I can debug and find out
where the error is occuring and get some more info on the error? (I
dont have VS 2005 on the app server)
Any help is highly appreciated.
Thanks,
Deepa


May 18 '07 #4
On May 17, 8:51 pm, "Juan T. Llibre" <nomailrepl...@ nowhere.com>
wrote:
re:
!>have anything to do with the non default port that I am using (port 82)??

No. The 404 Page not found error from IIS is typical error message for permission problems.

Make sure the NT AUTHORITY\NETWO RK SERVICE
account has access rights to the directory and *.aspx files you execute.

You *did* enable ASP.NET on the W2K3 R2 server, right ?
You must, specifically, enable ASP.NET on W2K3.

And...you are *not* impersonating, are you ?
If you are, the account you're impersonating is the one which needs access permission.

Juan T. Llibre, asp.net MVP
asp.net faq :http://asp.net.do/faq/
foros de asp.net, en español :http://asp.net.do/foros/
=============== =============== ========<deepa. raviki...@gmail .comwrotein message

news:11******** **************@ e65g2000hsc.goo glegroups.com.. .
Thanks for your reply. I have assigned read rights to the Datafeed
directory to the Network service account. I still get the 404 message.
I am not sure if it even comes to the aspnet_isapi.dl l since the "Page
not found" message is from IIS. Does it have anything to do with the
non default port that I am using (port 82)??
Thanks.

On May 17, 4:40 pm, "Juan T. Llibre" <nomailrepl...@ nowhere.com>
wrote:
re:
!But when I run it from our web app server (Windows Server 2003-R2, IIS
!6.0) it gives me a 404 Page not found error from IIS.
Does the account : NT AUTHORITY\NETWO RK SERVICE
have read rights to the datafeed directory on the W2K3 server ?
The ASP.NET Development Server runs as MachineName\Adm inistrator,
and automatically has read rights to the datafeed directory in your development box..
ASP.NET runs as NT AUTHORITY\NETWO RK SERVICE on Windows Server 2003.
You have to, specifically, assign rights to the datafeed directory to that account on the server.
Juan T. Llibre, asp.net MVP
asp.net faq :http://asp.net.do/faq/
foros de asp.net, en español :http://asp.net.do/foros/
=============== =============== ========<deepa. raviki...@gmail .comwrote in message
news:11******** **************@ h2g2000hsg.goog legroups.com...
>I have created a HttpHandler to intercept *.zip requests, authenticate
and authorize user before allowing user to download the file. This
works perfectly when I run it from ASP.NET development server (from VS
2005).
But when I run it from our web app server (Windows Server 2003-R2, IIS
6.0) it gives me a 404 Page not found error from IIS. I have
mapped .zip to aspnet_isapi.dl l in IIS. And I have this added to my
web.config
<httpHandlers >
<add verb="*" path="datafeed/*.zip"
type="XXX.Web.D ataFeedHttpHand ler.DataFeedHtt pHandler" />
</httpHandlers>
Another thing different from my development environment is that the
Website on the app server is on Port 82 and not Port 80. Is this
causing the problem? Also is there any way I can debug and find out
where the error is occuring and get some more info on the error? (I
dont have VS 2005 on the app server)
Any help is highly appreciated.
Thanks,
Deepa

The NETWORK SERVICE account has read rights on all the directories and
*aspx files. In fact, I also tried adding NETWORK SERVICE to
Administrators group. It still gave me 404. I am not using
impersonation. And I did not understand what you meant by enabling
ASP.NET on Win 2003. All the other pages on the website ok. Only the
download zip file link gives an error. The link is
http://localhost:82/datafeed/abcd.zip
(.zip is mapped to aspnet_isapi.dl l in IIS)

May 18 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1133
by: Lloyd Dupont | last post by:
I have a simple HttpHandler //-- using System.Web; namespace Acme { public class SimpleHandler : IHttpHandler { public void ProcessRequest(HttpContext context) { context.Response.Write("Hello World!"); } public bool IsReusable {
0
1111
by: Paul | last post by:
Hi all When sending a GET request with MSXML2.XMLHTTP to a HttpHandler on the web-server the case seems to have been stripped down to lower-case. This was working fine under our Windows 2000 server, however it doesnt seem to work under Windows 2003 Web Edition. I've chekc the coding in the script file to see if the case is correct for which it is, however when it reacher the HttpHandler the case has been changed to lowercase thus the...
0
1559
by: Bruce B | last post by:
Hi group, I'm experiencing some extreme weirdness over the last week with IIS related to it's Mappings and how .NET is behaving. I can't explain the behavior as it seems very random. Our app has about 50 file extensions that we map in IIS and handle in our HTTPHandler to catch the reference and then lookup the correct content from a database. In addition, we do some magic in a HTTPModule to rewrite paths for file types we don't...
5
2866
by: Earl Teigrob | last post by:
My company sells software and wants to provide downloadable product. Some of these downloads will be full CD's of over 550M I had everything working fine using Response.filewrite() but when we tested it with large files, it blew up. (crashed the server, well documented problem) I can download a file just fine if I just point to the download file and let IIS generate the download dialog (but with no security, of course)
3
3090
by: Hitesh | last post by:
Hi, I am getting the response from another Website by using the HttpHandler in my current site. I am getting the page but all the images on that page are not appearing only placeholder are displayed. Can anybody know this issue and help me to resolve this. In past i received the response saying that i should download the image first and then parse the actual response and modify the src attribute of the
1
2336
by: sathya | last post by:
hi, i have problem in httphandler, my problem is that when i am trying to use server.execute(/default.aspx) i am getting error.... Here i am trying to redirect from home.aspx to default.aspx (both file isin sharepoint).I have give a copy of my code below..
0
1085
by: Manikkoth | last post by:
Hello, We are using a user control and a HttpHandler to display an image in a grid. The images are stored in a RDBMS. Here is the approach that we use in brief. The cells are added to the grid in the page load. One of the cell is the control. The control Response.Writes an img tag. The src for the img tag is "something.img". Now we have a HttpHandler for *.img, the hander reads the image from DB and does a Response.BinaryWrite. Everything...
7
2922
by: Adam | last post by:
Im trying to add an httphandler for all *.sgf file extensions. I have developed the handler, 1. installed it into the gac 2. added it to the machine.config: <httpHandlers> <add verb="*" path="*.sgf" type="CustomExtensionHandler, Extenders.CustomExtensionHandler, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d831d925597c1031" validate="True"/> </httpHandlers>
3
2164
by: Michael Schwarz | last post by:
Hi, I have a own HttpHandler running and configured like this in my web.config: <add verb="*" path="subfolder/*.ashx" type="Class,Assembly"/> Now, when turning cookieless Sessions on my HttpHandler is not working, instead my second HttpHandler is invoked, which is configured for *.ashx files.
4
1586
by: Victor | last post by:
Hi Guys I have a problem with my httphandler here. I have several httphandler in my application. each of them do the different job. but I found sometimes it really slow down the performance. Is there a way I can specify that one handler can only be used on certain pages? like httphandler A is used on page A,B and httphandler B is only used on Page C, D? Cheers Victor
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10325
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7499
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.