Question

folks! Running Sharepoint 2010 on Windows Server 2008, my iis7 reports that my sp web-application is running its application pool on .net v2.0. There is the choice for 4.0, but that breaks everything, so we use 2.0.

That being said, I have a custom aspx page that I want to insert into a page-viewer web-part, and still be a part of the same web-application - that is, I don't want to run it in its own application. However, I need this page to run in .net 4. Is there a way to do this?

I tried adding <compilation debug="true" targetFramework="4.0"/> to the web.config in the aspx's own directory, but it gives me a .net configuration error pointing out that the line has "Unrecognized attribute 'targetFramework'." Any clues here?

Was it helpful?

Solution 2

According to this article: ASP.NET 4 Web Sites Fail to Start on Computers Where SharePoint Is Installed you cannot run a .net 4 application within a .net 2 application.

It seems that the way to do it is to use a web-page-viewer web part and display a page from an entirely different web-application. The above-mentioned post says you can do it with a regular asp.net website, but not with sharepoint.

OTHER TIPS

The issue is that SharePoint 2010 is on .NET 3.5 (the .NET 2.0 stack). Which means the SharePoint web application does not in anyway support .NET 4.

You would need to run that .NET page in a different web application with a different application pool. (You can create the application under the same IIS site, however you MUST use a different application pool).

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top