0

I am using Visual studio 2008,

I have created a C# console application as client for WCF web service, When I try to publish the client am getting the following error.

Error 105 Unable to copy file "bin\x64\Release\GameBoardWebServerServiceClient.exe.manifest" to "bin\x64\Release\app.publish\Application Files\GameBoardWebServerServiceClient_1_0_0_4\GameBoardWebServerServiceClient.exe.manifest". The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets 3554

The problem is occuring here in Microsoft.Common.targets file

<!-- Copy files to publish folder -->
    <Copy
        SourceFiles=
            "@(_ApplicationManifestFinal);
            @(_DeploymentResolvedManifestEntryPoint);
            @(_DeploymentManifestFiles);
            @(ReferenceComWrappersToCopyLocal);
            @(ResolvedIsolatedComModules);
            @(_DeploymentLooseManifestFile)"
        DestinationFiles=
            "@(_ApplicationManifestFinal->'$(_DeploymentApplicationDir)%(TargetPath)');
            @(_DeploymentManifestEntryPoint->'$(_DeploymentApplicationDir)%(TargetPath)$(_DeploymentFileMappingExtension)');
            @(_DeploymentManifestFiles->'$(_DeploymentApplicationDir)%(TargetPath)$(_DeploymentFileMappingExtension)');
            @(ReferenceComWrappersToCopyLocal->'$(_DeploymentApplicationDir)%(FileName)%(Extension)$(_DeploymentFileMappingExtension)');
            @(ResolvedIsolatedComModules->'$(_DeploymentApplicationDir)%(FileName)%(Extension)$(_DeploymentFileMappingExtension)');
            @(_DeploymentLooseManifestFile->'$(_DeploymentApplicationDir)%(FileName)%(Extension)$(_DeploymentFileMappingExtension)')"
        SkipUnchangedFiles="true"
        OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)"/>

    <Copy
        SourceFiles="@(_DeploymentManifestDependencies)"
        DestinationFiles="@(_DeploymentManifestDependencies->'$(_DeploymentApplicationDir)%(TargetPath)$(_DeploymentFileMappingExtension)')"
        SkipUnchangedFiles="true"
        OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)"
        Condition="'%(_DeploymentManifestDependencies.DependencyType)'=='Install'"/>

    <Copy
        SourceFiles="@(_ReferenceScatterPaths)"
        DestinationFiles="@(_ReferenceScatterPaths->'$(_DeploymentApplicationDir)%(Filename)%(Extension)$(_DeploymentFileMappingExtension)')"
        SkipUnchangedFiles="true"
        OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)"/>`

How to solve this ?

Is there any way to change the maximum size parameter or any such work around without having to reduce the filename

0 Answers0