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

Prometheus in a SharePoint Web Part

5 Answers 304 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michael Stone
Top achievements
Rank 1
Michael Stone asked on 28 Apr 2008, 06:52 AM

I'm trying to upgrade a web part I wrote from the old telerik controls to the new Prometheus controls.  I've deployed the DLL and added the HTTP handler entry to my web.config and added a script manager object to the Controls collection before my RadCalendar object.

This is the error I'm getting:

Object reference not set to an instance of an object.   at Telerik.Web.UI.WebResource.Exists(String path, String applicationPath) 
   at Telerik.Web.UI.RadScriptManager.OnPreRender(EventArgs e)
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.WebControls.WebParts.WebPart.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Any help would be greatly appreciated.

5 Answers, 1 is accepted

Sort by
0
Michael Stone
Top achievements
Rank 1
answered on 28 Apr 2008, 07:01 AM

In case it's important, here's the relevant section from my web.config:

    <httpHandlers>
      <remove verb="GET,HEAD,POST" path="*" />
      <add verb="GET,HEAD,POST" path="*" type="Microsoft.SharePoint.ApplicationRuntime.SPHttpHandler, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
      <add verb="OPTIONS,PROPFIND,PUT,LOCK,UNLOCK,MOVE,COPY,GETLIB,PROPPATCH,MKCOL,DELETE,(GETSOURCE),(HEADSOURCE),(POSTSOURCE)" path="*" type="Microsoft.SharePoint.ApplicationRuntime.SPHttpHandler, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
      <add verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
      <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false" />
    </httpHandlers>

0
Erjan Gavalji
Telerik team
answered on 01 May 2008, 03:22 PM
Hi Michael,

I'm not sure where the error comes from. It could be that for some reason RadScriptManager cannot identify a resource that should be embedded in an assembly. You can check if this is the problem by using ScriptManager instead.

Looking forward to your reply,
Erjan Gavalji
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Michael Stone
Top achievements
Rank 1
answered on 07 May 2008, 06:50 PM
When I tried a ScriptManager object I got the following error:

[InvalidOperationException: Script controls may not be registered before PreRender.]
   System.Web.UI.ScriptControlManager.RegisterScriptControl(TScriptControl scriptControl) +236
   System.Web.UI.ScriptManager.RegisterScriptControl(TScriptControl scriptControl) +99
   Telerik.Web.UI.RadWebControl.RegisterScriptControl() +41
   Telerik.Web.UI.RadCalendar.OnPreRender(EventArgs e) +21
   System.Web.UI.Control.PreRenderRecursiveInternal() +86
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.WebControls.WebParts.WebPart.PreRenderRecursiveInternal() +62
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041

 

0
Sebastian
Telerik team
answered on 08 May 2008, 08:05 AM
Hi Michael,

I think that the information/linked resources in the following public forum post will help you address the problem you are currently facing:

http://www.telerik.com/community/forums/thread/b311D-bddkem.aspx

You may also perform advanced search in the public forums to find more results discussing similar type of error and its resolution.

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Lambros
Top achievements
Rank 1
answered on 09 May 2008, 03:13 PM
Hi Michael,
I assume you run WSS3 SP1 or MOSS SP1. If not, do not expect ASP.NET AJAX to function with SP. Try adding the script manager OnInit of your web part.
Tags
General Discussions
Asked by
Michael Stone
Top achievements
Rank 1
Answers by
Michael Stone
Top achievements
Rank 1
Erjan Gavalji
Telerik team
Sebastian
Telerik team
Lambros
Top achievements
Rank 1
Share this question
or