locked
publish site not contain webrefereces RRS feed

  • Question

  • User-1060685478 posted

    Hi,

    I have create one asp.net web application in which I am using ASP.net web service. I added web reference in the site in vs 2012 and its working fine.

    But When I am publishing it in one folder its not publishing any file related to web-reference.  How could I change the path of webservice reference to new path in published files on another machine.?

    Any body face this type of issue ? Please suggest.

    Wednesday, March 23, 2016 6:14 AM

Answers

  • User-2057865890 posted

    Hi vyanky,

    You can add the DLL to your project, and change the Copy to Output Directory property to Copy Always.

    To add references to assemblies that have secondary references

    1.In Solution Explorer, click the project name.

    2.On the Project menu, click Add Existing Item.

    3.Browse to the assembly, and click Add.

    4.In Solution Explorer, click the assembly.

    5.In the Properties window, set the Copy to Output Directory property to Copy always.

    How to: Publish Referenced Assemblies

    Best Regards,

    Chris Zhao

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, March 24, 2016 7:12 AM

All replies

  • User-155940424 posted

    Try with redirect to web folder ?

    Wednesday, March 23, 2016 7:28 AM
  • User-2057865890 posted

    Hi vyanky,

    You can add the DLL to your project, and change the Copy to Output Directory property to Copy Always.

    To add references to assemblies that have secondary references

    1.In Solution Explorer, click the project name.

    2.On the Project menu, click Add Existing Item.

    3.Browse to the assembly, and click Add.

    4.In Solution Explorer, click the assembly.

    5.In the Properties window, set the Copy to Output Directory property to Copy always.

    How to: Publish Referenced Assemblies

    Best Regards,

    Chris Zhao

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, March 24, 2016 7:12 AM