Assembly incompatibility error

So I had to make changes to a few pages of a website. When I published it back onto the server, it tells me that I'm trying to assemble a previous version with a newer one. So I go into \[code\]web.config\[/code\] and I realized that \[code\]<compilation />\[/code\] was changed:Old: \[code\]<compilation debug="true" defaultLanguage="C#"> <assemblies> <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> </assemblies></compilation>\[/code\]New: \[code\]<compilation debug="true" defaultLanguage="C#" targetFramework="4.0"></compilation>\[/code\]So I naturally copy-pasted the old part to replace the new part but then I get another list of errors.Question is: How do I fix this so it compiles? It worked fine locally btw.
 
Back
Top