Go to the properties for the project file (in Solution Explorer right-click the project and choose properties). On the Application tab change the Target Framework to 3.0. It should remove all the 3.5-specific stuff from the web.config.
If that doesn't work, you could probably hand-edit the web.config and remove any of the
stuff that refers to 3.5 assemblies.