I'm using image control from codeplex, and everthing is ok on my local IIS (.NET 4). When i upload my application on for example godaddy i have error 500. Please what you suggest me to do in my case (i don't have this section in system.webServer section).
Image control has allready compiled in .net 4.
Probably they don't have *.axd mapped in their IIS configuration for shared servers... another option is to use a ASHX http handler. They can come in handy when you can't configure IIS.
marking
Member
45 Points
81 Posts
Problem with httphandler on hosting
Sep 11, 2011 09:39 AM|LINK
I'm using image control from codeplex, and everthing is ok on my local IIS (.NET 4). When i upload my application on for example godaddy i have error 500. Please what you suggest me to do in my case (i don't have this section in system.webServer section). Image control has allready compiled in .net 4.
This is my web.config:
<system.web> <httpHandlers> <add path="Thumb.axd" verb="*" type="Controls.ThumbHandler" validate="false" /> </httpHandlers> </system.web>Thx.
p3tar
Participant
1526 Points
238 Posts
Re: Problem with httphandler on hosting
Sep 11, 2011 09:54 AM|LINK
Probably they don't have *.axd mapped in their IIS configuration for shared servers... another option is to use a ASHX http handler. They can come in handy when you can't configure IIS.
Also, maybe this article could help.
If I helped please mark my posts as "Answer". Cheers.
marking
Member
45 Points
81 Posts
Re: Problem with httphandler on hosting
Sep 11, 2011 09:57 AM|LINK
OK, i understand that something is mising on godaddy but this control has allready worked in .net3.5 hosting.
p3tar
Participant
1526 Points
238 Posts
Re: Problem with httphandler on hosting
Sep 11, 2011 10:03 AM|LINK
Ok, then article I posted could help you... register your *.AXD in the system.webserver configuration section, this is required for IIS7+
If I helped please mark my posts as "Answer". Cheers.
marking
Member
45 Points
81 Posts
Re: Problem with httphandler on hosting
Sep 11, 2011 12:26 PM|LINK
Could you put me right sintax what to put in webserver section from my example?
p3tar
Participant
1526 Points
238 Posts
Re: Problem with httphandler on hosting
Sep 11, 2011 01:59 PM|LINK
Check type property:
<!-- Web Server --> <system.webServer> <validation validateIntegratedModeConfiguration="false" /> <!-- IIS 7.0+ HTTP Handlers --> <handlers> <add name="ThumbHandler" verb="*" path="thumb.axd" type="Controls.ThumbHandler, ASSEMBLY_NAME_IS_MISSING" /> </handlers> <!-- IIS 7.0+ HTTP Handlers END --> </system.webServer> <!-- Web Server END -->Add assemby name also...
If I helped please mark my posts as "Answer". Cheers.
p3tar
Participant
1526 Points
238 Posts
Re: Problem with httphandler on hosting
Sep 11, 2011 02:01 PM|LINK
Info about validateIntegratedModeConfiguration...
If I helped please mark my posts as "Answer". Cheers.
marking
Member
45 Points
81 Posts
Re: Problem with httphandler on hosting
Sep 11, 2011 02:29 PM|LINK
HTTP Error 500.21 - Internal Server Error
Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list
p3tar
Participant
1526 Points
238 Posts
Re: Problem with httphandler on hosting
Sep 11, 2011 03:52 PM|LINK
Paste your code/web.config section,
make sure that system.webServer section is outside system.web section,
check HTTP handler type attribute (namespace and assemby name),
test that HTTP handler on your local IIS...
If I helped please mark my posts as "Answer". Cheers.
marking
Member
45 Points
81 Posts
Re: Problem with httphandler on hosting
Sep 11, 2011 04:00 PM|LINK
<configuration> <system.web> <httpHandlers> <add path="Thumb.axd" verb="*" type="Manic.Controls.ThumbHandler" validate="false" /> </httpHandlers> </system.web> <!-- Web Server --> <system.webServer> <validation validateIntegratedModeConfiguration="false" /> <!-- IIS 7.0+ HTTP Handlers --> <handlers> <add name="Thumb" verb="*" path="Thumb.axd" type="Manic.Controls.ThumbHandler" /> </handlers> <!-- IIS 7.0+ HTTP Handlers END --> </system.webServer> <!-- Web Server END --> </configuration>