Click here to Skip to main content
15,886,806 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I am working on asp.net 4.5 web application. It contains ajax control like timer for real time trends. Problem is when i am publish my web application all ajax control[Timer,Modalpopup] is not working.Why this is happening??
My target framework is 4.5 and in iis application pool framework is 4.0

XML
<compilation debug="true" targetFramework="4.5">
   <assemblies>
     <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
     <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
     <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
    <!-- <add assembly="Telerik.Web.Design, Version=2013.1.417.45, Culture=neutral, PublicKeyToken=121FAE78165BA3D4" />-->
     <add assembly="Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C" />
   </assemblies>
 </compilation>
 <httpRuntime targetFramework="4.5" />



Please help me... I have search related post of it but not getting anything...
Posted
Updated 13-May-15 23:38pm
v3
Comments
Do you see any errors on browser console?
Member 11151142 14-May-15 9:08am    
I am getting one javascript error "Uncaught TypeError: Cannot read property 'parentNode' of null" scriptresource.axd:127 on main page. But in development environment am getting same error but Ajaxcontrols works fine.

Which browser you are testing on? Is it working on IE?
Member 11151142 15-May-15 0:33am    
I am testing on google chrome. Its interesting that IE does not show any error on console..but google chrome shows. Now what should be done?? Is there any changes required in web.config??? And I have notice one thing that, on my main page where timer and modalpopupextender resides. When I am commenting ajax timer then modalpopup extender works properly but reverse things [means after commenting modalpopup, timer] is not working. So is there any design issue??? M confused...
Member 11151142 15-May-15 1:19am    
One more thing I have observed that while publishing we are normally false the the debug mode. i.e <compilation debug="false" targetframework="4.5">. If same thing done on development mode then ajax control stops working. I dont knw what to do...

1 solution

I have solved this issue by making combinescript property false as follows,

<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" CombineScripts="false" EnablePageMethods="true"></asp:ToolkitScriptManager>
 
Share this answer
 
Comments
King Fisher 15-May-15 2:27am    
Good .

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900