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

[Solved] System.NullReferenceException when skinning RadEditor

4 Answers 145 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Anders
Top achievements
Rank 1
Anders asked on 03 Oct 2007, 11:49 AM
Hey

I am trying to skin my Prometheus Editor but i can't get it to work.

This works:
<telerik:RadEditor ID="RadEditor1" runat="server" />

This does not:
<telerik:RadEditor ID="RadEditor1" runat="server" Skin="Vista" />

When i do not apply a skin-attribute, it seems like it loads some kind of default skin from the embedded resources in the dll, but whin i apply the skin attribute (Vista, Default, Office2007...) i get the System.NullReferenceException. I have tried both IIS 6.0 and IIS 7.0, tried to deploy the Editor in an existing solution, and tried to make a simple new solution with just one aspx-page with one editor. The errors are the same...

As I understand from your support pages, their should be some of the skins mentioned above available as embedded resourses in the dll, and therefore i suppose it should work without any references two directories with ressource files.

Have anyone experienced the same problems or does anybody have a solution?

Thanks in advance.

Anders
Denmark

4 Answers, 1 is accepted

Sort by
0
Sophy
Telerik team
answered on 03 Oct 2007, 01:14 PM
Hello Anders,

RadEditor "Prometheus" supports two skins at the moment. More skins will be available for the upcoming versions of the control. You can view the Skinning live example for reference.

For convenience I have attached a sample application containing just one RadEditor "Prometheus" and a video to see how ii works. Please, review the attached files an tell me if there is something different in your case.

If the mentioned above is not enough to help you solve the problem, do not hesitate to contact us again explaining what is going wrong.

Sincerely yours,
Sophy
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Anders
Top achievements
Rank 1
answered on 03 Oct 2007, 01:45 PM
Hi Sophy

I took your sample and it worked. So I guess that I must have a problem with my configuration - perhaps in my web.config. 

I will try and use your example as a template, and go from there.

Thank you very muck for the quick help!

Sincerely
Anders
0
Anders
Top achievements
Rank 1
answered on 03 Oct 2007, 02:22 PM
Hello again

It seems like the Telerik.Web.UI.dll which appear in the bin directory when you install the Prometheus suite is not the correct one?

I downloaded the "Futures" exe file and installed it and the dll has i size of approx. 2,5 mb while the one in your sample has a size of approx. 3, 5 mb.

There couldt be a problem with the installation....  or is it just me? :)

Anders
0
Sophy
Telerik team
answered on 03 Oct 2007, 03:05 PM
Hello Anders,

Thank you for the additional information. I used the current official release dll file which is version 2_918 while you use 2_830 which does not support the Vista skin. That is why this problem occurred.




Regards,
Sophy
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Editor
Asked by
Anders
Top achievements
Rank 1
Answers by
Sophy
Telerik team
Anders
Top achievements
Rank 1
Share this question
or