Link to home
Start Free TrialLog in
Avatar of wayneray
waynerayFlag for United States of America

asked on

Can no longer build solution due to missing file error

I am building an inventory solution for a friend and after making changes to the solution, I cannot get the solution to build. The error is "Cannot find file 'filename'.  The associated error number is MSB3113. When I double-click the error it opens a target file and  the line of the error starts with <GenerateApplicationManifest. I am using the express version of Visual Studio 2017. The solution will allow me to revert to the last successful build which was last night.
Avatar of Shaun Vermaak
Shaun Vermaak
Flag of Australia image

Can you share the project?
Avatar of wayneray


Hi Shaun. I have never shared one of my projects. Do you mean attach all the vb files?
I mean project files?
Yes, zipping and attaching the project so that I can see error and try to fix it.

If it is confidential you should not share it
From this the reason of the error can be a reference of your project
There are parts of my project that are sensitive to my client. I am really trying to understand what I did between last night and this morning for my project to forget where the database file is when building. My computer did shut down last night and the program was still open. I don't recall changing any references.
Open the project or solution file in notepad and check that all files listed are actually in the project. If its referencing a DLL then make sure that is installed too.
Do you know what references the project has included? Are they all .NET references or does it has some old COM references?
When I open the solution file in notepad, this is the contents of the file.

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27703.2026
MinimumVisualStudioVersion = 10.0.40219.1
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "PolydyneInventory", "PolydyneInventory\PolydyneInventory.vbproj", "{C77EBBB2-1A77-498F-A313-565D7959FCF4}"
      GlobalSection(SolutionConfigurationPlatforms) = preSolution
            Debug|Any CPU = Debug|Any CPU
            Release|Any CPU = Release|Any CPU
      GlobalSection(ProjectConfigurationPlatforms) = postSolution
            {C77EBBB2-1A77-498F-A313-565D7959FCF4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
            {C77EBBB2-1A77-498F-A313-565D7959FCF4}.Debug|Any CPU.Build.0 = Debug|Any CPU
            {C77EBBB2-1A77-498F-A313-565D7959FCF4}.Release|Any CPU.ActiveCfg = Release|Any CPU
            {C77EBBB2-1A77-498F-A313-565D7959FCF4}.Release|Any CPU.Build.0 = Release|Any CPU
      GlobalSection(SolutionProperties) = preSolution
            HideSolutionNode = FALSE
      GlobalSection(ExtensibilityGlobals) = postSolution
            SolutionGuid = {75D10608-770E-4DB0-9D31-901D8FFDFE11}
I opened the project file and I am looking through the file. When I try to start the program inside the solution I get the error message " There are build errors. Would you like to Continue and run the last successful build? Below is content from the output window.

Severity      Code      Description      Project      File      Line      Suppression State

Error            Could not find file 'Polydyne.accdb'.      PolydyneInventory      C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets      3863      

The file is there but ...
When I opened the project file I located the database file section. Here it is.

    <PublishFile Include="Polydyne.accdb">
Avatar of Peter Hutchison
Peter Hutchison
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I have faced this error before ..... I think it's simple to fix .....
First which build method do you use .... ? ...... if you use "setup project" ....Try to close your Visual studio then open it again i think the problem will disappear .... If not check in the solution explorer of your setup project name (right click on it and choose view to open  file system)===>>>from file system open application folder and check if any file has underline with a blue line (try to right click to the application folder then add file and choose it again"file which has the problem") and remove the underline one ....that's all
hope it helps
Thanks to everyone for your assistance. Peter, your suggestion worked fine. Thanks again.