سؤال

I've just downloaded and installed Visual Studio 11 Beta. I looks great and I was thinking about upgrading some of my website to ASP.NET MVC 4 and .NET 4.5. The question I have is if I can run such a website on a hosting plan that has only .NET 4 installed? Maybe by marking the necessary dependencies as "copy local"? I've search around, but as this beta is fresh from the oven, I couldn't find any helpful data.

هل كانت مفيدة؟

المحلول

I think you should have problems with your hosting. Anyway as many will say using beta for production is not a good idea (although I had done it several times). My suggestion is to switch to some HyperV hosting and install all necessary frameworks there.

نصائح أخرى

i had similar problem,i have visual studio 2012 and my host running for .net 4.0 but my site was .net 4.5 when uploaded and saw the site i got error.

i backed up program. then went to

C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework

there were 3 folder v3.5 v4.0 v4.5 then i created 2 back up folder one for 4.0 and other for 4.5 from each v4.0 and v4.5 copy these:

1-System.ComponentModel.DataAnnotations.dll

2-System.ComponentModel.DataAnnotations.xml

3-System.Data.Linq.dll

4-System.Data.Linq.xml

now that i had back ups did these: 1-change target framework to 4.0 from project options 2-copied above assemblies from folder v4.5 to v4.0

then build application everything went well.

good luck.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top