Author Topic: Export to CSV http error  (Read 4905 times)

janvsc

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 6
    • View Profile
Export to CSV http error
« on: July 11, 2014, 04:18:16 am »
Hi,

When exporting to csv for excel I get the following message returned by the server:

"405 - HTTP verb used to access this page is not allowed."

I am sure something needs to be changed on the web server.
Any hints will be welcomed.
The "POST" is failing

Cheers

janvsc

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Export to CSV http error
« Reply #1 on: July 21, 2014, 06:25:54 am »
For some reason my post was moved to Evaluation Support.


Please HELP!!!
« Last Edit: July 23, 2014, 01:54:17 am by janvsc »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6263
    • View Profile
Re: Export to CSV http error
« Reply #2 on: July 21, 2014, 11:37:26 am »
Please share the server setup ( web server / OS/ server side framework )

If you have been using ASP.NET (MVC), you need to add this annotation before controller method.

[HttpPost, ValidateInput(false)]

as demonstrated in this example http://paramquery.com/pro/demos/export under ASP.NET tab



PS: Please share the paypal transaction ID in order to have your account upgraded to PRO.

janvsc

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Export to CSV http error
« Reply #3 on: July 22, 2014, 01:15:48 am »
Hi,

Server Windows 2008 R2
asp.net (Webmatrix - not mvc)
Using javascript example

ps. Will send Paypal ID as soon as I get get it from the accounts people ;-)

Please share the server setup ( web server / OS/ server side framework )

If you have been using ASP.NET (MVC), you need to add this annotation before controller method.

[HttpPost, ValidateInput(false)]

as demonstrated in this example http://paramquery.com/pro/demos/export under ASP.NET tab



PS: Please share the paypal transaction ID in order to have your account upgraded to PRO.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6263
    • View Profile
Re: Export to CSV http error
« Reply #4 on: July 22, 2014, 08:52:08 am »
First you need to setup/configure webmatrix to allow POST requests.

This post might be helpful to you.

http://stackoverflow.com/questions/23434387/webmatrix-how-can-you-enable-the-post-method
« Last Edit: July 23, 2014, 07:27:21 am by paramquery »

janvsc

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Export to CSV http error
« Reply #5 on: July 23, 2014, 01:19:57 am »
First you need to setup/configure webmatrix to allow POST requests.

This post might be helpful to you.

https://www.google.com/analytics/web/?hl=en&pli=1#realtime/rt-overview/a36965243w65204129p66989776/


The link is not useful. It takes me to Google Analytics?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6263
    • View Profile
Re: Export to CSV http error
« Reply #6 on: July 23, 2014, 07:41:11 am »
My bad. I've corrected the URL in my previous post.