Gian-Franco Salvato
Top achievements
Rank 1
Gian-Franco Salvato
asked on 16 Nov 2007, 03:40 PM
hi all
try to add telerik editor webpart into sharepoint webpart area.
installation ok - can use editor in lists over the site feature.
always got this exception:
-----------------------------
[NullReferenceException: Object reference not set to an instance of an object.]
Telerik.RadEditorUtils.RadControl.RenderRuntimeSkin() +14
Telerik.RadEditorUtils.RadControl.Page_PreRenderComplete(Object sender, EventArgs e) +10
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +2058052
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1566
-----------------------------
after this, page cannot be accessed...any hints.
thx a lot
tom
p.s. version 4.4.0
try to add telerik editor webpart into sharepoint webpart area.
installation ok - can use editor in lists over the site feature.
always got this exception:
-----------------------------
[NullReferenceException: Object reference not set to an instance of an object.]
Telerik.RadEditorUtils.RadControl.RenderRuntimeSkin() +14
Telerik.RadEditorUtils.RadControl.Page_PreRenderComplete(Object sender, EventArgs e) +10
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +2058052
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1566
-----------------------------
after this, page cannot be accessed...any hints.
thx a lot
tom
p.s. version 4.4.0
5 Answers, 1 is accepted
0
Hi ,
Do you have a code block (<%= ... %>) in your page header? Our control tries to add its CSS styles in the page header. The head tag should have a runat="server" attribute and there should be no code blocks inside. If possible, send us the ASPX code for your web part page so we can review it here.
Also, verify that the skin, which is set in the ConfigFile.xml file is present in the RadControls/Editor/Skins/ folder.
Greetings,
Lini
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Do you have a code block (<%= ... %>) in your page header? Our control tries to add its CSS styles in the page header. The head tag should have a runat="server" attribute and there should be no code blocks inside. If possible, send us the ASPX code for your web part page so we can review it here.
Also, verify that the skin, which is set in the ConfigFile.xml file is present in the RadControls/Editor/Skins/ folder.
Greetings,
Lini
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Gian-Franco Salvato
Top achievements
Rank 1
answered on 19 Nov 2007, 03:27 PM
hi
yeah - here is the aspx code:
-----------------------------------
<head id="HEAD1" runat="server">
<SharePoint:BooleanField ID="PrintView" FieldName="PrintView" runat="server" Visible="false"></SharePoint:BooleanField>
<SharePoint:RobotsMetaTag ID="RobotsMetaTag1" runat="server" Visible="false"/>
<Sharepoint:CssLink ID="CssLink1" runat="server"/>
<Content:Header ID="ucContenHeader" Runat="server"/>
<Js:Default ID="ucJsDefault" Runat="server"/>
<ScriptLink language="javascript" name="core.js" Defer="true" runat="server"/>
<CustomJSUrl runat="server"/>
</head>
---------------
can it be a problem when there are multiple controls in the header?
skin is present in the directory...
hope help you to find troubles.
regards
tom
yeah - here is the aspx code:
-----------------------------------
<head id="HEAD1" runat="server">
<SharePoint:BooleanField ID="PrintView" FieldName="PrintView" runat="server" Visible="false"></SharePoint:BooleanField>
<SharePoint:RobotsMetaTag ID="RobotsMetaTag1" runat="server" Visible="false"/>
<Sharepoint:CssLink ID="CssLink1" runat="server"/>
<Content:Header ID="ucContenHeader" Runat="server"/>
<Js:Default ID="ucJsDefault" Runat="server"/>
<ScriptLink language="javascript" name="core.js" Defer="true" runat="server"/>
<CustomJSUrl runat="server"/>
</head>
---------------
can it be a problem when there are multiple controls in the header?
skin is present in the directory...
hope help you to find troubles.
regards
tom
0
Hi Tom,
Have you fixed the problem yet?
I tried to recreate the scenario, but noticed that some of the code in your head tag is custom user controls.
If you still have the same problem, you can try two things:
1) try removing the runat="Server" attribute from the head tag
2) try removing some lines from the head tag and see which one is causing the trouble
Sincerely yours,
Lini
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Have you fixed the problem yet?
I tried to recreate the scenario, but noticed that some of the code in your head tag is custom user controls.
If you still have the same problem, you can try two things:
1) try removing the runat="Server" attribute from the head tag
2) try removing some lines from the head tag and see which one is causing the trouble
Sincerely yours,
Lini
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Gian-Franco Salvato
Top achievements
Rank 1
answered on 22 Nov 2007, 11:03 AM
hi lini
found problem:
to prevent huge html code (or <table></table>), we render the control "by hand".
so, when we execute also following command:
---------
....WebParts[i].RenderControl(htw);
---------
when trying render telerik control into the stringwriter htw, we get this error.
any hints to resolve this issue?
regards
tom
found problem:
to prevent huge html code (or <table></table>), we render the control "by hand".
so, when we execute also following command:
---------
....WebParts[i].RenderControl(htw);
---------
when trying render telerik control into the stringwriter htw, we get this error.
any hints to resolve this issue?
regards
tom
0
Hi Tom,
Where do you create the Editor web part control? If you create it dynamically, try using the CreateChildControls method for your controls if it is in a later stage of the lifecycle now (load or render).
Sincerely yours,
Lini
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Where do you create the Editor web part control? If you create it dynamically, try using the CreateChildControls method for your controls if it is in a later stage of the lifecycle now (load or render).
Sincerely yours,
Lini
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center