Re: Cannot add to VS2008 toolbox, no intellisense

  •  08-12-2008, 3:38 AM

    Re: Cannot add to VS2008 toolbox, no intellisense

    Adam, many thanks for the reply.
     
    I have done some investigation of my own, and have managed to get the Editor added to the toolbox.  From the Choose Items dialog, I had to browse to the CuteEditor.dll in the Framework 2.0/bin directory (on my Desktop), and add it from there.
     
    <EDIT>
    Apologies for the mess of a post!  I have managed to get the editor to work, but only in Web Application projects.  Is it possible to use the editor in a standard web site?  In other words, a site which is accessed through VS by File --> Open --> Web Site, then browse to shared network folder?
     
    The following part of this post are the errors I get through trying to use the editor in this sort of environment.
    </EDIT>
     
    ------------------------------------------------------------------------------------------------------------------------------------------------- 
    I can now drag it onto an aspx page, whereupon it adds CuteEditor.dll and cuteeditor.lic to my bin folder, <%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %> and <ce:editor runat="server"></ce:editor> to my page.
     
    However, the ce part of <ce:editor runat="server" /> is returning an error "Unrecognized tag prefix or device filter 'ce'", and after adding an id to the editor, I cannot refer to it in my code.  There is no intellisense anywhere.
     
    An example page:
     
    <%@ Page Language="C#" %>
    <%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <script runat="server">
        void Page_Load()
        {
            cute1.visible = true;
        }
    </script>

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Cute Test</title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            <ce:editor id="cute1" runat="server"></ce:editor>
        </div>
        </form>
    </body>
    </html>

    When I try and browse to this page, I get the following error:
     
    Compiler Error Message: CS1061: 'CuteEditor.Editor' does not contain a definition for 'visible' and no extension method 'visible' accepting a first argument of type 'CuteEditor.Editor' could be found (are you missing a using directive or an assembly reference?)

    Source Error:


    Line 6:      void Page_Load()
    Line 7: {
    Line 8: cute1.visible = true;
    Line 9: }
    Line 10: </script>
     
    If it makes any difference, this is a .NET 3.5 web site being developed with Visual Studio 2008 Professional Edition on an XP SP3 machine.  All files are stored remotely on our domain server.
     
    EDIT: I have just tried to build the solution, and apart from the unrecognized tag prefix mentioned above, I am getting 24 of these errors:

    Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.    S:\WEBSERVER\CWC02_CMS\CuteSoft_Client\CuteEditor\Dialogs\Tag\tag_style_text.ascx    1
     
    The only difference between the errors is the file name, which includes tag_hr.ascx, tag_select.ascx, tag_style_other.ascx, tag_a.ascx, tag_style_layout.ascx, tag_div.ascx, tag_form.ascx, Tag_li.ascx, tag_inserttable.ascx.  Let me know if you want the full list.

View Complete Thread