Http handler won't work on hosted site

  • Thread starter Marius Hildebrandt
  • Start date
M

Marius Hildebrandt

I have made a web handler that resizes an image on the server before sending
it to the browser. This works fine on my local computer. However, when i
publish to a hosted site, it doesn't work. No exceptions are thrown, it just
doesn't send any image info to my browser. I do not have permission to
create og write to a file, so I'm finding it har to debug.

I pass the relative image path and the new image width value to the handler.
I suspect that it might be the cause of my problems, but I really cannot
find out without any ways to get debug info. The ISP also does not allow the
Debug="true" switch.

The .dll i placed in the [root]/bin folder, and this is what's in my
web.config:

<configuration>
<system.web>
<httpHandlers>
<add verb="*" path="*.ashx" type="ImageGrabber,ImageGrabber" />
</httpHandlers>
(...)

The site is in Norwegian, but as you can see, some images are missing:
http://www.beckmaskin.no/nybeck/

Any suggestions will be appreciated.
 
K

Klaus H. Probst

Tell them to change their machine config and let you do that. Unless they
allow it you'll never be able to do it.

Or find another host.
 
M

Marius Hildebrandt

Klaus said:
Tell them to change their machine config and let you do that. Unless
they allow it you'll never be able to do it.

Klaus, thanks for your reply.

ActiveISP Tech support (the hosting company) doesn't really seem to be
experts regarding the .config files. I never get an straight forward answer
from them, so I consider finding another host. They told me that my ASP.NET
site runs with Trust level = Low + SQLClientPermission. I found som info on
trustlevels here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/thcmch09.asp

But nothing explicit on web handlers. Are HTTP handlers considered to be
"unmanaged code" and thus not accessible at trustlevel=low? If so, what can
I suggest that ActiveISP should do to let me use HTTP-handlers? I don't
think they're willing to change the trustlevel...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top