[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 282
  • Last Modified:

asp.net - vb.net page doesnt recognize scriptmanager tag

I am trying to use the script manager tag to relay data from a javascript function to code behind and its not working I get this error:
Server Error in '/' Application.

Parser Error 
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 

Parser Error Message: Unknown server tag 'asp:scriptmanager'.

Source Error: 

Line 228:    </script>  
Line 229:    
Line 230:    <asp:scriptmanager ID="Scriptmanager1" runat="server" EnablePageMethods="true"></asp:scriptmanager>
Line 231:    <asp:HiddenField runat="server" ID="sessionDuration" />
Line 232:        

Source File: /Shoe_Comp/ShoeMobile.aspx    Line: 230 

Version Information: Microsoft .NET Framework Version:2.0.50727.5448; ASP.NET Version:2.0.50727.5420

Open in new window

  • 2
1 Solution
wrong case in the script manager tag?
just a guess as I'm not next to a box I can test it on
Check if you have Ajax Extension installed on machine
Check if you have reference to AjaxControlToolkit.DLL in bin folder
add following lines in web.config:


               <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />



The link I posted showed you exactly the same thing.

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now