If you moved from ATLAS to the new ASP.NET AJAX Beta1 you might encounter that kind of problem, all other controls are affected as well like Element ‘UpdatePanel’ is not a known element.
To get around this issue you have to change the tagPrefix in your web.config:
Old:
<controls>
<add tagPrefix="asp" namespace="Microsoft.Web.UI"
assembly="Microsoft.Web.Extensions, Version=1.0.61025.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagPrefix="asp" namespace="Microsoft.Web.UI.Controls"
assembly="Microsoft.Web.Extensions, Version=1.0.61025.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</controls>
New:
<controls>
<add tagPrefix="ajax" namespace="Microsoft.Web.UI"
assembly="Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35"/>
<add tagPrefix="ajax" namespace="Microsoft.Web.UI.Controls"
assembly="Microsoft.Web.Extensions, Version=1.0.61025.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</controls>
This works as a temporary fix, this issue will be addressed in the next release of ASP.NET AJAX Beta.
hth
10 comments ↓
Thank you so much!
Thank you!
The tip helped. It got rid of some of the issues. However, there is still an error that says “Could not load file or Assembly ‘Microsoft.Web.Preview’ or one of its dependencies. The system cannot find the file specified” which is still unresolved. Do you have any suggestions? Please advise. Thank you. — Mark Kamoski
Hello Mark, the file is usually put into the GAC, if you deploy your project and didn’t install the AJAX Extensions on the webserver you have to include those .dlls in your bin folder of your project.
hth
I know it’s still a BETA but this seems like a rather huge bug to slip through. Not being able to compile an app out of the box seems like a rather large hurdle.
Anwyays, thanks for the tip! I was stumped on this.
Thanks for the great tip.
Thanks,
This is great … I hate that the intellisense doesn’t work due to this problem ^^
fixed
After changing the config file as above, I receive the following errors for my website which uses masterpages:
Error 34 C:\sajid\projects\website\VickyAjax\Default.aspx: ASP.NET runtime error: Only one element allowed per config file and if present must be the first child of the root element. (C:\sajid\projects\website\VickyAjax\web.config line 14) C:\sajid\projects\website\VickyAjax\Default.aspx 1 1 C:\…\VickyAjax\
thx a lot, that really helped.
thank you so much.
Leave a Comment