IIS7: When AppPool is set to use .net 4, no static content is displayed (500 error)

After installing TFS, which installed Sharepoint and hijacked all our IIS stuff, we are trying to set our sites back up.  Any sites assigned to an application pool that users v2.0 of the .NET Framework functions properly.  Any site using an application pool set to .NET Framework Version v4.0 will not display any formatting from linked CSS files or images.  Manually entering the URL to the images or CSS files results in a 500 error.  We have ensured that "Static Content" is enabled in the server roles.  From there, we are out of ideas.
LVL 1
CerixusAsked:
Who is Participating?
 
CerixusAuthor Commented:
We just deleted the default website and created a new one... sharepoint probably won't work now but we don't care.
0
 
AndrewSkoraroCommented:
SharePoint 2010 does not run on the 4.0 framework, but rather 3.5.  They should all be set to the .Net framework 2.0.  
0
 
AndrewSkoraroCommented:
The web.config for SharePoint 2010 is for supporting the .net framework 3.5.  SharePoint cannot run under an IIS website set to the .net 4.0 framework without the appropriate modifications to the web.config.  Microsoft does not support this nor detail how to accomplish this.
0
 
CerixusAuthor Commented:
No offense, but he should not get points.  Our sites use .net 4.  The point of the question wasn't how to make Sharepoint work, it was how to make our existing sites/apps work.  We don't care if Sharepoint works.  This was made clear in my question but his answer is clearly regarding Sharepoint.

I don't want credit for this question.  I just want it deleted, which is why I clicked the "Delete question" button.
0
 
modus_operandiCommented:
Starting auto-close process to implement the recommendations of the participating Expert(s).
 
modus_operandi
EE Admin
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.