Publish skips some files in VS 2008

Last post 11-12-2009 12:37 PM by BradAmodeo. 6 replies.

Sort Posts:

  • Publish skips some files in VS 2008

    11-06-2009, 12:40 PM
    • Member
      41 point Member
    • BradAmodeo
    • Member since 03-26-2003, 11:23 AM
    • Posts 33

    I am using the Publish function in VS 2008 to upload my web application to the server.  Most of the files are placed on the server, however I have a Crystal Report in a folder named Reports and that folder and its contents (.rpt and .cs files) are not being uploaded.  Everything else (including images, javascript files, text files) is being published and the application works, except for the crystal report.

    I select the following options when publishing:

    • Target:  Delete all existing files prior to publish
    • ------
    • Copy:  Only files needed to run this application
    • Copy:  Include files from the App_Data folder (checked--even though I don't have any files there)

    When I manually copy the files to the server, the application works.  However, I want it to work with the Publish function so I can keep the process fully automated.

     

    Any suggestions are greatly appreciated!

    Brad

  • Re: Publish skips some files in VS 2008

    11-06-2009, 1:11 PM
    • All-Star
      26,951 point All-Star
    • qwe123kids
    • Member since 03-27-2008, 5:49 AM
    • Mumbai
    • Posts 4,561

    Hi,


    http://weblogs.asp.net/scottgu/archive/2006/03/27/New-Publish-Feature-with-VS-2005-Web-Application-Projects.aspx

    Just Try "All Files in the source project folder"

    Thanks
    Avinash Tiwari

    Remember to click “Mark as Answer” on the post, if it helps you.

    MY Blog

    Hacking Inside .net exe
  • Re: Publish skips some files in VS 2008

    11-06-2009, 1:46 PM
    • Member
      41 point Member
    • BradAmodeo
    • Member since 03-26-2003, 11:23 AM
    • Posts 33

    But won't that also upload my source code files?  I don't want the source code on the server. 

  • Re: Publish skips some files in VS 2008

    11-07-2009, 11:48 AM
    • Participant
      878 point Participant
    • dangerouschotu
    • Member since 10-11-2008, 12:10 PM
    • Jaipur
    • Posts 318

    BradAmodeo:
    ublish function in VS 2008


    when you publish a website all the app_code data is inside the bin folder

    if you uncheck the checkbox :-precompiled web.

    where is the problem occurs. use this process

    Thanks & Regards,
    Please 'mark as answer' my post if they are helpful.
  • Re: Publish skips some files in VS 2008

    11-10-2009, 1:30 PM
    • Member
      41 point Member
    • BradAmodeo
    • Member since 03-26-2003, 11:23 AM
    • Posts 33

    Sorry, but I'm having a little trouble understanding what you mean.

    When I select "All project files" or "All files in the source project folder" then EVERYTHING gets uploaded to the server, including all of my C# code.

    When I select "Only files needed to run this application" then the C# files aren't uploaded, but neither is the content of my "Reports" folder (the crystal reports)

    I can't be the only one who has encountered this problem.

  • Re: Publish skips some files in VS 2008

    11-11-2009, 3:40 AM
    Answer

    Hi,

    It seems that your project is ASP.NET web application.

    Please try to configure these files's Copy to Output Directory to "Copy always" by right clicking file and then enter its Properties window.

     

    I look forward to receiving your test results.

    Thomas Sun
    Microsoft Online Community Support

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
  • Re: Publish skips some files in VS 2008

    11-12-2009, 12:37 PM
    • Member
      41 point Member
    • BradAmodeo
    • Member since 03-26-2003, 11:23 AM
    • Posts 33

    Thank you!  That solved the problem! 

Page 1 of 1 (7 items)