This is a migrated thread and some comments may be shown as answers.

register telerik assemblies in web.config

6 Answers 1306 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 20 Mar 2009, 08:51 PM
this is probably asked and answered already, but I have searched a lot and can't find it.
Can somebody show an example of a web.config file with all Telerik assemblies in the web.config. I would prefer not to have to regiester components on every page. I just downloaded the trial for RadControls for  ASP.Net AJAX.
I am looking for an example of all components being registered in the config file.

Thanks

6 Answers, 1 is accepted

Sort by
0
Jim
Top achievements
Rank 1
answered on 20 Mar 2009, 08:52 PM
One more question, do I have to GAC all the telerik components to register them in the web.config?
0
Atanas Korchev
Telerik team
answered on 23 Mar 2009, 08:17 AM
Hi Jim,

What kind of registration do you need? If you mean HTTP handlers and modules you can check the web.config delivered with our online examples. It can be found in the "Live Demos" folder.

To register the tag prefix of our control in web.config you can use the following XML snippet within the <pages><controls> tag in web.config:

<add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />

And lastly - you don't need to add Telerik.Web.UI.dll assembly to GAC in order to use RadControls for ASP.NET Ajax.


I hope this helps,
Albert
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Jim
Top achievements
Rank 1
answered on 23 Mar 2009, 07:21 PM
So, I am using the multi column radcombo example that has been provided on this website, but I am getting the following error when I load the solution in Visual Studio 2008: unrecognized tag prefix or device filter 'telerik'

I am getting the sqwiggly green underline for the telerik:RadComboBox control, and no support in intellisense. There are also errors for all the properties saying that upper case characters are not allowed?

This error is on the DefaultCS.aspx page. The solution builds without error, but I get no property support when I add a space in the control declaration?

I am also receiving the same problem with the webservicesettings tag.


    <form runat="server" id="mainForm" method="post" style="width: 100%">  
    <asp:ScriptManager ID="ScriptManager" runat="server" >  
        <Scripts>  
            <asp:ScriptReference Path="~/js/prototype-1.6.0.2.js"  />  
            <asp:ScriptReference Path="~/js/comboClientSide.js" />  
        </Scripts>  
    </asp:ScriptManager>  
          
    <telerik:RadComboBox runat="server" ID="RadComboBox1" 
        Skin="Default" Height="200px" Width="300px" 
        DropDownWidth="950px" SowMoreResultsBox="true" 
        EnableVirtualScrolling="true" ChangeTextOnKeyBoardNavigation="false" 
        OnClientItemsRequesting ="OnClientItemsRequesting" 
        OnClientItemsRequested="OnClientItemsRequested" 
        OnClientDropDownOpening="OnClientDropDownOpening" 
        EnableLoadOnDemand="true">  
        <HeaderTemplate>  
            <ul style="list-style:none">  
                <li>  
                    <span class="column" style="width:180px;">Name</span>  
                    <span class="column" style="width:180px;">Address</span>   
                    <span class="column" style="width:100px;">Zip</span>   
                    <span class="column" style="width:100px;">City</span>   
                    <span class="column" style="width:100px;">Region</span>   
                    <span style="width:100px;">Country</span>  
                </li>  
            </ul>  
        </HeaderTemplate>  
    <WebServiceSettings Method="GetCompanyNames" Path="Products.asmx" />              
    </telerik:RadComboBox>  
    </form>  
 

Also, how do you add an image to a post?
0
Atanas Korchev
Telerik team
answered on 24 Mar 2009, 08:15 AM
Hi Jim,

Attachments are not allowed in forum posts. You should open a support ticket in order to attach a file.

As for the issue - could you provide additional details? Which version of visual studio are you using? There is a known error with Visual Studio 2008 pre-SP1 with design time support. Do you see errors when you go to design mode? If yes please check this blog post for additional info.

If this is not the case I suggest you send us your web site in a support ticket so we can troubleshoot it.

Regards,
Albert
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Atanas Korchev
Telerik team
answered on 24 Mar 2009, 08:15 AM
Hi Jim,

Attachments are not allowed in forum posts. You should open a support ticket in order to attach a file.

As for the issue - could you provide additional details? Which version of visual studio are you using? There is a known error with Visual Studio 2008 pre-SP1 with design time support. Do you see errors when you go to design mode? If yes please check this blog post for additional info.

If this is not the case I suggest you send us your web site in a support ticket so we can troubleshoot it.

Regards,
Albert
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Jim
Top achievements
Rank 1
answered on 25 Mar 2009, 12:18 AM
Thanks for the reply. I thought I had already installed SP1, but I installed it (maybe for a second time), and now it works fine.
Tags
General Discussions
Asked by
Jim
Top achievements
Rank 1
Answers by
Jim
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or