locked
Publishing a Web site using VS 2012 Update 2 RRS feed

  • Question

  • User-1616471158 posted

    Starting with Update 2 of Visual Studio 2012, the Web Publish routine was changed.

    I am having difficulties setting the Site Path using the FTP option. The default is “wwwroot”. When I attempt to Publish my Website using a Site Path of “wwwroot”, a new directory is created called “wwwroot” and the Web pages are added to this folder. This proves that the copy physically works, but how do I copy to the root directory (“/”) of my Website?

    I have tried various combinations of the Site Path using “.” and “/” without success.

    Does anyone know how to set the Site Path to simply update a Website?

     Nev

    Sunday, September 8, 2013 5:40 AM

All replies

  • User-691245060 posted

    have you specified path as - wwwroot/mysitefolder

    thanks.

    Sunday, September 8, 2013 6:33 AM
  • User-1616471158 posted

    What is "mysitefolder" for a Website www.mysite.com?

     

    Nev

    Sunday, September 8, 2013 6:42 AM
  • User-1426144113 posted

    Hi,

    a new directory is created called “wwwroot” and the Web pages are added to this folder

    Where this new folder of "wwwroot" in?

    What's the physical path of your FTP?

    A reference may benefit you: http://msdn.microsoft.com/en-us/library/dd434211%28v=vs.100%29.aspx

    Thanks

    Monday, September 9, 2013 11:15 AM
  • User-801004448 posted

    I have tried various combinations of the Site Path using “.” and “/” without success.

    Have you tried leaving Site Path blank?

    Thursday, September 19, 2013 4:35 AM
  • User-1616471158 posted

    Thanks for the suggestion. I have taken this a bit further.

    When the Site Path is blank the Publish fails. I get the error message: "Cannot remove folder aspnet_client/system_web/4_0_30319".

    When I attempt to delete this empty folder – the folder just gets recreated. 

    If I do a Publish and with a delete of all files prior to copying, the Publish fails – but my site files get deleted. If I then do another publish without doing any deletions, the publish succeeds.

    I am sure that the folder "aspnet_client/system_web/4_0_30319" is not needed. This folder is not created when I Publish using VS2012 Update 1.

     

    Nev 

     

    Thursday, September 19, 2013 3:10 PM
  • User-1454326058 posted

    Hi NSilverman,

    Thanks for your post!

    Based on my test, we can let the Site Path empty in the FTP publish wizard if we want publish the project into the root path. The aspnet_client folder won't be deleted.

    I think that maybe there is a aspnet_client folder in your project, please check your project.

    Thanks

    Best Regards

    Friday, September 20, 2013 10:53 PM
  • User-1616471158 posted

    Hi,

    Good suggestion. I checked, but there is no aspnet_client in the Web files (embedded or as a folder or a file).

    I am reasonably sure that this Folder is being created by IIS. Previously, .Net 1.1 and higher have had the same problem - then it was fixed. Now the Folder problem has reappeared.

    Nev

    Saturday, September 21, 2013 12:16 AM
  • User-1426144113 posted

    Hi,

    This link may help you http://forum.winhost.com/threads/cannot-delete-aspnet_client-folder.8102/

    Thanks

    Sunday, September 22, 2013 11:45 PM
  • User-1616471158 posted

    Thanks for the reference.

    I was able to delete the folder aspnet_client using FileZilla. But within seconds it reappeared again.

    Finally my provider altered the permissions on the folder, and I can Publish once more.

     

    Nev

     

    Monday, September 23, 2013 2:24 AM
  • User-1426144113 posted

    Hi,

    Do you mean, you solved the issus when you provider altered the permissions on the folder.

    Thanks

    Tuesday, September 24, 2013 1:52 AM
  • User-1616471158 posted

    Yes, the issue was resolved by the Provider by changing the permissions of the Folder permanently. I am sure that Microsoft will fix the problem - eventually.

    Thanks for the effort.

     

    Nev

     

    Tuesday, September 24, 2013 2:41 AM
  • User-801004448 posted

    Do you publish website to a remote web server?

    You can save yourself lots of time by using ftp software (like firezilla ftp), connect to hosting server, upload all files in website project to hosting space.

    If website has database, restore database to hosting server and update connection string.

    Friday, September 27, 2013 1:33 AM