problem updating reference in my web app

Posted on 2008-11-17
Last Modified: 2013-11-26
I recently just upgraded to VisualStudio 2008 and noticed that the 'update reference' is now gone when right clicking on an assembly in the bin folder of a web application project.  

For example, I created a class library project, compiled and added the reference in my web application project.  After modifying the class library project and re-compiling, the changes aren't getting picked up in my web app project.  I don't see how to update the reference.  I tried removing the reference and re-adding, but it still does not pick up the changes I made.  I don't know what is going on?

What am I missing?  How do you update a reference to an assembly in a web application project?

Thanks for any help.
Question by:-Dman100-
    LVL 22

    Accepted Solution

    It should pick your updated dll in your application. If for any reason it didn't pick it up, try a "Clean Solution" under the "Build" menu.

    Author Comment

    I noticed that many of the changes I had made to the dll in my application were automatically updated.  However, last night, I made some changes such as adding [System.ComponentModel.DataObject] to my business logic classes with the DataObjectMethodAttribute attributes to the methods in my classes so that they would recognized by the ObjectDataSource control as bindable.  Those changes weren't immediately picked up.

    Then when I modified and added some new methods to my classes, those weren't and still haven't been updated in my web application project.  I've re-compiled and the assembly compiles fine, but the web app doesn't see the new changes.

    I'll give the Build >> Clean Solution a try this evening when I get back to my home office.  I'll report back and let you know if that resolves the issue.

    Anything else I should try if for whatever reason that does not work?

    Thanks for the help.
    LVL 22

    Expert Comment

    Maybe close and reopen the project? Sounds silly but who knows? It might just be a cache issue.

    Author Comment

    Hi Priariedog,

    I tried a Build >> Clean Solution but that sitll didn't update the reference to my dll...strange?

    I removed the reference completely and deleted the dll and pdf file out of the bin folder and then re-added the reference to the dll.  That finally picked up the changes.

    I hope I don't have to do that all the time.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
    Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now