find a location for property in a new city

Tuesday, 29 November 2011

Conflicting versions of ASP.NET Web Pages detected

I was going through the Windows Azure Platform Training Kit, Exercise 1 of the Service Bus Messaging lab and I ran into the following error message when trying to run my site, "Conflicting versions of ASP.NET Web Pages detected: specified version is "1.0.0.0", but the version in bin is "2.0.0.0". To continue, remove files from the application's bin directory or remove the version specification in web.config."

I checked the web.config and the assembly specified was indeed 1.0.0.0: <add assembly="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />.

When I checked the System.Web.WebPages reference in my project though it also said its version is 1.0.0.0. So what's the problem?

System.Web.WebPages.Deployment

The assembly System.Web.WebPages.Deployment was referenced in my project and on closer inspection it was version 2.0.0.0 so it must be this which is causing the problem. I do not need this assembly though so I deleted it and the error went away.

Follow britishdev on Twitter

15 comments:

  1. The post is absolutely fantastic! Lots of great information and inspiration both of which we all need! Also like to admire the time and effort you put into your blog and detailed information you offer! I will bookmark your blog!
    Celabright videos

    ReplyDelete
  2. Wow buddy!! you did the trick for me.. i was banging my head from last few weeks to rectify this issue in one of my old project. Checked lots n lots of forums and posts but nothing worked. You are awesome. Thanks a ton.

    ReplyDelete
  3. As a java Web Developer,they should have all knowledge of frameworks.Good to see that you provide this detail.i think now-a-days hibernate,spring and Struct2 are more used. CodCow

    ReplyDelete
  4. Norton Removal Tool allow you to remove all unused Norton products and reinstall new version of those Norton products. This norton antivirus security software allow you to protect your device from various types of viruses problems in your device. It has a number of versions. Norton 360 is an advanced version of norton setup. It includes different types of security features. To know more visit Norton 360 Login.

    ReplyDelete
  5. if you are looking for the best security protection for your system against cyber problems and threads. McAfee is the best option for you as per your security is concern for more details visit our website mcafee security

    ReplyDelete
  6. Dragon NaturallySpeaking software is a speech recognition program that allows the user to speak into a microphone on a computer with the software translating
    dragon naturally speaking | dragon naturallyspeaking

    ReplyDelete
  7. Webroot antivirus, internet security, and identity protection. Webroot SecureAnywhere® Mobile Free keeps you secure when browsing, shopping and banking.
    www.webroot.com/secure | webroot.com/secure |
    Install Webroot With Key Code

    ReplyDelete
  8. eset internet security can be installed quickly on each device if the user follows the correct procedure. You can follow the instructions below to install the setup on your devices such as Windows PC, Mac, or mobile device. www.eset.com/ca/download Best IT security solutions for your home and business devices.

    ReplyDelete
  9. canon printer setup into your pc, your system does not need to install the driver on it. Canon printer that can be downloaded via page is the best wireless printer that you can connect to your device and print data smoothly. canon.com/ijsetup
    CD is not the well-suited technique to use canon.comijsetup setup installation for longer.

    ReplyDelete
  10. Updates to the TomTom software and GPS maps are periodically made available to fix bugs and update road changes.
    tomtom.com/getstarted | tomtom get started | www.tomtom.com/getstarted | tomtom update

    ReplyDelete
  11. Nice one! thank you so much! Thank you for sharing this post.
    trendmicro.com/activation
    avast.com/activate

    ReplyDelete