Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Shaun 248 posts 475 karma points
    Nov 19, 2009 @ 18:13
    Shaun
    0

    I Can't seem to compile my control

    Hi.

    I'm building a control to allow members to mess about with their member data. I've added new fields to the membership to take their name, phone number etc.

    I'm building it in VisualStudio 2008 and can't seem to get it to compile.

    I've copied the following .dlls to my bin

    businesslogic

    umbraco

    and added references to them, but each time I try to compile I get

    Error    1    The type or namespace name 'businesslogic' does not exist in the namespace 'umbraco.cms' (are you missing an assembly reference?)    C:\Documents and Settings\me\My Documents\Visual Studio 2008\Projects\myproject\mycontrols\editprofile.ascx.cs  

    I've tried using the following elements

    using System;
    using System.Collections;
    using System.Configuration;
    using System.Data;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using umbraco;
    using umbraco.BusinessLogic;
    using umbraco
    using umbraco.cms.businesslogic.member;

    Can anyone tell me what I'm doing wrong?

    Thanks!

     

  • jaygreasley 416 posts 403 karma points
    Nov 19, 2009 @ 20:26
    jaygreasley
    0

    hey,

    The error says 'are you missing an assembly reference?' So although you have the Using statement, have you added the actual reference to the Umbraco dll's (aka assembly)? Hope this helps

    jay

  • Richard Soeteman 4052 posts 12925 karma points MVP 2x
    Nov 19, 2009 @ 20:34
    Richard Soeteman
    1

    When you want to use the business logic of Umbraco reference at least the following dll's

    - Umbraco
    - Cms
    - BusinessLogic

    If you want to use an Umbraco interface you have to reference the interfaces Dll also.

    Cheers,

    Richard

  • Shaun 248 posts 475 karma points
    Nov 20, 2009 @ 11:29
    Shaun
    0

    aha. Thanks all!

    It turns out I hadn't added the cms dll or referenced it, I popped it in and i'm now getting a very different error, so I think we can count this as a success!

Please Sign in or register to post replies

Write your reply to:

Draft