SharePoint web part not updating after deployed

Posted on 2011-10-28
Last Modified: 2012-05-12
I have a SharePoint 2007 web part that I have deployed that I use ASP.NET and C# code with.  It is deployed fine and works.  However, when I make changes to the code, and deploy the code to the server again, I do not see any changes.  The process I use to deploy the code is copying the .DLL files to the GAC and then executing the "gacutil /i pathtofile" and it adds all of the DLL files to the GAC and it appears to work fine.  However nothing changes.  I Build the Visual Studio solution and it compiles fine before I move the files to the GAC.  I can't figure out why it won't update
Question by:zintech
    LVL 11

    Expert Comment

    Processes that load GAC'd assemblies need to be restarted to reload the new assembly.  In IIS this is as simple as an iisreset.  However, if you prefer, you can restart just the app-pool related to the sharepoint site with the IIS Admin interface or with the iisapp command.

    Author Comment

    Every time I deploy the new .DLL files into the GAC I do an IISreset.  I will try the IISapp command.  Any other suggestions my issue might be?
    LVL 11

    Expert Comment

    Do you have more than one version of the dll in the GAC?
    LVL 3

    Accepted Solution

    Open GAC
    Select the DLL you want.
    Right click and  Uninstall the assembly.
    Drag and drop the assembly that you want to deploy.
    now select assembly right click --> Properties.
    Copy and paste the version, key properly in the web.config file.
    Reset IIS.

    Even though it is not working..
    Then go to webpart library
    Click new
    Check the webparts and respective assembly properties

    It should work now

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    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

    Summary In SharePoint 2010 it is easy to create custom color themes to jazz up a site. Theme colors can also be created in PowerPoint 2010 with a few clicks. But how do the chosen colors actually look in the SharePoint site? The attached PowerPoint…
    These days socially coordinated efforts have turned into a critical requirement for enterprises.
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    758 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

    11 Experts available now in Live!

    Get 1:1 Help Now