BuildProvider
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
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
Hi John,
Could you try suggestions provided in these posts
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
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
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
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
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
Hello John,
Please take a look at the attached video where I used your class.
All the best,
Ivan Dimitrov
the Telerik team
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