Profile Picture

Ajax Difficulties

Posted By Steven Simonton 14 Years Ago
Author
Message
Steven Simonton
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: Forum Members
Last Active: 5 Years Ago
Posts: 4, Visits: 11
I am trying to configure both the Drawing and Chart controls to use Ajax in Visual Studio 2010.....

I have followed all of the examples and read everything in the online documentation about Ajax and it seems very straight forward. However when I load the page with the hosted Drawing or Chart control I get the following run-time error....


Dialog box with "Microsoft JScript runtime error: 'NChartCallbackService' is undefined"

The following line is from the dynamic output of the aspx page.

NChartCallbackService.RegisterWebControl(new NHttpCallbackConfiguration("ctl00$MainContent$chartSplitterPortUtilization", "MainContent_chartSplitterPortUtilization", 6000, 20, true, 10000, true, 1000, 5, ""), new NDiagnosticsConfiguration(ENDebugConsoleMode.Auto), new NToolFactory(new NToolConfiguration("NTooltipTool", true, new NTooltipToolConfig("", 1, 3))), new NMouseEventsConfiguration(50, 1, 20, 1, 10, 1, 100, 1, 100, 1), new NAutoRefreshConfiguration(false, 5000, 1));


Thanks for the help.......

Nevron Support
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hi Steven,

 

It seems that our script files are not registered correctly. Can you check the web.config file for the following lines:

 

<system.webServer>

 <handlers>

    <add name="NevronChart" preCondition="integratedMode" verb="*" path="NevronChart.axd"      type="Nevron.Chart.WebForm.NChartImageResourceHandler"/>

    <add name="NevronScriptManager" preCondition="integratedMode" verb="*" path="NevronScriptManager.axd" type="Nevron.UI.WebForm.Controls.NevronScriptManager"/>

 </handlers>

</system.webServer>

 

You can see the configuration from our visual studio 2010 local examples.

Please also check when the page is rendered from view->source of the browser for the following line:

<script src="NevronScriptManager.axd?Assembly=Nevron.Chart.WebForm&amp;Resource=Nevron.Chart.WebForm.EmbeddedScripts.Ajax.NevronChartR.js" type="text/javascript"></script>

 

If There is such line try to navigate to it. Also can you check if our assemblies are in the bin folder of the project. If there are not just select them from the references section in the studio and set the property copy local to be true.

If you are still unable to run Ajax please send us your sample project and we will be glad to assist you.



Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic