Specified method is not supported. at System.Web.HttpRespons

Helicon Ape provides support for Apache .htacces and .htpasswd configuration files for Microsoft IIS.
User avatar
Posts: 2
Joined: 17 May 2017, 11:52

Specified method is not supported. at System.Web.HttpRespons

17 May 2017, 11:57

Hi

Our Windows 2012R2 server has recently run a lot of windows updates.

Possibly a coincidence but one of our sites is now throwing an intermittent 500 error with helicon ape.


The error we have received is:

500
Internal Server Error
Helicon Ape module has caught up an error. Please see the details below.
(error) .htaccess:175: Internal error - exception in ape_module:
Specified method is not supported. at System.Web.HttpResponseStream.get_Position()
at System.Drawing.UnsafeNativeMethods.ComStreamFromDataStream.Seek(Int64 offset, Int32 origin)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.Web.Hosting.IIS7WorkerRequest.SetUnknownResponseHeader(String name, String value, Boolean replace)
at System.Web.Hosting.IIS7WorkerRequest.SetKnownResponseHeader(Int32 index, String value, Boolean replace)
at System.Web.HttpHeaderCollection.SetHeader(String name, String value, Boolean replace)
at System.Web.HttpHeaderCollection.Set(String name, String value)
at 3.15.0(18 , String )
at 3.15.1(18 )
at 3.15.1349341432(18 )
at 5.7.0(36 )


Assuming the 175 is the line number in the htaccess file

This is around 175:

Code: Select all
 # Compress all output labeled with one of the following MIME-types
  <IfModule mod_filter.c>
    AddOutputFilterByType DEFLATE application/atom+xml                                   application/javascript                                   application/json                                   application/rss+xml                                   application/vnd.ms-fontobject   THIS IS 175                     application/x-font-ttf \
                                  application/xhtml+xml                                   application/xml                                   font/opentype                                   image/svg+xml                                   image/x-icon                                   text/css                                   text/html                                   text/plain                                   text/x-component                                   text/xml
  </IfModule>



We are new to helicon ape as this was installed and set up by a colleague no longer with us.
I have attached the htaccess file that seems to be throwing the error but we don't really know where to start with debugging this issue.

Can any one help?
Attachments
heliconapeerr.txt
htaccess
(20.14 KiB) Downloaded 1825 times

User avatar
Posts: 402
Joined: 06 Mar 2012, 11:59

Re: Specified method is not supported. at System.Web.HttpRes

17 May 2017, 14:29

Hello.

Looks like a bug in IIS itself. Simple setting of HTTP header is triggering this error, at least according to the call stack.

Please try to add this directive somewhere at the top of .htaccess:

Options -NeverChangeServerVariables

this will change the way headers are used, but chances it will fix the issue are small.

User avatar
Posts: 2
Joined: 17 May 2017, 11:52

Re: Specified method is not supported. at System.Web.HttpRes

18 May 2017, 04:37

Hi @Yaroslav

Thanks for your reply. I will try this!
If the error keeps occurring is there any other way to go about debugging it.
It's only happening intermittently, so we're not even sure what is running to cause it.
I know that's a little vague, but if we can narrow it down we may be able to at least make a change to something for the time being to stop it popping up.

Thanks for any help.

User avatar
Posts: 402
Joined: 06 Mar 2012, 11:59

Re: Specified method is not supported. at System.Web.HttpRes

19 May 2017, 07:28

You can configure Failed Request Tracing to log all 500 errors details, so you will be able to analyze failed requests later and at least check which requests have triggered the error: https://www.iis.net/configreference/sys ... edrequests

Return to Helicon Ape

Who is online

Users browsing this forum: No registered users and 21 guests