Solved

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

Posted on 2011-02-22
6
925 Views
Last Modified: 2012-05-11
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.
0
Comment
Question by:Cerixus
  • 2
  • 2
6 Comments
 
LVL 3

Expert Comment

by:AndrewSkoraro
ID: 34955761
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
 
LVL 1

Accepted Solution

by:
Cerixus earned 0 total points
ID: 34956071
We just deleted the default website and created a new one... sharepoint probably won't work now but we don't care.
0
 
LVL 3

Assisted Solution

by:AndrewSkoraro
AndrewSkoraro earned 500 total points
ID: 34966420
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
 
LVL 1

Author Comment

by:Cerixus
ID: 34972948
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
 
LVL 1

Expert Comment

by:modus_operandi
ID: 35005264
Starting auto-close process to implement the recommendations of the participating Expert(s).
 
modus_operandi
EE Admin
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Hide http port number 5 41
C# guarantee sql connection close 6 39
WebSite Direction 1 41
Help with adding data element is a specific row of an xml file using VB.NET 4 26
Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question