Support forums
in

MVC2 - 500 Internal Server Error

Last post 04-01-2016, 8:19 AM by Kenneth. 17 replies.
Sort Posts: Previous Next
  •  01-19-2011, 10:26 PM 65801

    MVC2 - 500 Internal Server Error

    Hi,
     
    We just purchased the AjaxUploader control, and we are getting the following error message randomly when we upload an image.  This problem happens more frequently on smaller images.
     
    ---------------------------
    Message from webpage
    ---------------------------
    http error1 :500:Internal Server Error
    ---------------------------
    OK   
    ---------------------------
     I have disabled the "Show friendly HTTP error messages" as posted on another thread related to 500 Internal Server Error.
     
    Any help or suggestions will be greatly appreciated.
     
    Thanks,
    Allan 
  •  01-19-2011, 11:31 PM 65802 in reply to 65801

    Re: MVC2 - 500 Internal Server Error

    Nevermind.  The problem is in our existing code.  Thanks anyway.
  •  04-16-2011, 12:54 PM 67196 in reply to 65802

    Re: MVC2 - 500 Internal Server Error

    I am having the same error in my asp.net page. Please can anyone help me diagnose what sort of problem could cause this? No errors seem to raised in the code, although I have noticed that the message 'compilation error' flashes up briefly in the browser tab title, when I first start the app.  I also have the CKeditor on the same page, and if I remove it the error goes away. Could there be some incompatibility?
     
    I have also disabled the friendly error messages as suggested before, but there is no difference in the message displayed.
     
    The error only occurs when I upload a second file (not as part of a multiple selection, but by clicking the uploader button a second time).
     
    Suggestions or workarounds welcome!
     
    Many thanks
  •  04-17-2011, 10:23 PM 67206 in reply to 67196

    Re: MVC2 - 500 Internal Server Error

    Hi EllenD,
     
    Are you use MVC2 with AjaxUploader too?
     
    Is you site online? If so, can you send me the test page url and show me the steps to reproduce this issue?
     
    Do you get the same issue witht the simple page like below?
     
    <%@ Page Language="C#" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>example</title>
    </head>
    <body>
        <form runat="server">
            <CuteWebUI:Uploader ID="uploader1" runat="server">
            </CuteWebUI:Uploader>
        </form>
    </body>
    </html>
     
    Keep me posted.
     
    Regards,
     
    ken
  •  04-18-2011, 5:36 AM 67214 in reply to 67206

    Re: MVC2 - 500 Internal Server Error

    Hi Ken,
     
    Thanks for your reply - I'll send you a PM with the url to my site. I'm using ASP.NET (VB), not MVC. The error does not occur with a simple page, only one which also has the CKeditor on as well. Could it be something like a conflict between function names or something used by the Ajaxuploader and the editor? Just a thought.
     
    Ellen
  •  04-27-2011, 8:57 AM 67348 in reply to 67214

    Re: MVC2 - 500 Internal Server Error

    Hi Ken,
     
    Please could you let me know if you got my PM regarding this issue? (sent 18th April)
     
    Many thanks
     
    Ellen
  •  05-09-2011, 3:45 AM 67492 in reply to 67348

    Re: 500 Internal Server Error

    Hi,
     
    I could really use some help on this please - it is the remaining issue preventing my project from going live.
     
    The issue is the error message box 'http error1 :500:Internal Server Error' which comes when uploading the second file in the same session (not as part of a multiple selection).
     
    So I select one file, upload it, fine. Select another file, upload it, get error message.
     
    Thanks
  •  05-09-2011, 9:20 PM 67508 in reply to 67492

    Re: 500 Internal Server Error

    Hi EllenD,
     
    Please send the info to Kenneth@CuteSoft.net directly and include all the detail. Sorry for late. I will check it as soon as possible.
     
    Regards,
     
    ken
  •  06-26-2012, 9:23 AM 74012 in reply to 67508

    Re: 500 Internal Server Error

    Hi,
     
    I got the same problem.
     
    I'm using CKeditor on a webpage on which is also the ajaxuploader. If I, server side, add content to the CKeditor the uploader stops working.
     
    So if I use this in the code:
     
    DescriptionCKEditor.Text = Description; //Assign value to CKeditor
     
    the uploader gives next error:
     
    http error1 :500:Internal Server Error 
     
    The value of Description is e.g.:  <p>\r\n\tertre</p>\r\n which is generated by CkEditor if you enter tertre in the editbox.
     
     
    Could anyone tell me what's going on here? I really don't have a clue.
     
    Thanks in advance. 
     
     
  •  06-26-2012, 12:15 PM 74015 in reply to 74012

    Re: 500 Internal Server Error

    Hi willem321,
     
    I just downloaded the CKEditor 3.6.2 and tested with AjaxUploader, it work fine. I did not get any error. Below is my test page code.
     
    1. <%@ Page Language="C#" AutoEventWireup="true" %>  
    2.   
    3. <%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %>  
    4. <%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>  
    5.   
    6. <script language="C#" runat="server">  
    7.     protected void Page_Load(object sender, EventArgs e)  
    8.     {  
    9.         CKEditor1.Text = "some content";  
    10.     }  
    11. </script>  
    12.   
    13. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
    14. <html xmlns="http://www.w3.org/1999/xhtml">  
    15. <head runat="server">  
    16.     <title>demo</title>  
    17. </head>  
    18. <body>  
    19.     <form id="form1" runat="server">  
    20.         <CKEditor:CKEditorControl ID="CKEditor1" runat="server">  
    21.         </CKEditor:CKEditorControl>  
    22.         <CuteWebUI:UploadAttachments ID="uploader1" runat="server">  
    23.         </CuteWebUI:UploadAttachments>  
    24.     </form>  
    25. </body>  
    26. </html>  
    Regards,
     
    Ken 
  •  06-28-2012, 4:33 AM 74029 in reply to 74015

    Re: 500 Internal Server Error

    Hi Kenneth,
     
    Thanks for your reply. Indeed your code works fine. But if I assign some CKEditor generated content the error will be there, also in your example.
     
    If I change 
     
    CKEditor1.Text = "some content";
     
    with:
     
    CKEditor1.Text = "<p>some content</p>"; 
     
    the error will be there.
    Regards,
     
    Willem 
  •  06-28-2012, 6:20 AM 74031 in reply to 74029

    Re: 500 Internal Server Error

    Hi willem321,
     
    Please set ValidateRequest="false" 
     
    <%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" %> 
     
    Regards,
     
    Ken 
  •  06-29-2012, 7:40 AM 74042 in reply to 74031

    Re: 500 Internal Server Error

    Hi Ken,
     
    Sorry, but I still get the same error.
     
    Regards,
     
    Willem 
  •  06-29-2012, 10:08 AM 74045 in reply to 65801

    Re: MVC2 - 500 Internal Server Error

    Very often I face the problem but I don't know how to avoid it permanently. Any solution ?
    ray ban sunglasses
  •  06-29-2012, 12:31 PM 74054 in reply to 74042

    Re: 500 Internal Server Error

    Hi willem321,
     
    Please try the example page below. It works very well for me.
     
    1. <%@ Page Language="C#" AutoEventWireup="true"  ValidateRequest="false" %>    
    2.     
    3. <%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %>    
    4. <%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>    
    5.     
    6. <script language="C#" runat="server">    
    7.     protected void Page_Load(object sender, EventArgs e)    
    8.     {  
    9.         CKEditor1.Text = "<p>some content</p>";   
    10.     }    
    11. </script>    
    12.     
    13. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">    
    14. <html xmlns="http://www.w3.org/1999/xhtml">    
    15. <head id="Head1" runat="server">    
    16.     <title>demo</title>    
    17. </head>    
    18. <body>    
    19.     <form id="form1" runat="server">    
    20.         <CKEditor:CKEditorControl ID="CKEditor1" runat="server">    
    21.         </CKEditor:CKEditorControl>    
    22.         <CuteWebUI:UploadAttachments ID="uploader1" runat="server">    
    23.         </CuteWebUI:UploadAttachments>    
    24.     </form>    
    25. </body>    
    26. </html>    
    Regards,
     
    Ken 
  •  06-28-2013, 9:07 AM 77621 in reply to 65801

    Re: MVC2 - 500 Internal Server Error

    add <httpRuntime requestValidationMode="2.0" /> and <pages validateRequest="false"></pages>
    in  your  webconfig

  •  04-01-2016, 2:14 AM 83118 in reply to 65801

    Re: MVC2 - 500 Internal Server Error

     Getting same error? What to do
  •  04-01-2016, 8:19 AM 83121 in reply to 83118

    Re: MVC2 - 500 Internal Server Error

    hi jambopk,

     

    please enable the debug function of your project and get the actual error message first and post here. so we can find out what problem you got.

     

    Regards,

     

    Ken 

View as RSS news feed in XML
Powered by Community Server (Commercial Edition), by Telligent Systems