Title: Need to compile a project to .net 3.5 sp1 in visual studio
Tags: visual-studio-2008;.net-3.5
Question: I'm using a cms (mojoportal) and want to install it on a webserver, this webserver has .net 3.5 sp1 installed (a requirement for it to run), and my pc that i compile the project also has 3.5 sp1 (im using windows 7, it comes with 3.5 sp1)
Though I'm getting an error that i know only comes up when the cms is running on 3.5. I believe its because its being compiled on my local machine under just 3.5. Is there a way to compile my project and target 3.5 sp1 specifically.
When you click on the projects properties in visual studio it doesnt show the service packs option.
The error is
Could not load type 'System.Web.UI.ScriptReferenceBase' from assembly 'System.Web.Extensions, Version=151.154.11.224, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
and i know i have no ToolkitScriptManager in my solution (a fix i read was to change it to asp:ScriptManager)
Thanks in advance


Here is another answer: Your machine sounds messed up, this should work.  Navigate to C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5 and look at the properties of the DLL.  The file version on mine is 3.5.30729.4926, modify date 6/10/2009.  Copying the file from another machine is the Q&amp;D fix, reinstalling .NET would be wise.

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 2.5', 'CreationDate': '2010:00:09/29/10', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<visual-studio-2008><.net-3.5>', 'Title': 'Need to compile a project to .net 3.5 sp1 in visual studio', 'ViewCount': 176, 'id': 3820810, 'user_AboutMe': None, 'user_AccountId': 192043.0, 'user_DisplayName': 'Tim Butler', 'user_Reputation': 39.0, 'user_Views': 17.0, 'user_id': 432968.0}}