Uppgradera från ASP.NET Mvc 2 till Mvc 3

1. Fixa web.configs

Sök på följande sträng i ditt projekt (finns i några web.configs):

System.Web.Mvc, Version=2.0.0.0

Och replaca den med denna:

System.Web.Mvc, Version=3.0.0.0

Se till att du har följande längst ner i web.config:

<runtime>    
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>     
</assemblyBinding> 
</runtime>
Referera rätt namespace:
<add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />

2. Sätt project GUID

Högerklicka på ditt projekt och välj unload. Sen edit project.

Byt ut (Gamla Mvc 2):

F85E285D-A4E0-4152-9332-AB1D724D3325

Mot (Mvc 3):

E53F8FEA-EAE0-44A6-8774-FFD645390401

3. Lägg till värden i app.config

 <add key="webpages:Version" value="1.0.0.0"/>
 <add key="ClientValidationEnabled" value="true" />
 <add key="UnobtrusiveJavaScriptEnabled" value="true" />

Comments

Great news about moving ASP.NET Mvc 2 till Mvc 3

this website is useful.thank you for this sharing website. http://www.onlinepromotionuae.ae"> http://www.onlinepromotionuae.ae

Thanks for this wonderful article. Keep sharing good content.

hp printer helpline number

epson printer helpline number

thanks for sharing a amazing post with us..... www.andamandiscover.com"> www.andamandiscover.comlink text

thanks for provide a nice information............ http://onlinepromotionhouse.com"> http://onlinepromotionhouse.comlink text

Kaspersky Help Number UK is a place where you get solution for all the issues that you face with your Kaspersky software. Whether it’s an installation problem or issue related to re installation our executives are prompt in resolving all those issues. get in touch Avira Support Number UK, McAfee Support Number UK, AVG Support Number UK .

Appreciated I like this very much. Call for Lexmark Printer Customer Service Phone Number 0800-014-8577(toll free UK) and get Lexmark Printer Support, Lexmark customer service, Lexmark printer help, Lexmark printer technical support, Lexmark printer technical help etc. Our team is ready to provide help 24/7.

Printer has a great importance in professional fronts. What will happen if your HP printer stops working while printing some of your important documents? Well answer for it will be available at HP Printer Support Number UK. Just call and correct errors in your printer by your own.

Awesome Post.. Nice Content.. Thank you for sharing..Facing technical issues in installation of the Dell printer, Call us at Dell Printer Support Number UK. Our expert will help you to solve these issues.

Today I learned a lot from your website. thank you

Today I learned a lot from your website. thank you

Microsoft Support

thanks for this awesome web page, i like it

Microsoft Help Number

Hii, Thanks for the sharing nice posting with us. i’m really impressed.

microsoft customer support number

thanks for this awesome web page, i like it

Avast Support Number

Hii, Thanks for the sharing nice posting with us. i’m really impressed.

Avast Technical Support Number

Today I learned a lot from your website. thank you

Mcafee Support

this is outstanding and great post! i really like it. thank you so much. Belkin Router Support number
Belkin Router Support
Belkin Router customer Support
Belkin Router customer Service
Belkin Router contact number Title Belkin Router helpline number

Hii, Thanks for the sharing nice posting with us. i’m really impressed.

toshiba uk support

thanks for this awesome web page, i like it

Windows Help Number

Such a very useful blog. Very interesting to read this blog.I would like to thank you for the efforts.We provide you online help and support.Call us at Our Hotmail help number UK 0800-098-8352.

Very very nice article, thanks for the sharing with us. Epson Printer Technical Support

Very very nice article, thanks for the sharing with us. Toshiba tech support

Yes man, its a very useful article. i tried it on my sites. its work. thank you so much. Norton antivirus technical support number

this is outstanding and great post! i really like it. thank you so much. epson support number, epson helpline

As Gmail has a place with the group of Google so it is known for giving best messaging administration to all its client however demonstrates specialized issues as well. In case in the event that you get experienced with such specialized blames then instantly contact tech specialists at Gmail Support Number UK @ 0800-098-8352

At the point when tech issue connected with login and logout approaches in your gmail record and you discover no real way to get that illuminated. All things considered call experts at Gmail Contact Number UK @0800-098-8352 as they are the best group to run with for all such tech issues happening in Gmail.

At whatever point you have a slant that you are going up against burden to login your Hotmail account don't be free for all as for that call tech pros at Hotmail Helpline Number UK @ 0800-098-8354 and direct the tech authorities there. Achieving the tech ace will help you in comprehending the issue easily as the tech ace will oversee you with straightforward technique to get the issue settle. The tech pros offer their clients round the clock advantage which make it straightforward for you to contact these tech experts any team you require help for any particular multifaceted nature coming in your Hotmail account.

Hii, Thanks for the sharing nice posting with us. i’m really impressed. Toshiba Helpline

we are offered new latest support for hp laptop support number. hp laptop support

Today I learned a lot from your website. thank you

Epson printer helpline number, very very nice article, thanks for the sharing with us

Hii, Thanks for the sharing nice posting with us. i’m really impressed. epson support number

this story is really good to read and i also like it so thank for the posting this type article....plz visit here.

hp printer support hp customer service

Very Very nice post. its a very useful and outstanding article. Thanks for that.

Call us Our Toll-free 0800-098-8613 UK for any set up a hotmail account, reset hotmail password, Hotmail Support Number, Hotmail Helpline, Hotmail support, click here.. Hotmail Technical Support Number.

Hi.. I am really a great follower of this site. The Title what you have chosen for this series is great. Thank you for updating.

Toshiba help

Hi.. I am really a great follower of this site. The Title what you have chosen for this series is great. Thank you for updating.

Lenovo tech support

Hi.. I am really a great follower of this site. The Title what you have chosen for this series is great. Thank you for updating.

Norton antivirus technical support number

Hi.. I am really a great follower of this site. The Title what you have chosen for this series is great. Thank you for updating.

Toshiba tech support

Hi.. I am really a great follower of this site. The Title what you have chosen for this series is great. Thank you for updating.

Lexmark Printer Customer Service

Hii, Thanks for the sharing nice posting with us. i’m really impressed. epson printer problems

very very nice article, thanks for the sharing with us.

Sky Broadband Help

Great info.. Thank you for sharing.. we provide the best technical support for Norton Customer Care Number UK & Norton Contact Number UK

this post is really good to read and i also like it so thank for the posting this type of story.

network firewall protection

this post is extremely good so keep posting further thank you so much. canon tech support

Hi.. I am really a great follower of this site. The Title what you have chosen for this series is great. Thank you for updating.

Toshiba Helpline

Its very useful post for me, I like your post and all you share with us is up to date and quite informative. Epson Printer Help Number UK Epson Printer Support Number UK

blockbuster idea.

Hotmail Issue

forgot hotmail password

hotmail customer service uk

Its very useful post for me, I like your post and all you share with us is up to date and quite informative. avast antivirus support number

Hi, Thanks for the sharing nice posting with us. i’m really impressed.

Really i appreciate the effort you made to share the knowledge. The topic here i found was really effective to the topic which i was researching for a long time.McAfee Support Number UK

Hey. What a great post. Thank you for sharing. Its very interesting post. Canon Printer Support Number UK canon Printer Help Number UK

Hey. What a great post. Thank you for sharing. Its very interesting post. Canon Printer Support Number UK canon Printer Help Number UK

How to remove technical complex issues of Norton antivirus? If you want to get the answer of this issue then consult our tech expert at Norton Helpline Number UK and get the suggested solution within few minutes.

Want to correct technical issues of Norton antivirus as quick as possible then call us at Norton Customer Care Number UK and get the solved solution of antivirus issues as quick as possible.

Hi,very nice post. Microsoft Customer Support Microsoft Software Helpline

Hi, Thank you for the sharing nice post with us..

Hp printer support

Hp printer Helpline

Thanks for this awesome web page,i’m really impressed.

microsoft customer service phone number

microsoft software support number

Great Post. Samsung Printers support

Very Very nice post. its a very useful and outstanding article. Thanks for that. Lenovo Technical Support Number

Guys, wonderful post to never let us run out of ideas…! Canon Printer Support Number UK Canon Printer Contact Number UK

Please fill out all the fields.

*
*