How to update sharepoint project from .net 3.5 to 4.0 - asp.net

I need to change the .NET Framework Version of my Sharepoint Project from 3.5 to 4.0.
The project is generated with VisualStudio2010, Sharepoint version is also 2010. I already found this blogpost regarding this topic, but it doesnt work.
.NET 4.0 is installed on the development machine but I'm not able to select the framework in the target-framework tab at the project settings:

SharePoint 2010 does not support .NET 4.0.
If you really have to connect a .NET 4.0 application to SharePoint, you can use a web service to communicate. But you won't be able to write a .NET 4.0 WebPart or a similar SharePoint artifact.

Related

Can I upgrade my .net 4.8 webforms webapp to .net 5.0?

I have a medium-sized Web Application project on Framework 4.8. It has Webforms and MVC (and webapi) in it. I am confused by the recent 5.0 announcements that seem to indicate that everything should now be 5.0. After downloading the new SDK, and Visual Studio 16.8 preview4, I am still not able to change the target framework of my main webapp project in its settings. Am I missing a step? Can I upgrade my .net 4.8 app to 5.0?
Web Forms is not included in .NET 5. You will have to eliminate Web Forms from your application if you want to upgrade to .NET 5.
Rich Lander (Program Manager on the .NET team at Microsoft) explicitly pointed this out on Twitter.

Running ASP.NET vNExt on .net 4.0

If I have a server running on .NET Framework 4.0.
Will it be possible to run ASP.NET vNext on top of that? Or will a higher framework version be required?
As stated on Asp.NET vNext's page on GitHub the minimum requirements for Windows as follows:
Windows 7 or Windows Server 2008 R2.
.NET 4.5.1 for hosting in IIS
However, ASP.NET vNext will let you deploy different versions of the .NET Framework via NuGet packages for different apps on server as stated here. But it's not .NET Framework 4.0 anyway. So, you need the higher version.

Install AJAX.NET 2.0 Extension in .NET 3.5 environment

Do I need to install AJAX.NET 2.0 Extension, Futures, Samples, and Source Code even after I installed .NET Framework 3.5 SP1?
I'm using Server 2003, and installed dotnet2.0. Then I installed Visual Studio 2008 that brought .net 3.5 to my system.
I'm planning to publish an ASP.NET web app in my server :)
I believe the Ajax.Net functionality is built into the .net framework 3.5.
If your code is developed for a .Net 3.5 application then you will not need it.
If you code is developed for a .Net 2 application, then you will need to download the ajax extensions.

Web Client Software Factory 2008 ASP.NET project migration to dotNET 4.5 64 bit possible?

I have old Web Client Software Factory project built with VS2008, WCSF 2008 and MS Enterprise Library 3.1
I have to make changes to the project so I migrated the solution to Visual Studio 2012. It compiles fine with .NET 3.5 and runs on IIS 7.5 as 32bit web application (classic mode asp.net v2.0).
Is it possible to migrate such project to .NET 4.5 (64 bit)?
My guess is no. The last version of WCSF is 2010 and for the MS Enterprise Library is 5.0.
I think they both are built on .NET 3.5
Did anyone try such migration before?
Thanks
I'm planning to do the same thing for couple of my applications.
I did checked out on MSDN and the WCSF project discussion on codeplex seems there's no future roadmap for this WCSF.
See:
Web Client Software Factory
Roadmap for 2012 and beyond ?

SQL Server 2012 and .NET Framework 4.0

I have a server which configured for SQL Server 2008 R2 and ASP.NET 4.0.
The hosting company won't support .Net Framework 4.5 and SQL Server 2012 and latest Entity Framework.
I have created my website with .Net Framework 4.5 and latest Entity Framework 5. How can I change the publish settings to old server execute that ?
Change the Target Framework of the Website, In Solution Explorer right click the Website select 'Properties'. In the dialog that appears select Application now change the Target Framework to 4.0 and Publish.
You need to change the Target Framework for your website.In Visual Studio (with your website project selected) go to Project > Settings. Change Target Framework from .Net Framework 4.5 to .Net 4. Then rebuild all and test your app.
If it's all working OK you can then publish to your web host as normal.
The above 2 answers are correct. Additionally, many hosting companies do not support the MVC or EF dll's of any version. There is any easy work around to this. As long as you can get your code to compile in Visual Studio 2010 using .NEt 4.0, right click on your project and click 'Add Deployable Deployable Dependencies'. Check the boxes for the dll's groups you will need and they will be added to your project so they can be deployed with your website.
When installing EF5 from Nuget it will install EntityFramework.dll assembly version 5.0.0.0. if your app is targeting .NET Framework 4.5 or EntityFramework.dll assembly version 4.4.0.0 if your app is targeting .NET Framework 4. The difference between these is that EF5 for .NET Framework 4 is scoped down to what is supported by the core assembly (System.Data.Entity.dll) that is a part of .NET Framework (most notably on .NET Framework 4 you will get no enums, spatial types etc.). If you change the target after installing EntityFramework then you most likely need to uninstall what you have and install again to get the right version of the EntityFramework.dll.
you just create a new project in framework 4 and add existing items from the right click in solution in project

Resources