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

[Solved] Lost Control Rendering in VS2010 Beta2

2 Answers 97 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Nicholas Westbrook
Top achievements
Rank 1
Nicholas Westbrook asked on 03 Feb 2010, 09:03 PM
I've been testing Telerik controls with Visual Studio 2010 Beta 2 for a few weeks now. I had some of the issues talked about with Beta 2, but was able to use the work-arounds to get the controls to render.

Recently I had to pull the whole project down from a hosted SVN repository. Since then, the Telerik controls aren't rendering correctly. I have Intellisence on the code-behind, but I see "Error Creating Control" errors when I view the APSX page in Design mode (not that I use design mode, but I was testing work-arounds).

- I've gone through all the work-arounds again (see links for steps I've followed) and it's not fixing anything.
- I've double checked that the correct files are in the bin directory
- I've check that the reference to Telerik.Web.UI is in the project
- I've tried placing the same files in the [VisualStudioInstallDir]\Common7\IDE\PrivateAssemblies directory

The controls seems to be partially rendering, but it's like the styles aren't being applied. I'm not sure if I'm missing something else. I've made sure the DLL's are in the bin directory of the web project. I've uninstalled and reinstalled the newest demo build... nothing seems to work.

Is there anything else I should be double checking?

I've followed steps in the following posts and it's not working:
http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/radcontrols-and-vs2010-beta-2-problem.aspx
http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/radcontrols-design-time-and-intellisense-in-visual-studio-2010-beta2.aspx

2 Answers, 1 is accepted

Sort by
0
Nicholas Westbrook
Top achievements
Rank 1
answered on 03 Feb 2010, 09:57 PM
This appears to be the error causing me to pull my hair out. I didn't notice this earlier, it might help in troubleshooting:

Firefox Error Console says: "Error: The stylesheet http://localhost:4317/WebResource.axd?d=Wk5A1CNQZgJ1ZpbZ_yjkvasTdVCQ2BIt5hpoERiWwZya-JP7uYXXYzLJhDxmulEt1r8Em-rltro_VKyrA1dpFA2&t=633989819860000000 was not loaded because its MIME type, "text/html", is not "text/css".
Source File: http://localhost:*port*/*page path* Line: 0"

There are 4 similar errors and a bunch more errors that don't make much sense. They're all .NET generated code type errors. In any other circumstance I would think it was just .NET screwing up, but the Telerik controls are the only thing not rendering right. Everything else seems to work.

It appears to be talking about this:

<link href="/WebResource.axd?d=Wk5A1CNQZgJ1ZpbZ_yjkvasTdVCQ2BIt5hpoERiWwZwYv2eQqSJWbKxjKCsIHRv50&amp;t=633989819860000000" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /> 
<link href="/WebResource.axd?d=Wk5A1CNQZgJ1ZpbZ_yjkvasTdVCQ2BIt5hpoERiWwZya-JP7uYXXYzLJhDxmulEt1r8Em-rltro_VKyrA1dpFA2&amp;t=633989819860000000" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /> 
<link href="/WebResource.axd?d=Wk5A1CNQZgJ1ZpbZ_yjkvasTdVCQ2BIt5hpoERiWwZwPjLqf3mflnDZO0GFxZK910&amp;t=633989819860000000" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /> 
<link href="/WebResource.axd?d=Wk5A1CNQZgJ1ZpbZ_yjkvasTdVCQ2BIt5hpoERiWwZyrSiDh-YCjcPtJkhKmiBtVVHBvhmmsnqWLSmA4H_bBAQ2&amp;t=633989819860000000" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /> 

0
Nicholas Westbrook
Top achievements
Rank 1
answered on 03 Feb 2010, 10:04 PM
I figured out what's causing the issue, though I have no clue why. The routes I added should not have affected the pages I was trying to fix the Telerik controls on.

I had added routing to the Global.aspx.cs Application_Start method. When I commented that back out the Telerik controls work again (specifically the TreeView and the editor).

My guess is that maybe I'm not using the .NET 4 routing correctly since this is the first time implementing it... we'll see...
Tags
General Discussions
Asked by
Nicholas Westbrook
Top achievements
Rank 1
Answers by
Nicholas Westbrook
Top achievements
Rank 1
Share this question
or