473,386 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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.dll in IIS. And I have this added to my
web.config

<httpHandlers>
<add verb="*" path="datafeed/*.zip"
type="XXX.Web.DataFeedHttpHandler.DataFeedHttpHand ler" />
</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 2900
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\NETWORK SERVICE
have read rights to the datafeed directory on the W2K3 server ?

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

ASP.NET runs as NT AUTHORITY\NETWORK 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.comwrote in message
news:11**********************@h2g2000hsg.googlegro ups.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.dll in IIS. And I have this added to my
web.config

<httpHandlers>
<add verb="*" path="datafeed/*.zip"
type="XXX.Web.DataFeedHttpHandler.DataFeedHttpHand ler" />
</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.dll 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\NETWORK SERVICE
have read rights to the datafeed directory on the W2K3 server ?

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

ASP.NET runs as NT AUTHORITY\NETWORK 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.ravik i...@gmail.comwrotein message

news:11**********************@h2g2000hsg.googlegro ups.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.dll in IIS. And I have this added to my
web.config
<httpHandlers>
<add verb="*" path="datafeed/*.zip"
type="XXX.Web.DataFeedHttpHandler.DataFeedHttpHand ler" />
</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\NETWORK 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.comwrote in message
news:11**********************@e65g2000hsc.googlegr oups.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.dll 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\NETWORK SERVICE
have read rights to the datafeed directory on the W2K3 server ?

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

ASP.NET runs as NT AUTHORITY\NETWORK 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.ravik i...@gmail.comwrote in message

news:11**********************@h2g2000hsg.googlegro ups.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.dll in IIS. And I have this added to my
web.config
<httpHandlers>
<add verb="*" path="datafeed/*.zip"
type="XXX.Web.DataFeedHttpHandler.DataFeedHttpHand ler" />
</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\NETWORK 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.ravik i...@gmail.comwrotein message

news:11**********************@e65g2000hsc.googlegr oups.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.dll 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\NETWORK SERVICE
have read rights to the datafeed directory on the W2K3 server ?
The ASP.NET Development Server runs as MachineName\Administrator,
and automatically has read rights to the datafeed directory in your development box..
ASP.NET runs as NT AUTHORITY\NETWORK 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.ravik i...@gmail.comwrote in message
news:11**********************@h2g2000hsg.googlegro ups.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.dll in IIS. And I have this added to my
web.config
<httpHandlers>
<add verb="*" path="datafeed/*.zip"
type="XXX.Web.DataFeedHttpHandler.DataFeedHttpHand ler" />
</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.dll in IIS)

May 18 '07 #5

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

Similar topics

0
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...
0
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...
0
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...
5
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...
3
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...
1
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...
0
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...
7
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="*"...
3
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...
4
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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,...
0
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...

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.