Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I built a project and I used a HoverMenuExtender on the page and for this I also added a ScriptManager on the page and my project is running successfully on my local system without any error but when I deploy it on the remote server then there is an error:

enter image description here

In my code I used ScriptManager below the form tag.

share|improve this question
    
Put the tag before any controls that use. Simply. –  PiLHA May 16 '13 at 16:39
add comment

2 Answers 2

It could be that the server your are deploying to does not have Ajax extensions installed. Depending on which version of Ajax you are using you can try to copy System.Web.Extensions.dll into your bin folder and deploy again.

share|improve this answer
    
from where i can copy System.Web.Extensions.dll into bin folder –  chitrakant sahu May 16 '13 at 17:32
    
which version of asp.net are you using? If 4.0, try C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0 –  user2315985 May 16 '13 at 17:38
    
visual studio 2008 Pro. .Net Framework 3.5 –  chitrakant sahu May 16 '13 at 17:44
    
See if you have this path... C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5 –  user2315985 May 16 '13 at 19:03
    
thank u for replay, i have this path –  chitrakant sahu May 17 '13 at 2:23
add comment

Use this in master page

<asp:ScriptManager ID="ScriptManager"   runat="server" />

Reference

share|improve this answer
    
i have not used master page on my project but i used ScriptManager in each page where i used AjaxControl –  chitrakant sahu May 16 '13 at 17:53
    
i tried it but it show error i.e. Control 'ScriptManager1' of type 'ScriptManager' must be placed inside a form tag with runat=server. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: Control 'ScriptManager1' of type 'ScriptManager' must be placed inside a form tag with runat=server. plz give me another solution –  chitrakant sahu May 17 '13 at 7:22
    
Please check my reference, it may useful to you. –  Amit Agrawal May 17 '13 at 7:31
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.