BuildProvider

Posted by Community Admin on 03-Aug-2018 16:07

BuildProvider

All Replies

Posted by Community Admin on 19-Nov-2010 00:00

Hello,

I just came from the version 3.7 and I'm trying to use a custom control that I used before mycontrol.dll but I got this message.

What I need to do?

Thanks in advance,

John Camberos

Posted by Community Admin on 19-Nov-2010 00:00

Hello John,

Have you recompiled the control and added all needed references? Controls registration in Sitefinity 4.0 is different from this one used in 3.x

Best wishes,
Ivan Dimitrov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 19-Nov-2010 00:00

Hello Ivan,

I did the control registration as shown on the tutorial and I still got the same result, I have try to create a new control (Hello World Control) the .ascx works perfect but I need to use as .dll and try the same control in .dll and I got the same message.

Thanks

Posted by Community Admin on 21-Nov-2010 00:00

Hi John,

Could you try suggestions provided in these posts


Best wishes,
Ivan Dimitrov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 22-Nov-2010 00:00

Hello Ivan,

I try that solutions before and doesn't work, I'm getting the same message. Here is the screen shoot with the .ascx running and the .dll with the message

I got the message intermediately I drag the control into the web.

Thank in advance,
John

Posted by Community Admin on 22-Nov-2010 00:00

Hi John,

Have you added BuildProvidersToAttribute in the machine or web.config? This error does not seem to be related to our code.

Regards,
Ivan Dimitrov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 23-Nov-2010 00:00

Hey Ivan,

I'm not really sure what is going on, but I used the control outside SiteFinity and is working, but I try to use it inside SiteFinity and I got that message.

I have tried to uninstall and reinstall SiteFinity, also, I changed many time the web.config inside SiteFinity with no positive results.

Regards,
John

Posted by Community Admin on 23-Nov-2010 00:00

Hello John,

Could you sent a sample code that I can compile and see the issue locally? If you create  a class library and a class which inherits from CompositeControl and compile this to a dll ( without adding any other code) do you get the same error.

Sincerely yours,
Ivan Dimitrov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 23-Nov-2010 00:00

Hey Ivan,

I'm creating a new Project -> ASP.NET Server Control, I'm using the default code:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ServerControl

    [DefaultProperty("Text")]
    [ToolboxData("<0:ServerControl1 runat=server></0:ServerControl1>")]
    public class ServerControl1 : CompositeControl
   
        [Bindable(true)]
        [Category("Appearance")]
        [DefaultValue("")]
        [Localizable(true)]
        public string Text
       
            get
           
                String s = (String)ViewState["Text"];
                return ((s == null) ? "[" + this.ID + "]" : s);
           

            set
           
                ViewState["Text"] = value;
           
       

        protected override void RenderContents(HtmlTextWriter output)
       
            output.Write(Text);
       
   


I have tried inherit from CompositeControl also from WebControl with same results.

I build the solution, and then I import the dll file to SiteFinity as shown on the tutorial.

Thanks,
John

Posted by Community Admin on 23-Nov-2010 00:00

Hello John,

Please take a look at the attached video where I used your class.

All the best,
Ivan Dimitrov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 23-Nov-2010 00:00

Hey Ivan,

That was a nice solution, but I was looking to import a .dll no to create a new project inside the project created by SiteFinity. Anyway, I found the solution, the problem was that my control has this namespace: my_control and the assembly name was: my control. When I add it to SiteFinity I used my_control that was the reason it was asking for the BuildProvider.

Thank you for the help,

Best regards,
John

This thread is closed