CuteEditorDefaultFilesPath

Last post 11-16-2009, 9:27 AM by [email protected]. 4 replies.
Sort Posts: Previous Next
  •  11-11-2009, 9:44 AM 57055

    CuteEditorDefaultFilesPath

    I submitted this through your support system but got no response... aarrrrgh!

    I am trying to get the CuteEditor working in our Staging environment; however, I am having an issue with the file path and url.

    My development instance works perfectly and lives on our local intranet here:
    http://machinename/myapplicationname/
    (c:\inetpub\wwwroot\myapplicationname)

    However, my Staging and Production environments live behind an Apache-based "translation" layer called "portalservices".  Therefore, their URLs and paths look like this...
     
    Staging:
    http://wwwdev.acponline.org/portalservices/myapplicationname
     (c:\inetpub\wwwroot\acpchapterportal)
     
    Production:
    https://www.acponline.org/portalservices/myapplicationname
    (c:\inetpub\wwwroot\myapplicationname

    Initially (in staging), I entered "<add key="CuteEditorDefaultFilesPath" value="~/cutesoft_client/cuteeditor" />" into the web.config and received an error stating that it could not find the following URL...

    http://wwwdev.acponline.org/myapplicationname/cutesoft_client/cuteeditor/template.aspx
     
    ...which is correct - that URL does not exist.  The URL it *should* detect is...

    http://wwwdev.acponline.org/portalservices/myapplicationname/cutesoft_client/cuteeditor/template.aspx

    Then, I was able to "fake out" the control by entering the following line into the Staging web.config...

    <add key="CuteEditorDefaultFilesPath" value="~/../portalservices/myapplicationname/cutesoft_client/cuteeditor" />
     
    ...and placing a copy of the "cutesoft_client/cuteeditor" files here...
    c:\inetpub\wwwroot\portalservices\myapplicationname\

    However, not only is this not preferred, but now the control draws itself with everything disabled. (wtf)  Again, the same control, code, & configuration works flawlessly in the localhost and development environments.

    The ability to enter a path without the ~/ I would expect would solve my problem.  I'm guessing that the "CuteEditorDefaultFilesPath" is being used by the control in more than one manner, thus the limitation.  Therefore, I suggest splitting apart the various uses of it into separate web.config attributes.

    We have already paid for this control and now I am VERY frustrated.  Please help!
    -Tim
  •  11-11-2009, 10:54 AM 57058 in reply to 57055

    Re: CuteEditorDefaultFilesPath

     
    Production:
    https://www.acponline.org/portalservices/myapplicationname
    (c:\inetpub\wwwroot\myapplicationname

    Initially (in staging), I entered "<add key="CuteEditorDefaultFilesPath" value="~/cutesoft_client/cuteeditor" />" into the web.config and received an error stating that it could not find the following URL...

    http://wwwdev.acponline.org/myapplicationname/cutesoft_client/cuteeditor/template.aspx
     
    ...which is correct - that URL does not exist.  The URL it *should* detect is...

    http://wwwdev.acponline.org/portalservices/myapplicationname/cutesoft_client/cuteeditor/template.aspx
     
     
    Where does this web.config locate?
     
    Where does the cutesoft_client locate?
     
    How did you set up the application? Where does the application folder point to?

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  11-12-2009, 1:16 PM 57102 in reply to 57058

    Re: CuteEditorDefaultFilesPath

    Where does it locate??  Perhaps I wasn't clear when I wrote c:\inetpub\wwwroot\myapplicationname. Both are located in the root of the application.  However, since the control is seemingly unable to "detect" the "portalservices" segment of its URL, I placed an extra copy of the files into the c:\inetpub\wwwroot\portalservices folder
     
    What, exactly, would you like to know when you ask "How did you set up the application?"?

  •  11-12-2009, 2:17 PM 57104 in reply to 57102

    Re: CuteEditorDefaultFilesPath

    1. What't the virtual path of your application?
    2. Have you set it as virtual directory or appliation in your IIS?
    3. What's the physical path of your application?
    4. Have you added the DLLs into your project bin folder? What's the physical path of bin folder?
    5. What's the physical path of CuteEditor client files folder?

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  11-16-2009, 9:27 AM 57177 in reply to 57104

    Re: CuteEditorDefaultFilesPath

    First, let me start by saying that we got it working.
     
    1.  \myapplicationname
    2.  As an application.
    3.  I have already stated this many times above.
    4.  If I hadn't, the CuteEditor would not be working on the Development server. c:\inetpub\wwwroot\myapplicationname\bin
    5.  They are in two places.
        c:\inetpub\wwwroot\myapplicationname\cutesoft_client\cuteeditor
        c:\inetpub\wwwroot\portalservices\myapplicationname\cutesoft_client\cuteeditor
     
    As it turns out, why my "trick" didn't work was because the CuteEditor control was attempting to pass a contenttype of "application/xml" which triggered one of our layers of security as a malformed response/request object. After a little Googling, while "application/xml" is not recommended (noted as too generic), it is not illegal.  We created the exception in the security layer in order to allow the transmission, and eureka!
View as RSS news feed in XML