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.
Integrated Pipeline is the default mode for ASP.NET 4.0 and IMO it's a better mode, but for start use the same mode you are using localy... and for the
correctnessof code in your HTTP handler declaration, add name ofthe assembly after the namespace, as suggested earlier..
Now, when i addedd configuration in webserver section i have following error, what to do???? :
(On GoDaddy hosting we have option to change pipeline but for all sites, i have three more sites and they don't work if i change pipeline)
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Configuration.ConfigurationPermission, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SecurityException: Request for the permission of type 'System.Configuration.ConfigurationPermission, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed.]
System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark) +31
System.Security.CodeAccessPermission.Demand() +46
System.Configuration.BaseConfigurationRecord.CheckPermissionAllowed(String configKey, Boolean requirePermission, Boolean isTrustedWithoutAptca) +99
Please check this
post. You need to run your asp.net app in full trust level. Please mark as answer if this answer help you. Please just post again if you have another problem. :)
Member
11 Points
81 Posts
Problem with httphandler on hosting
Sep 11, 2011 05:39 AM|marking|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:
Thx.
Participant
1050 Points
238 Posts
Re: Problem with httphandler on hosting
Sep 11, 2011 05:54 AM|p3tar|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.
Member
11 Points
81 Posts
Re: Problem with httphandler on hosting
Sep 11, 2011 05:57 AM|marking|LINK
OK, i understand that something is mising on godaddy but this control has allready worked in .net3.5 hosting.
Participant
1050 Points
238 Posts
Re: Problem with httphandler on hosting
Sep 11, 2011 06:03 AM|p3tar|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.
Member
11 Points
81 Posts
Re: Problem with httphandler on hosting
Sep 11, 2011 08:26 AM|marking|LINK
Could you put me right sintax what to put in webserver section from my example?
Participant
1050 Points
238 Posts
Re: Problem with httphandler on hosting
Sep 11, 2011 09:59 AM|p3tar|LINK
Check type property:
Add assemby name also...
If I helped please mark my posts as "Answer". Cheers.
Participant
1050 Points
238 Posts
Re: Problem with httphandler on hosting
Sep 11, 2011 10:01 AM|p3tar|LINK
Info about validateIntegratedModeConfiguration...
If I helped please mark my posts as "Answer". Cheers.
Member
11 Points
81 Posts
Re: Problem with httphandler on hosting
Sep 11, 2011 10:29 AM|marking|LINK
HTTP Error 500.21 - Internal Server Error
Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list
Participant
1050 Points
238 Posts
Re: Problem with httphandler on hosting
Sep 11, 2011 11:52 AM|p3tar|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.
Member
11 Points
81 Posts
Re: Problem with httphandler on hosting
Sep 11, 2011 12:00 PM|marking|LINK
Participant
1050 Points
238 Posts
Re: Problem with httphandler on hosting
Sep 11, 2011 12:15 PM|p3tar|LINK
Integrated Pipeline is the default mode for ASP.NET 4.0 and IMO it's a better mode, but for start use the same mode you are using localy... and for the correctness of code in your HTTP handler declaration, add name of the assembly after the namespace, as suggested earlier..
<add name="Thumb" verb="*" path="Thumb.axd" type="Manic.Controls.ThumbHandler, ASSEMBLY_NAME" />
Also, you should contact your hosting provider about this problem...
If I helped please mark my posts as "Answer". Cheers.
Participant
1930 Points
793 Posts
Re: Problem with httphandler on hosting
Sep 11, 2011 09:56 PM|dotnetnerd|LINK
Hi marking,
Please ask your provider to change from Integrated Pipeline Mode to Classic Pipeline Mode. Please try and let me know. Hope it helps!
Windows ASP.NET Hosting | Reseller Hosting | Cloud Hosting
Member
11 Points
81 Posts
Re: Problem with httphandler on hosting
Sep 12, 2011 01:45 AM|marking|LINK
Now, when i addedd configuration in webserver section i have following error, what to do???? :
(On GoDaddy hosting we have option to change pipeline but for all sites, i have three more sites and they don't work if i change pipeline)
Participant
1930 Points
793 Posts
Re: Problem with httphandler on hosting
Sep 12, 2011 01:55 AM|dotnetnerd|LINK
Hi marking,
Please check this post. You need to run your asp.net app in full trust level. Please mark as answer if this answer help you. Please just post again if you have another problem. :)
Windows ASP.NET Hosting | Reseller Hosting | Cloud Hosting
Participant
1050 Points
238 Posts
Re: Problem with httphandler on hosting
Sep 12, 2011 06:01 AM|p3tar|LINK
Try also to set section attribute requirePermission equal false in the configuration file where this section is declared...
If I helped please mark my posts as "Answer". Cheers.
Member
11 Points
81 Posts
Re: Problem with httphandler on hosting
Sep 13, 2011 05:37 AM|marking|LINK
I have same error, security exception.
When i put the section and change name, type ihave error 500.23.
What do you suggest me what to do?
This is my web config:
Participant
1930 Points
793 Posts
Re: Problem with httphandler on hosting
Sep 13, 2011 09:12 AM|dotnetnerd|LINK
Windows ASP.NET Hosting | Reseller Hosting | Cloud Hosting
Member
11 Points
81 Posts
Re: Problem with httphandler on hosting
Sep 13, 2011 09:18 AM|marking|LINK
Hmm, it is godaddy and they don't want to help a little user :)
Participant
1930 Points
793 Posts
Re: Problem with httphandler on hosting
Sep 13, 2011 09:26 PM|dotnetnerd|LINK
Hi,
What do you mean they dont want to help you? Have you contact them? If they dont want to assist you, you need to consider to change your provider.
Windows ASP.NET Hosting | Reseller Hosting | Cloud Hosting
Member
11 Points
81 Posts
Re: Problem with httphandler on hosting
Sep 14, 2011 02:57 AM|marking|LINK
No chance, i returned on manually format picture and put it on web.
Thanks to all.