Physical path for IIS Web Service too long

Topics: IIS and Web Services
Aug 20, 2013 at 4:17 PM
When I'm trying to copy my web services during the MSI build using the BTDF, I'm getting the following error: "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.". Is there anyway to get around this error? A sample of one of my Virtual Directories that is being copied looks like the below:
    <VDirList Include="*">
Aug 20, 2013 at 4:35 PM
That has to be a result of your entire source code folder structure being too deep. This is just a side effect of that because to build the MSI the files are copied under obj\Debug/Release\redist, so in addition to the existing structure of your source code, it's also trying to create obj\Release\redist\ESB.AccountsReceivable.Application.Publish.Adjustment and that's pushing it over the limit.

You'll have to reduce the length of your folder names or move the entire solution to a less-nested location in your source code tree.