Just recently after installing the latest ASP AJAX controls, Visual Studio has started to rewrite some of the aspx code depending on which Telerik control I happen to have selected in design view.
For example, 'telerik:AjaxSetting' has been rewritten as 'telerik.web.ui.ajaxsetting'. Once this has happended, the page won't build and the design view object won't render.
Can you suggest why this has started to happen as it take some time to make all the corrections, particularly for a complex RadGrid.
Regards,
Jonathan
For example, 'telerik:AjaxSetting' has been rewritten as 'telerik.web.ui.ajaxsetting'. Once this has happended, the page won't build and the design view object won't render.
Can you suggest why this has started to happen as it take some time to make all the corrections, particularly for a complex RadGrid.
Regards,
Jonathan
4 Answers, 1 is accepted
0
Hi Jonathan,
We identified a similar issue, which was related to the telerik tagprefix registration in the web.config file. We were not able to reproduce this locally though and I will need some information trying to help you.
Can you please, check the following:
Here are some details:
If you have the telerik tagprefix declared in the web.config file, you don't need the Register directives in the ASPX/ASCX files and you can remove them safely. The assembly attribute of the telerik tagprefix in the web.config file should equal "Telerik.Web.UI" if you use a BIN reference, but it should equal to the fully qualified name of the assembly (e.g. "Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4") if a GAC reference is used.
I'm looking forward to your reply.
Best regards,
Erjan Gavalji
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
We identified a similar issue, which was related to the telerik tagprefix registration in the web.config file. We were not able to reproduce this locally though and I will need some information trying to help you.
Can you please, check the following:
- Open the GAC (Windows Explorer, navigate to %WinDir%\assembly) and check if Telerik.Web.UI and Telerik.Web.Design assemblies exist there. Please, send us their versions if found.
- Which version of the Telerik.Web.UI assembly does your project use (using the WebSite References box)? Is it a BIN reference, or a GAC reference?
- Do you have Visual Studio 2008 SP1 installed (via the Help > About box)?
- Open the web.config file of your project. It there the following entry:
<add tagPrefix="telerik" namespace="Telerik.Web.UI"...?
If sucn an entry exists, can you send it to us? - Does the page contain Register directive for the telerik tagprefix?
Here are some details:
If you have the telerik tagprefix declared in the web.config file, you don't need the Register directives in the ASPX/ASCX files and you can remove them safely. The assembly attribute of the telerik tagprefix in the web.config file should equal "Telerik.Web.UI" if you use a BIN reference, but it should equal to the fully qualified name of the assembly (e.g. "Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4") if a GAC reference is used.
I'm looking forward to your reply.
Best regards,
Erjan Gavalji
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Jonathan
Top achievements
Rank 1
answered on 04 Sep 2009, 09:21 AM
Hello Erjan,
Here is the info you requested:
Telerik.Web.Design version 2009.2.826.35
Here is the info you requested:
- Open the GAC (Windows Explorer, navigate to %WinDir%\assembly) and check if Telerik.Web.UI and Telerik.Web.Design assemblies exist there. Please, send us their versions if found.
Telerik.Web.Design version 2009.2.826.35
- Which version of the Telerik.Web.UI assembly does your project use (using the WebSite References box)? Is it a BIN reference, or a GAC reference?
The only version I have installed on my PC is 2009.2.826.35 and there is a copy of the dll in the BIN folder of the web site.
- Do you have Visual Studio 2008 SP1 installed (via the Help > About box)?
- Open the web.config file of your project. It there the following entry:
<add tagPrefix="telerik" namespace="Telerik.Web.UI"...?
If sucn an entry exists, can you send it to us?
There is no entry in web.config for this tagPrefix.
- Does the page contain Register directive for the telerik tagprefix?
Yes: <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
Hope this helps.
0
Hi Jonathan,
Thanks for the detailed report! Everything seems just normal and I don't have a clue of why could the IDE add wrong tags. Can you try removing the Register directive from the page and adding the following entry to your web.config file?
<configuration>
...
<system.web>
...
<pages>
...
<controls>
...
<add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
and check if the problem will continue?
If you still experience the unknown tags, please, replace the assembly="Telerik.Web.UI" entry above with the following:
assembly="Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
Let me know if that helps.
Kind regards,
Erjan Gavalji
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Thanks for the detailed report! Everything seems just normal and I don't have a clue of why could the IDE add wrong tags. Can you try removing the Register directive from the page and adding the following entry to your web.config file?
<configuration>
...
<system.web>
...
<pages>
...
<controls>
...
<add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
and check if the problem will continue?
If you still experience the unknown tags, please, replace the assembly="Telerik.Web.UI" entry above with the following:
assembly="Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
Let me know if that helps.
Kind regards,
Erjan Gavalji
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Jonathan
Top achievements
Rank 1
answered on 04 Sep 2009, 11:09 AM
Thanks Erjan,
I have already added the tagprefix to the site's web.config and the IDE seems to have stopped rewriting the tags. Perhaps this suggestion worked, perhaps it was just VS2008 feeling ill. After all, it is a Microsoft product!
Regards,
Jonathan
I have already added the tagprefix to the site's web.config and the IDE seems to have stopped rewriting the tags. Perhaps this suggestion worked, perhaps it was just VS2008 feeling ill. After all, it is a Microsoft product!
Regards,
Jonathan