Clickonce publish and getting error Could not copy

T.Zacks 3,996 Reputation points
2022-09-11T07:26:54.873+00:00

I am working with VS2022 IDE and having winform project using .net core 6. when i am doing click once publish then some time publish is not getting completed rather getting error message like

Could not copy "D:\Bloomberg_TFS\BloomBerg\Bloomberg_WB\Bloomberg_WB\obj\x64\Release\net6.0-windows\apphost.exe" to "\172.17.11.19\RDSS WorkBench\RDSS_Publish\Bloomberg_Publish\Bloomberg_WB.exe"

please guide me what would be solution to get rid of this error.

Thanks

Developer technologies C#
{count} vote

1 answer

Sort by: Most helpful
  1. Rachel Gomez 166 Reputation points
    2022-09-13T05:49:58.413+00:00

    By default, a Visual Basic Windows-based application includes an App.config file. There will be a problem when a user tries to install from a Web server that uses Windows Server 2003, because that operating system blocks the installation of .config files for security reasons. To enable the .config file to be installed, click Use ".deploy" file extension in the Publish Options dialog box.

    You also must set the content types (also known as MIME types) appropriately for .application, .manifest, and .deploy files. For more information, see your Web server documentation.

    Regards,
    Rachel Gomez

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.