Publish Unreliable

Discussion in 'Site Programming, Development and Design' started by JimS, Jun 25, 2010.

  1. I have several Web Application projects that I deploy using "Publish" on the "Build" menu. Sometimes "Publish" reports that it worked, but actually nothing has changed.

    Can anyone suggest a solution? Is FTP the only way to publish to Winhost?

    Also, "Publish" by FTP is very slow when the whole site must be published.
     
    Last edited by a moderator: Oct 14, 2015
  2. Ray

    Ray

    Last edited by a moderator: Oct 14, 2015
  3. Thanks.

    Yes, I used the post to set it up, and yes the location is correct. And it works most of the time. But 1/3 to 1/4 of the time, I'll go look after an apparently successful publish (using an FTP client) and find some files unchanged -- maybe even all (I haven't checked them all).

    It seems to happen more often with web.config, but that could be my imagination. Web.config is often successfully published, however.

    Could it have to do with permissions of files on my Winhost site?
     
    Last edited by a moderator: Oct 14, 2015
  4. Permissions probably wouldn't cause an intermittent problem like that. In any kind of file transfer, no matter what the method is, that kind of partial failure is usually due to a network issue. A connection that is dropping packets or something. When you see the problem again, try doing a ping and/or traceroute to the server to see if there is a network problem.
     
    Last edited: Oct 14, 2015
  5. OK. Thanks. Good point about permissions. The funny thing is that Visual Studio reports success, but some files are unchanged.
     
  6. Ray

    Ray

    For something like this I also suggest using a true FTP client such as FileZilla. The reason being is that it creates a FTP log which is very useful for FTP troubleshooting. The FTP log is a communication log between your computer and our server.
     
  7. I wonder if Publish uses the file timestamp to determine what has changed. If so, it might have something to do with slight differences in the time on the server and publishing computer. I don't think that's what I'm seeing, but it's possible. I don't think I've seen any failures when I told VS to clear the destination folder (but it takes a long time) or after deleting the file to be updated from the server.
     
  8. Ray

    Ray

    I believe it also uses file size and time stamp.
     

Share This Page