Sharepoint 2010 issue: MVC 2 App under Sharepoint website root, Day 4
Posted: November 10, 2010 Filed under: ASP.NET MVC, Business as Usual, Sharepoint 2 Comments »Wow, days in Microsoft world are very long compared to normal 24 hour days. Here it is! The post me, you, and everyone who gives a sh!t has been waiting for. The post that will end the post of getting MVC 2 to run under sharepoint 2010.
The solution will start with this quote from Microsoft development support:
SharePoint does not support ASP.NET 4.0 running on SharePoint Server. This is regardless of SharePoint version including V3 and V4, due to “various and unexpected” problems that may occur.
Let me add to this, I also tried mvc 2 targeting .Net 3.5, this also does not work. I would also go far as saying don’t deploy any applications under sharepoint 2010, I foresee issues that can be easily preventable with a little more money and time. The recommendation from Microsoft Support is to use a single-sign on solution(AD federation services). Separating the web applications from sharepoint.The good thing is we have this in development and it was going to be a future deploy. I guess that deploy needs to be a present deploy instead of the future deploy. Deploy, deploy ……deployyyyyyyy.
Thats it. Maybe some you hackers know a solution, if so post yOOO!
I am having exactly the same problem! But I am using just a normal ASP.NET 4.0 application!….if I use .net 2.0 then the virtual directory can work…..
Yeah 2.0 would have better luck working because SharePoint 2010 is using 3.5 which is essentially using the 2.0 runtime with added components.
No luck though if you want to use 4.0, we are separating all the .net applications from SharePoint 2010 server and using ADFS 2.0 for single sign on, between the SharePoint server and the web application server.