An invalid character was specified in the Path parameter for the MapPath method.

Last post 11-03-2009, 2:53 PM by robinsong. 3 replies.
Sort Posts: Previous Next
  •  11-03-2009, 9:11 AM 56863

    An invalid character was specified in the Path parameter for the MapPath method.

    I am getting the same error as this post but it is still giving me an error.
    http://cutesoft.net/forums/thread/28219.aspx
     
     


    The page cannot be displayed
    There is a problem with the page you are trying to reach and it cannot be displayed.

    --------------------------------------------------------------------------------

    Please try the following:

    Click the Refresh button, or try again later.

    Open the localhost home page, and then look for links to the information you want.
    HTTP 500.100 - Internal Server Error - ASP error
    Internet Information Services

    --------------------------------------------------------------------------------

    Technical Information (for support personnel)

    Error Type:
    Server.MapPath(), ASP 0173 (0x80004005)
    An invalid character was specified in the Path parameter for the MapPath method.
    /timiskaminghu/www/CuteEditor/CuteEditor_Files/Dialogs/filePost.asp, line 136


    Browser Type:
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727)

    Page:
    POST 4705 bytes to /timiskaminghu/www/CuteEditor/CuteEditor_Files/Dialogs/filePost.asp

    POST Data:
    error '80020009'
    Exception occurred.

    /iisHelp/common/500-100.asp, line 223
     
     
     
     
     
     
     
    Here is my code for default.asp sample provided.  Everything works except uploading images.
     
      <%
       Dim editor
       Set editor = New CuteEditor
       editor.ID = "Editor1"
       editor.Text = "Type here"
       editor.FilesPath = "CuteEditor_Files"
       editor.EditorBodyStyle = "font:normal 12px arial;"
       editor.EditorWysiwygModeCss = "asp.css"
       editor.Draw()
                
       ' Request.Form(ID) access from other page
      %>
     
    That is located at D:\Inetpub\wwwroot\sample_website\www\CuteEditor
     
    I have the files here D:\Inetpub\wwwroot\Timiskaminghu\www\CuteEditor\CuteEditor_Files
     
  •  11-03-2009, 10:26 AM 56868 in reply to 56863

    Re: An invalid character was specified in the Path parameter for the MapPath method.

  •  11-03-2009, 10:37 AM 56871 in reply to 56868

    Re: An invalid character was specified in the Path parameter for the MapPath method.

    <security name="MaxImageSize">1000</security>

    <security name="MaxMediaSize">100000</security>

    <security name="MaxFlashSize">1000</security>

    <security name="MaxDocumentSize">1000</security>

    <security name="MaxTemplateSize">1000</security>

    <security name="ImageGalleryPath">uploads</security>

    <security name="MediaGalleryPath">uploads</security>

    <security name="FlashGalleryPath">uploads</security>

    <security name="TemplateGalleryPath">templates</security>

    <security name="FilesGalleryPath">uploads</security>

    <security name="AllowUpload">true</security>

    <security name="AllowCreateFolder">true</security>

    <security name="AllowRename">true</security>

    <security name="AllowDelete">true</security>
     
    I set this in Default.config (CuteEditor\CuteEditor_Files\Configuration\Security)  Is that what you mean?
     
  •  11-03-2009, 2:53 PM 56886 in reply to 56871

    Re: An invalid character was specified in the Path parameter for the MapPath method.

    I did some changes an it is working.
View as RSS news feed in XML