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

Exception when loading Telerik.Web.UI.WebResource.axd

3 Answers 81 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
JP
Top achievements
Rank 1
JP asked on 14 Dec 2011, 03:55 PM
Hello,

I just added my first webresource/scriptresource to a project.
The class for which I added this contains a RadTreeView.
Since I added this, I get this (server-side) error when the browser tries to load Telerik.Web.UI.WebResource.axd:

   bei Telerik.Web.UI.CombinedScriptWriter.RegisterNamespace(TextWriter builder, String typeName, Boolean isDebug)
   bei Telerik.Web.UI.CombinedScriptWriter.WriteAssemblyScriptResources(TextWriter outputWriter, ScriptEntry scriptEntry)
   bei Telerik.Web.UI.CombinedScriptWriter.WriteScripts(List`1 scriptEntries, TextWriter outputWriter)
   bei Telerik.Web.UI.CombinedScriptWriter.GenerateResponse(List`1 scriptEntries, String hiddenFieldName, String combinedScripts)
   bei Telerik.Web.UI.CombinedScriptWriter.WriteCombinedScriptFile()
   bei Telerik.Web.UI.CombinedScriptWriter.WriteCombinedScriptFile(Page page, HttpContext context)
   bei Telerik.Web.UI.WebResource.ProcessRequest(HttpContext context)
   bei System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   bei System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

This is the code which leads to the exception (the class implements IScriptControl):
public IEnumerable<ScriptReference> GetScriptReferences()
 {
         yield return new ScriptReference("HierarchyTree1.HierarchyTree.js", GetType().Assembly.FullName);
}

When I use a non-existant scriptreference (e.g. "xxx.js") I won't get that error.
Please tell me if you need additional informations.

Regards,
JP

Edit: I just tested this without any telerik component involved and everything works. Somehow the TelerikWebResource won't work together with mine.
Edit2: Using a ScriptManager instead of a RadScriptManager helps.

3 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 15 Dec 2011, 01:24 PM
Hi Jp,

Generally this is a straightforward approach and it should be working - many custom components based on the ASP.NET AJAX framework have been created and tested.

Could you provide me with a sample project (as simple as possible) that has the problem in it? (You could use a public file hosting service to upload the file to.)

All the best,
Simon
the Telerik team
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 their blog feed now
0
JP
Top achievements
Rank 1
answered on 15 Dec 2011, 02:36 PM
Thanks for your response. I submitted a ticket with a sample project with which you can easily reproduce this error.
0
Simon
Telerik team
answered on 15 Dec 2011, 03:14 PM
Hello Jp,

Thank you for submitting the support ticket.

I will inspect it and will write back to you in both threads.

Kind regards,
Simon
the Telerik team
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 their blog feed now
Tags
General Discussions
Asked by
JP
Top achievements
Rank 1
Answers by
Simon
Telerik team
JP
Top achievements
Rank 1
Share this question
or