I've user controls project (UI) and am using AJAX Extension Toolkit with them. The dll
of AJAX Extension Toolkit is referenced in the project. The project is successfully compiling.
Another project under same solution which is WSPBuilder project (Deploy). When you build UI project all the controls will be copy to Deploy project directory 12\TEMPLATE\CONTROLTEMPLATES
and a dll
of UI project also copied to GAC
folder. (For copying, am using post-build events)
Then, build Deploy project using WSPBuilder Build and deploy. I'm getting error message:
An error occurred during the processing of . Unknown server tag 'asp:ScriptManager'.
Please, don't say that I've to manually modify the web.config to add and mark the ajax extension as a safe control. I'm not going to do that.
Any better solution?
P.S: I'm using WSPBuilder, STSDEV and VSeWSS.
EDIT
Thanks to Chris. The problem was:
In this case, I think it's other elements in web.config which you are missing - the AJAX declarations. Amongst other things, you need the following in your web.config so .Net knows how to find the ScriptManager class:
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
But this problem goes a little weird at my side. I had to set enableSessionState
to true
of pages
tag under system.web
and uncomment the following:
<add name=”Session” type=”System.Web.SessionState.SessionStateModule” />
I thought putting AjaxExtension.dll in GAC can resolve this issue. I was avoiding to write a feature for modifying web.config. Can I do this too in manifest.xml?
Please, suggest!