HTTP 500.Error processing request.

  1. 11 months ago

    Hello,

    When I want to edit the core scripts, I have the following message:
    Description: HTTP 500.Error processing request.

    Details: Request validation detected a potentially dangerous input value from the client and aborted the request. This might be an attemp of using cross-site scripting to compromise the security of your site. You can disable request validation using the 'validateRequest=false' attribute in your page or setting it in your machine.config or web.config configuration files. If you disable it, you're encouraged to properly check the input values you get from the client.<br>
    You can get more information on input validation <a href="http://www.cert.org/tech_tips/malicious_code_mitigation.html">here</a>.
    Exception stack trace:
    at System.Web.HttpRequest.ThrowValidationException (System.String name, System.String key, System.String value) [0x00041] in <843cde98ab8b40878319d3e0f2707fbc>:0
    at System.Web.HttpRequest.ValidateNameValueCollection (System.String name, System.Collections.Specialized.NameValueCollection coll, System.Web.Util.RequestValidationSource source) [0x00053] in <843cde98ab8b40878319d3e0f2707fbc>:0
    at System.Web.HttpRequest.get_Form () [0x00025] in <843cde98ab8b40878319d3e0f2707fbc>:0
    at System.Web.UI.Page.DeterminePostBackMode () [0x0003a] in <843cde98ab8b40878319d3e0f2707fbc>:0
    at System.Web.UI.Page.InternalProcessRequest () [0x0001b] in <843cde98ab8b40878319d3e0f2707fbc>:0
    at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x0005f] in <843cde98ab8b40878319d3e0f2707fbc>:0
    Version Information: 5.0.1.1 (2017-02/5077205 Thu May 25 09:19:18 UTC 2017); ASP.NET Version: 4.0.30319.42000

    Thank you for your help.

    Easy fix.

    Open Web.config in the frontend folder, not the api folder.
    Find

    <httpRuntime targetFramework="4.5" />

    Change it to

    <httpRuntime targetFramework="4.5" requestValidationMode="2.0" />

    Restart apache

  2. clonedeploy

    20 Oct 2017 Administrator

    That is strange, what OS did you install on? You can edit them directory from the filesystem, in the application or api private scripts folder

  3. I am on ubuntu 16.04.3 LTS Server
    I followed your procedure very well explained on the update of 1.2 to 1.3

    Yes, I already edit the script from the directory:
    /var/www/html/clonedeploy/api/private/clientscripts/

    Mais nano n'est pas aussi pratique que votre interface web.

  4. clonedeploy

    20 Oct 2017 Administrator

    Must be a bug with mono, i'll look into it. Works fine when installed on Windows. For now just edit them in the filesystem.

  5. Sorry, I just realized that I wrote in French.
    Your web interface is very useful for editing script files.

  6. clonedeploy

    20 Oct 2017 Administrator

    I believe it's a simple fix in web.config. I'll post a fix a little later.

  7. Thank you very much for your availability and your help.

  8. clonedeploy

    21 Oct 2017 Administrator Answer
    Edited 11 months ago by clonedeploy

    Easy fix.

    Open Web.config in the frontend folder, not the api folder.
    Find

    <httpRuntime targetFramework="4.5" />

    Change it to

    <httpRuntime targetFramework="4.5" requestValidationMode="2.0" />

    Restart apache

  9. it works, it's perfect.
    Thank you

 

or Sign Up to reply!