Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I'm developing a visual web part in Visual Studio 2010 for sharepoint and i have a listview control embedded.

I keep getting this error message in runtime even though I made sure it's namespaces are included and everything in the right place.

any ideas?

share|improve this question

2 Answers 2

Made sure the build setting is 3.5 and not 3.5 Client Profile?

share|improve this answer
    
yeah, it's installed with Sharepoint 2010. so It's not the client profile –  Bassel Alkhateeb Nov 1 '10 at 8:37
up vote 1 down vote accepted

I read some threads talking about a bug in .net 3.5 and that we need to reinstall the SP1 to solve the problem, while I found this time-savy solution by simply adding a line to web.config:

inside the tag:

<Pages>
<Controls> 
    <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</Controls>
</Pages>

Good luck

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.