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):
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.
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.