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;
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
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!
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
I've tried using the following elements
Can anyone tell me what I'm doing wrong?
Thanks!
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
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
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!
is working on a reply...