locked
VS2012 Won't Publish Website with Virtual Folders RRS feed

  • Question

  • I have several web sites that contain virtual folders in the project and will not publish.  The error is "/website/virtualfolder/foo.ascx does not exist.

    If I run the project in debug mode using IIS express everything runs and works great.  It's only on the publish that this has started to fail.  This has worked in the past and I believe that something in Update #3 for VS2012 has caused this error to occur.

    The only work around I have found is to copy the contents of the virtual folders to physical folders in the web site and publish.  Once the website has been deployed to the web server, I remove the physical copies of the virtual folders and the web site works using the original virtual folders on the web server.

    Has anyone come across this same problem?  Is there a fix for this?

    Monday, July 29, 2013 7:13 PM

All replies

  • Could you please share the part of Msbuild Script here? Thanks!


    deny to access the Microsoft. build. evaluation.n project.

    Thursday, August 1, 2013 2:04 AM
  • Hi C-Sharp,

    Sorry to tell you that this forum is to discuss problems of MsBuild. Your question is not related to the topic
    of this forum.

    You could consider posting it in the dedicated ASP.Net Forum http://forums.asp.net for more efficient responses, where you can contact ASP.NET experts. Thanks!



    Sophia Gou
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, August 5, 2013 2:14 AM