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

webresource references missing

3 Answers 44 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Hugh
Top achievements
Rank 1
Hugh asked on 17 Jun 2013, 10:56 PM
I have deployed an ASP.Net app that uses ASP.Net Ajax controls to different servers in different environments and all is fine with the exception of one page within the site that the Telerik controls do not appear correctly.

I've examined the source for the page that works and the page that doesn't and the only difference is the fact the in the head section there are two <link> WebResource references missing on the page that does not work. For reference, the controls that do not display correctly are used on other pages in the site and they display correctly.

If have compared every file in the site (source, DLL, etc.) and they are all identical from server to server.

Any idea why certain WebResource references would not be generated on one server but would be on another?

Hugh

3 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 19 Jun 2013, 09:50 AM
Hi Hugh,

The only case I have seen where our stylesheets are not registered properly in the head section of the page is when the aspx markup is missing the runat="server" attribute for the head element. Could you check if this is the case with this page?

Another thing I can suggest is using the StylesheetManager CDN for this page if the above does not help.


Regards,
Marin Bratanov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Hugh
Top achievements
Rank 1
answered on 19 Jun 2013, 02:50 PM
Hi Marin,

I need to add a little more detail about the problem.

We have a DEV, QA, UAT and PROD environment. Each environment has at least 2 servers and some environments have 8 servers.

The ASP.Net Ajax controls are used on multiple pages and they display correctly on all pages in DEV, QA and UAT. In PROD they display correctly on all pages except for this one page.

So the page in question works fine in all envirnments except for PROD. I have compared the files on all environements and they are all the same.

I've taken the applicaiton (as-is) and copied it to my development machine and the page in question works as expected.

The only thing that I can find that is an issue is when I view the source for the page on PROD there are 9 Telerik webresource references but in all other environments I get 11. For some reason on the PROD servers 2 of the  references are not being included.

Thanks for your help.

Hugh
0
Marin Bratanov
Telerik team
answered on 21 Jun 2013, 01:56 PM
Hi Hugh,

I have never seen such a case with selective links not being generated from identical files.
What I can suggest at this point is
1) finding our which are these stylesheets by using this blog post and comparing the missing resources with the servers that are OK
2) adding these stylesheets in the head section of the page manually. You can obtain them from the [RadControls installation]\Skins folder (where the needed base stylesheets are) and the Skins\[SkinName] for the skin-specific stylesheet. If you need to use various skins you can generate the links in the code-behind according to the Skin property of the control that fails to render them. For this all the skin-specific stylesheets will need to be added in the application.


Regards,
Marin Bratanov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
General Discussions
Asked by
Hugh
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Hugh
Top achievements
Rank 1
Share this question
or