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. :)
p3tar
Participant
1526 Points
238 Posts
Re: Problem with httphandler on hosting
Sep 11, 2011 04:15 PM|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.
dotnetnerd
Contributor
2604 Points
587 Posts
Re: Problem with httphandler on hosting
Sep 12, 2011 01:56 AM|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
marking
Member
45 Points
81 Posts
Re: Problem with httphandler on hosting
Sep 12, 2011 05:45 AM|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)
dotnetnerd
Contributor
2604 Points
587 Posts
Re: Problem with httphandler on hosting
Sep 12, 2011 05:55 AM|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
p3tar
Participant
1526 Points
238 Posts
Re: Problem with httphandler on hosting
Sep 12, 2011 10:01 AM|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.
marking
Member
45 Points
81 Posts
Re: Problem with httphandler on hosting
Sep 13, 2011 09:37 AM|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:
<system.web> <customErrors mode="Off"></customErrors> <compilation debug="true" targetFramework="4.0" /> <httpHandlers> <add path="Thumb.axd" verb="*" type="Manic.Controls.ThumbHandler" validate="false" /> </httpHandlers> </system.web> <system.webServer> <validation validateIntegratedModeConfiguration="false" /> <handlers> <add name="Thumb" path="Thumb.axd" verb="*" type="Manic.Controls.ThumbHandler"/> </handlers> </system.webServer>dotnetnerd
Contributor
2604 Points
587 Posts
Re: Problem with httphandler on hosting
Sep 13, 2011 01:12 PM|LINK
Windows ASP.NET Hosting | Reseller Hosting | Cloud Hosting
marking
Member
45 Points
81 Posts
Re: Problem with httphandler on hosting
Sep 13, 2011 01:18 PM|LINK
Hmm, it is godaddy and they don't want to help a little user :)
dotnetnerd
Contributor
2604 Points
587 Posts
Re: Problem with httphandler on hosting
Sep 14, 2011 01:26 AM|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
marking
Member
45 Points
81 Posts
Re: Problem with httphandler on hosting
Sep 14, 2011 06:57 AM|LINK
No chance, i returned on manually format picture and put it on web.
Thanks to all.