Since you have installed ASP.NET MVC 3 on your development machine you have all these MVC 3 assemblies installed in your GAC. Your production machine does not!
So you need to find this file and make it bin deployable however this cheeky assembly isn't in you solution so how can you do that? Well... add it. Go to Add Reference on your root web project (e.g. Web.csproj) and find System.Web.WebPages.Razor and add.
Now right click this assembly in your references directory and click properties.
Now you can make it bin deployable by setting Copy Local to true like so:
Note this is how to deploy the System.Web.WebPages.Razor assembly withe your ASP.NET MVC 3 web application. To deploy a typical setup of an ASP.NET MVC 3 app you will need to do the same for all of the following assemblies:
- System.Web.Mvc
- System.Web.Helpers
- System.Web.Razor
- System.Web.WebPages
- System.Web.WebPages.Deployment
- System.Web.WebPages.Razor as detailed above
- Microsoft.Web.Infrastructure this will also need a reference added as above
- WebMatrix.Data this also needs the reference
Of course you only need to add the reference to these assemblies if they are not already there - in most cases it will be. This was mainly a blog post for the slightly more complicated System.Web.WebPages.Razor.dll
Thanks for this. Saved my team lots of time.
ReplyDeleteThat's what I like to hear!
ReplyDeleteThanks! You got us fixed right up!!!!
ReplyDeleteThanks for this. Saved me lots of time!! I mean it!
ReplyDeleteWowwww... Perfect.. After 2 days reading heaps of blogs finally your blog solved my problem!! ;)
ReplyDeleteYou forget about "NuGet.Core" (you may notice in your other post http://www.britishdeveloper.co.uk/2011/06/adding-mvc-dependencies-to-project-for.html - screenshot with this reference)
ReplyDeleteWell, at least Azure force me to use it :)
Thank you very much btw
What worked for me was to right-click on the project and select Add Deployable Dependancies
ReplyDeletethank you for your advise, it helped me!
DeleteYes you can and it is much easier and works well (if you are publishing using Web Deploy). I wrote this post before SP1 had come out though (hence the update at the end of the post).
ReplyDeleteI,m sorry, i.m a newbie in c# mvc3, i want to ask u, how to deploy my app in IIS7, what first I should do and What next? i need ur help, cz its urgently need...
ReplyDeleteIf it is so urgent, why is 'a newbie' in charge? Anyway, sorry I haven't got the time to train you to do the job you don't deserve but I have found a link that should help: http://www.lmgtfy.com/?q=deploy+mvc3+to+iis7
ReplyDeletethanks, helpful
ReplyDeleteThank you, very helpful
ReplyDeleteYou Rock!!!!!
ReplyDeleteThanks Man! It help me to publish an application in a sub-domain.
ReplyDeleteMotifz Designer Lawn. 1, 2 & 3 Piece Unstitched Premium Embroidered Lawn 2019, Premium embroidered Lawn, Premium lawn, Premium lawn 2019, Motifz, Premium lawn in Pakistan, Summer collection. Shipping worldwide. Stitching option available.
ReplyDelete
ReplyDeleteThanks for your post!
شركة شحن عفش من السعودية الى الاردن
شركة شحن عفش من جدة الى الامارات
شركة شحن عفش من جدة الى الاردن
I often use online converters to convert files (e.g. doc to pdf, tiff to jpg, etc.). The best in my ranking - https://anyconv.com/ AnyConv
ReplyDeleteI think about it is most required for making more on this get engaged safety razor
ReplyDeleteAwesome Insights Articles about issues and you saved me a hour. Here My question is about the Tech News Tamil Portal website hosting. I Running News Portal website at present I using Host raja hosting, shall I change to CDN server?
ReplyDeleteBlackbird packaging provide you with any size, shape design, custom cbd tincture boxes sooner than any other packaging competitor in the market
ReplyDeleteGreat Article
ReplyDeleteCloud Computing Projects
Networking Projects
Final Year
Projects for CSE
JavaScript Training in Chennai
JavaScript
Training in Chennai
The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals,
Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer.
Angular Training
I hope to see more news from you. Having email is a essential thing when you use internet, but to use email more effectively is not very easy when the instruction is updated and changed regularly for better experience and security, gmail sign in has the tutorial and tips you need.
ReplyDeleteShop electronics online in lahore Goods at Al-Fatah, Pakistan’s leading chain of departmental stores. Shop from a huge range of top brands Home Appliances, Smart-tech and Phones and Sound bars from Al-Fatah. Shop from huge range of electronics available at Al-Fatah. Avail Free Delivery on orders above 1000 PKR in selected cities.
ReplyDeleteVery nice blog for new learners.
ReplyDeleteOpen Commodity Trading Account
Buy microwave ovens online from Al-Fatah at best prices. Get free shipping.
ReplyDeleteBuy sports bra online from Dshred at easy prices delivered at your doorstep. Get free shipping
ReplyDeleteBuy lounge wear for mens from Dshred at best prices delivered at your doorstep. Get free shipping
ReplyDeleteBuy gym trousers for men online from Dshred at best prices delivered at your doorstep. Get free shipping
ReplyDeleteBuy gym trousers for men online from Dshred at best prices delivered at your doorstep. Get free shipping.vvv
ReplyDeleteGood Article. Thank you, very helpful.. does coconut flour expire
ReplyDeleteBuy men accessories online from Al-Fatah at best prices delivered at your doorstep. Get free shipping
ReplyDeleteThank you for the good writeup. It in fact was a amusement account it.
ReplyDeleteLook advanced to far added agreeable from you! By the way, how could we communicate?
Shalom Lamm
We will try to hold our overview up to date with brands that do accept players.
ReplyDeleteShalom Lamm
I really like the knowledge you provide here and can't wait to take a look when I get home.
ReplyDeleteI'm shocked at how quick your blog loaded on my mobile .. I'm not even using WIFI, just 3G ..
Anyways, very good blog!
Shalom Lamm
Thanks for the nice blog. It was very useful for me.
ReplyDeleteShalom Lamm
Much appreciate the blog! Great site! It looks extremely good! Good job!| you are best man…! Yuri Shafranik
ReplyDeleteI am looking for some good blog sites for studying. I was searching over search engines and found your blog site
Yuri Shafranik
I am glad that I found your blog. It is very informative and you put your maximum into it.
Yuri Shafranik
I found your website via Google whilst searching for a similar subject, your website came up, it looks good. I’ve bookmarked it in my google bookmarks.
Yuri Shafranik
Hey there, You have done a fantastic job. I’ll definitely dig it and personally suggest it to my friends. I am confident they will be benefited from this web site
Yuri Shafranik
It is my pleasure to say something about the author. He did deep a awesome job
Yuri Shafranik
I’m usually blogging and I actually appreciate your content. The article has genuinely peaks my interest. I’m going to bookmark your web page and maintain checking for new details. I am looking for some good blog sites for studying. I was searching over search engines and found your blog site. Well, I like your high-quality blog site design plus your posting abilities. Keep doing it.
Yuri Shafranik
Great post. Articles that have meaningful and insightful comments are more enjoyable, at least to me. It’s interesting to read what other people thought and how it relates to them or their clients, as their perspective could possibly help you in the future.
Yuri Shafranik
I think this is one of the most significant pieces of information for me. And I’m glad read your article. Thank you for sharing!
Yuri Shafranik
low investment business idea
ReplyDeletethe best Situs Judi Slot Online
ReplyDeleteFather Rutler has made documentary films in the United States and England, and contributes to numerous scholarly and popular journals. As a member of the U.S. Squash Racquets Association, he’s published one book on the sport, in addition to his religious works. (less)
ReplyDeleteFather george Rutler
I love your creativity. Are you also searching for nursing writing services? we are the best solution for you. We are best known for delivering nursing writing services to students without having to break the bank.
ReplyDeleteTogel2win
ReplyDeleteff rewards
ReplyDeletefree fire diamond hack 99,999
ReplyDeletehttps://coinmastersfreespin.com/
https://lecoiffeur.salon/
ReplyDelete
ReplyDeleteThanks for the spins ... really worakble spins
check also
coin master free spins links
Click here
ReplyDeleteNice Post checkout for more info Click here
ReplyDelete
ReplyDeleteFree Fire Unlimited diamonds 99999 Generator 2021
macbook screen repair dubai
ReplyDelete