Deployment to Azure Web App from TFS not updating

Hi all,
I'm having a problem with deployments to my azure web app. I'm committing my code to Visual Studio Online and then running a build to get VSO to deploy the code to Azure. The deployment seems to work fine (there are no errors that I can see)
but often the files aren't updating on the website. I'm getting errors for old code and when I view the pages in question online (using the VSO editor), they look fine. Has anyone come across this issue before?

Hi David,
The errors I've been getting belong to old versions of files not being refreshed. For example, I changed one of my mvc views to take a different model. After deploying the code, the controller was sending in the new model but because the view didn't update,
it was expecting the old model to be passed in and hence caused a runtime error. It seems to me like Azure is caching certain files. I think that is the case because when I viewed that view file I changed in the VSO editor, it showed the correct code but the
front end was still showing the old code.
The only thing I've been able to do that has worked reliably over the last week is stopping the website, deploying the code and then starting the website. The code gets deployed correctly every time I do that. This is not an ideal scenario and I'm hoping
there's something that can be done.

Similar Messages

  • Deploying 11g Fusion Web App: FacesServlet class not found

    Hi,
    I have made a very simple Fusion Web Application (ADF) having only one .jspx saying "Welcome Weblogic".
    This application I would like to deploy onto my WLS 11g (10.3). I have installed the ADF Framework including the jsf 1.2 jar.
    I have created weblogic.xml...
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <weblogic-web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-web-app.xsd" xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app">
    <library-ref>
    <library-name>jsf</library-name>
    </library-ref>
    </weblogic-web-app>
    ..and weblogic-application.xml like this:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <weblogic-application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-application.xsd" xmlns="http://www.bea.com/ns/weblogic/weblogic-application">
    <library-ref>
    <library-name>jsf</library-name>
    </library-ref>
    </weblogic-application>
    When I deploy I get this error in the log:
    java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:296)
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:269)
    at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:55)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    It seems like the weblogic.xml and/or weblogic-application.xml is ignored?
    Or is it the insallation of the ADF Framework that is missing some configuration?
    In the setDomainEnv.cmd file placed on the server the following is included:
    if NOT "%POST_CLASSPATH%"=="" (
    set POST_CLASSPATH=%ORACLE_HOME%\modules\oracle.jrf_11.1.1\jrf.jar;%POST_CLASSPATH%
    ) else (
    set POST_CLASSPATH=%ORACLE_HOME%\modules\oracle.jrf_11.1.1\jrf.jar
    Best regards
    Mads Wermelin

    Problem solved!
    First I added following to the setDomainEnv.cmd
    if NOT "%POST_CLASSPATH%"=="" (
    set POST_CLASSPATH=%ORACLE_HOME%\modules\features\adf.share_11.1.1.jar;%POST_CLASSPATH%
    ) else (
         set POST_CLASSPATH=%ORACLE_HOME%\modules\features\adf.share_11.1.1.jar
    if NOT "%POST_CLASSPATH%"=="" (
    set POST_CLASSPATH=%ORACLE_HOME%\modules\features\adf.model_11.1.1.jar;%POST_CLASSPATH%
    ) else (
         set POST_CLASSPATH=%ORACLE_HOME%\modules\features\adf.model_11.1.1.jar
    Then I came across another post having the same issue. He told me that I had to start up my server (managed server) manually. Therefore I first stopped my server
    stopManagedWebLogic.cmd [servername]
    (eg. stopManagedWebLogic.cmd AppServer)
    and then started it
    startManagedWebLogic.cmd [servername]
    (eg. startManagedWebLogic.cmd AppServer)
    Now the setDomainEnv.cmd also got executed (look in the server log to verify it - eg. java.library.path is set, and a lot more which is not set when you normally start the WebLogic)
    So - I am now able to deploy Fusion Web Applications to my managed server in the WebLogic.
    Best regards
    Mads

  • Publishing to Azure Web App when using nuget "Microsoft.SqlServer.Types" crashes WebDeploy

    I have a project where I use "Microsoft.SqlServer.Types" that loads an assembly manually as part of the package.
    The problem arises when I publish this via Visual Studio. I get an error that the file is already in use from WebDeploy. This is probably because of how the assemblies are loaded or something that makes them locked.
    Repro steps:
    Create an ASP.NET web and add nuget package "Microsoft.SqlServer.Types" and make sure you load the assembly using the provided ReadMe.txt in your App_Start.
    Deploy to Azure Web App.
    Deplay again when the app is up and running - you'll get the error.
    Does WebDeploy have an option for shutting down the site when updating or something like that? This error also apply to any WebJobs that also use the "Microsoft.SqlServer.Types" package.

    there is a way to take the site down during publishing please read through this blog post 
    http://blogs.msdn.com/b/webdev/archive/2013/10/30/web-publishing-updates-for-app-offline-and-usechecksum.aspx
    please read the part about appoffline
    Thanks, Hosam

  • Azure Web Apps extremely unstable following switch from VMs

    Last week we made the switch from Azure VMs to Azure Web Apps (web sites). The main reason for doing so was to take advantage of continuous deployment, auto-scaling and deployment slots.
    We have 4 web apps running on S2 instances (currently scaling up to 2 instances). We then have 4 other virtual machines that host our databases (RavenDB) and another web app that cannot be hosted on Web Apps. We're using VNETs to connect everything together.
    Previously the entire system was hosted on just 2 virtual machines.
    A week on we're finding
    a) Performance has degraded
    b) The Web Apps (and associated service) are increasingly unreliable
    We used to deploy frequently throughout the day without issue. Since moving to Web Apps we regularly experience 503 errors for up to a minute following a deployment. We switched to staging slots to try and circumvent this but even this hasn't been foolproof.
    We're now actually reluctant to deploy changes to our API during the day because it has been so unreliable.
    Performance has also suffered - we're using New Relic for monitoring and our throughput has halved since moving to Web Apps despite the web apps actually having more resources than they did before.
    Auto-scaling has also been very hit and miss. Our apps rarely put any load on CPU but they can use quite a lot of memory. We set up auto-scaling based on memory but rather unhelpfully the new portal changed our "less than or equal to" scaling rule
    to "equal to" meaning that the instances never scaled down - thanks Azure! I believe this is still an issue in the portal.
    We've gone from almost 6 months of 100% uptime to a week of regular issues. We deployed a new web app today and attached it to the same to virtual network used by our other apps and it caused a disruption in the other apps - our API could no longer contact
    the virtual machine hosting RavenDB.
    All-in-all this has not been a great experience and if it's a choice between reliability/performance and the bells and whistles that Azure Web Apps provide, I'll be going back to VMs.

    Hi David,
    It's an ASP.NET Web API application and we're deploying with Web Deploy.
    When we first switched to Web Apps and deployed directly to the "live" instance we found that we were getting 503 errors. There were no errors in our application logs (Elmah) so I'm assuming this is an issue outside of the application. We do have
    250 or so sites that are serviced by the API so I would expect a slight delay whilst the application starts but certainly not a 503. In some cases we had to re-deploy (the same code) to get things back.
    We then switched to using Staging Slots to try and avoid this issue. Whilst this avoided the 503 errors most of the time, the time it takes for the application to come back up following a deployment has increased dramatically - and this is despite "hot
    swapping" from staging to production.
    Yesterday I tested this by deploying to staging and then swapping the deployment. It took over 30 seconds following the swap before the API was available. When I used to deploy to the VM it was available almost immediately.

  • Azure Web Apps (Web Sites) vs Azure Cloud Services (Web Roles)

    Hi All,
    Need some help in choosing between the Web App or a Web Role for a MVC5 application that we are going to build. We are planning to build an MVC5 application which will consume a Web API (hosted on Azure). The MVC5 application would be an external site and
    it needs to be load balanced and it would be hosted on Azure.
    We are not able to decide on the hosting options for the same ... between Azure Web Apps and a Web Role. We didnt come across anything which will help us to make a choice as to where the Web Apps fall short or which one should one go for etc.
    Any help on this front would be highly appreciated.
    Regards,
    Saurabh

    To make your life easier you should start by using Web Apps, they have many more features than Web Roles (git deployment, backup, free sku, webjobs, continuous integration and many more).
    There are some scenarios that are not supported like remote desktop to the VM.
    But the reason you should start with them is that unlike Web Roles you won't have any special code relying on the environment you are running on so you will be able to easily move to web roles in case you find a scenario that is not supported by Web Apps.

  • Prevent Lync 2010 Web App From Running

    I am an SCCM administrator and have been placed with the task of trying to figure out a means by which to prevent some users that have been abusing IM from using MS Lync. I have already setup the desktop support team with a device collection that they
    can place any machine into to uninstall MS Lync and Lync Group Chat 2010 from that machine. However, the desktop support team also wants to prevent these users from access to the MS Lync Web App, which I am having difficulties trying to figure out some way
    to block this addin from installing/running. We had already inquired with our exchange team and they refused to delete Lync access from the problem users' AD accounts because they felt that it would be too difficult to manage and I don't have access to Exchange,
    so I can't change their Lync access from the account administration end. Is there a way to prevent the Lync 2010 Web App from installing/running via SCCM configuration baseline and/or GPO? Thanks to anyone who can provide some suggestions.

    You can't disable it using SCCM or GPO because it's web application. You can disable it from Lync Server.
    To disable Lync Web App, You can check below link
    http://social.technet.microsoft.com/Forums/lync/en-US/33fbfa3f-e7dd-43a7-85f4-43c280e17d4f/disable-lync-web-app-link?forum=ocsconferencing
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"
    Mai Ali | My blog: Technical | Twitter:
    Mai Ali

  • Unable to create web app with PowerShell - An update conflict has occurred

    I am trying to create a new Web Application using PowerShell. I need to use PowerShell because I need to create the Web App using classic authentication and not Claims authentication. the first time I created the Web App, everything went great. Ever since
    the first time, I get an error and the web app creation does not complete. Just as an FYI, I can create a new Web App using Central Admin, but that creates it with Claims authentication which I cannot use.
    Here is my PowerShell script
    New-SPWebApplication -Name "SharePoint2013 (82)" -ApplicationPool "SharePoint2013-82" -AuthenticationMethod "NTLM" -ApplicationPoolAccount (Get-SPManagedAccount "GLOBAL\SP_AppPool") -Port 82 -URL "http://sharepoint2013"
    Here is the error I get in PowerShell
    New-SPWebApplication : An update conflict has occurred, and you must re-try this action. The object SPWebApplication
    Name=SharePoint2013 (82) was updated by DOMAIN\SP_Administrator, in the powershell (13020) process, on machine SPWEB01.
     View the tracing log for more information about the conflict.
    At line:1 char:1
    + New-SPWebApplication -Name "SharePoint2013 (82)" -ApplicationPool "SharePoint201 ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidData: (Microsoft.Share...PWebApplication:SPCmdletNewSPWebApplication) [New-SPWebA
       pplication], SPUpdatedConcurrencyException
        + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletNewSPWebApplicationUnknown SQL Exception 547 occurred. Additional error information from SQL Server is included below.
    The DELETE statement conflicted with the REFERENCE constraint "FK_Dependencies1_Objects". The conflict occurred in database "SP_Config", table "dbo.Dependencies", column 'ObjectId'.
    The statement has been terminated.
    I also get  this error from the trace
    Unknown SQL Exception 547 occurred. Additional error information from SQL Server is included below.
    The DELETE statement conflicted with the REFERENCE constraint "FK_Dependencies1_Objects". The conflict occurred in database "SP_Config", table "dbo.Dependencies", column 'ObjectId'.
    The statement has been terminated.
    I have tried to resolve the issue by performing the following:
    Delete the partially created web app using Central Admin or PowerShell
    Clear the file system cache on all servers in the farm (Stopping wss timer job, Saving Copy of the
    cache.ini file from C:\Documents and Settings\All Users\application data\Microsoft\SharePoint\Config folder. Clearing all the .xml files from the location except cache.ini but Edit the cache.ini to have value 1. Starting the timer job)
    Use Products Configuration Wizard (no detach, just 'upgrade') - People have said to select the option to disconnect the server from server farm and revert back again at next step (so you actually do not disconnect), but there is no next step that I have
    encountered. You select 'disconnect', hit next, and the server disconnects.
    Restart all the servers in the farm
    Run the PowerShell script again...still get the same error
    I have tried it on multiple servers in the farm too.

    Hi Michael,
    I found a similar thread for you reference:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/9ccef7bf-87a9-4849-b086-4db2d898f1d7/cannot-create-new-web-application-wss-30?forum=sharepointadminlegacy 
    If it doesn’t work, sometimes the issue might be caused by long time keep powershell opening and generating some cache files. So please try re-opening the powershell and test the issue again.
    http://blogs.msdn.com/b/ronalg/archive/2011/06/24/mount-spcontentdatabase-errors-on-2nd-and-subsequent-attempts-of-same-database.aspx?Redirected=true 
    http://www.oakwoodinsights.com/sharepoint-powershell-surprise/
    In addition, here is an article which explains the possible reason of the SQL error:
    http://technet.microsoft.com/en-us/library/ee513056(v=office.14).aspx
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • I have an Ipad 2 and have about 20 apps that will not update, How can I delete these?

    I have some apps that will not update on my IPad 2.  They say they are installing, but Installing is grey..not black, and they have been like this for several weeks.  I cannot find out how to finish the updates or delete them.  Can someone suggest a solution?  Thanks, Ann

    You can only delete them one at a time on the iPad. If you have an IMAP email account, go to your email in on the server using a web browser and select as many as you can at a time and delete them that way. That action will be reflected on the iPad. In IMAP - whatever you do on one device syncs across all devices. If you have POP email - start deleting one at a time.

  • Mac app store will not update my apps

    I try repeatedly to update aperture to 3.x.x and the app store keeps saying there has been an error and try again later ... for about 2 months!

    Thanks for your response ...
    Aperture was purchased from app store. Was updated to 3.2.1 and again to 3.2.3 but will not update to 3.3
    I get an ' error at app store, can not update at this time (13)'
    Just wondering if it's on my end or something at the app store.
    Why would the app store inform me of the update but not let me get it?
    Best regards, T.

  • HT204266 i have several apps that are not updating, they are stuck saying "waiting"

    I have several apps that are not updating, they are stuck saying "waiting".

    Are you downloading music?
    Check by going to iTunes (on iDevice) > downloads and then remove the one that is trying to download, this will then make the others download and when they are finished, the apps will update/install

  • The app store will not update my apps.

    The app store will not update my apps.  I keep clicking update all but it just spins for hours.  I have restarted the computer and the store multiple times but it just hangs on updates.  Suggestions?

    De nada amigo.
    Thank You for extending the courtesy of awarding points to comments that are helpful or provide answers in the Apple Support Communities, as this is not mandatory, but it is much appreciated!

  • How can I stop my Apps from being automatically updated on my iPad2?

    How can I stopy my Apps from being automatically updated on my iPad2? I have an extremely slow wi-fi at work and my iPad Apps appear to be frozen as they are waiting to be updated. Help!

    In iTunes use the File menu "Transfer purchases from..." item. Ordinarily you will get a warning to do this before an update. Presumably your computer is authorized to use your account and it is the computer to which you normally sync your iPod?

  • I have apps that will not update that have been like that for a while.. why wont they updat?

    I have apps that will not update that have been like that for a while.... why will they not update???

    Yes apps are stuck on "waiting" one has been like that for a month and my other ones still wont download

  • How to deploy web app from PC to Linux with Netbeans ?

    I am developing a web app in Netbeans 6.0 on my PC, using the Tomcat comes with the IDE, now I need to deploy it to a Linux server running Tomcat, can I do it from inside the IDE ? Can it copy all the servlets and other java classes to the Linux for me ? If so, what info does it need from me ? Login, password ... ?
    If not, how can I do it by hand ?
    Frank

    RTFM
    You need to consult the NetBeans Help to see if it will export a WAR/EAR. Regarding getting it over to Linux, there are some issues there. But if you have visibility to the Linux deploy directory from your PC then it's possible. It's certainly possible to do ALL of this using Apache Ant.

  • Deleting a Web app from the Azure Management Portal

    When I selected a Web app in Azure Management Portal and clicked Delete at the bottom, the message "Loading" would hang there for hours without actually deleting that Web app.  I just got started with the free trial.  Am I missing something?
    Thanks, Paul

    Hi,
    Have you linked SQL Azure Database to the webapp, please check and unlink the SQL database and then try to delete the webapp from the portal.
    Clear cookies and cache files from Internet Explorer and let us know the results.
    Girish Prajwal

Maybe you are looking for