Element 'ScriptManager' is not a known element.

Posted by Oswaldlily under ASP.NET on 2/21/2013 | Points: 10 | Views : 24746 | Status : [Member] | Replies : 5
step1)I added AjaxControlToolkit as reference
step2)<%@ Register Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit" TagPrefix="ajax"%>

still facing this error


Element 'ScriptManager' is not a known element.
This can occur if there is a compilation error in the Web site,
or the web.config file is missing




Responses

Posted by: Ranjeet_8 on: 2/22/2013 [Member] [MVP] Gold | Points: 25

Up
0
Down
can u please post your webconfig code.

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Murugavelmsc on: 2/22/2013 [Member] Starter | Points: 25

Up
0
Down
can u please post your code.

Regards,
Murugavel S
murugavel.sadagopan@gmail.com
http://murugavelmsc.blogspot.in/

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Oswaldlily on: 2/22/2013 [Member] Starter | Points: 25

Up
0
Down
<?xml version="1.0"?>
<configuration>

<system.web>
<compilation debug="true" targetFramework="4.0" />
</system.web>
<!--<add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>-->

</configuration>


Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ranjeet_8 on: 2/22/2013 [Member] [MVP] Gold | Points: 25

Up
0
Down
Try this,

<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0">
<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"/>
</assemblies>
</compilation>
</system.web>
</configuration>


Please Mark As Answer if this helps you

.

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Oswaldlily on: 2/22/2013 [Member] Starter | Points: 25

Up
0
Down
@Ranjeet_8

This error dint stopped me from executing my program..Program execution and result displaying is working fine..
Only problem is in asp design page all controls are green underlined which states ("Element 'ScriptManager' is not a known element.
This can occur if there is a compilation error in the Web site,
or the web.config file is missing")

Tried your web config..its not removing green mark

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response