Click here to Skip to main content
15,886,258 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to modify this piece of code in web config ? it gives runtime error since i didnt merge them.

<pages>
      <namespaces>
        <add namespace="System.Web.Optimization" />
      </namespaces>
      <controls>
        <add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagprefix="webopt" />
      </controls>
    </pages>


     <pages>
      <controls>
        <add tagprefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral,<br mode=" hold=" /> PublicKeyToken=31BF3856AD364E35" />
        <add namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" tagprefix="asp" />
      </controls>
    </pages>

Also how to find out Publickey token? I tried sn.exe -T System.Web.UI.dll in command prompt but it shows sn command is invalid.
Posted
Updated 30-Apr-15 19:51pm
v3
Comments
Why you have two page nodes? Just take one off and write other stuff inside the one you have.
Member 11377180 2-May-15 1:37am    
ya thats what i want to know. how to merge them? it would be great if u show how to write!

1 solution

XML
<pages>
    <namespaces>
        <add namespace="System.Web.Optimization" />
        <add namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" tagprefix="asp" />
     </namespaces>
    <controls>
         <add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagprefix="webopt" />  
         <add tagprefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral,<br mode=" hold=" /> PublicKeyToken=31BF3856AD364E35" />
    </controls>
</pages>
 
Share this answer
 
v2

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