I am trying to publish my website in VS 2015, but I am receiving the following error:
Copying file Views\Shared\_StockQuotePartial.cshtml to
obj\Release\Package\PackageTmp\Views\Shared\_StockQuotePartial.cshtml
failed. Could not find file 'Views\Shared\_StockQuotePartial.cshtml'.
I have checked the Views\Shared folder (with all items showing) and no file named _StockQuotePartial.cshtml exists. I have also deleted the obj and bin folders and attempted to republish, but with no success. In addition, I have looked for references in the .csproj file and found non.
Any idea as to why I am getting this error for a file that does not exist / how I can resolve it?
Try to rebuild the project and then publish it ..
Related
I'm getting the following error when tried to create deployment package.
"Copying file bin\Antlr3.Runtime.pdb to obj\Release\AspnetCompileMerge\Source\bin\Antlr3.Runtime.pdb failed. Could not find file 'bin\Antlr3.Runtime.pdb'"
Can someone tell me what is happening and how to solve it
First of all delete whole file from bin folder
Remove reference of this "Antlr3"
Close Visual Studio
Open .croj project file in Notepad
find 'Antlr3.Runtime.pdb' and you found this in "ItemGroup". See ScreenShot
Remove below lines and save file.
Open project and re-rebuild solution.
It's working fine for me. Let me update here this is work for you???
For some reason "Clean" and "Rebuild" leaves the dll in the bin folder, but don't bring the missing .pdb.
The manual deletion of the entire bin's content and consequent "Rebuild" does the job
I have a ASP.Net Web Project and used NuGet to include System.Data.SQLite.
That shows under my references but when I publish my app (via "File System") and go to the controller "http://localhost/api/test", it shows the error:
Unable to load DLL 'SQLite.Interop.dll' The specified module could not be found.
I noticed, in my project's bin\Release\net452\win7-x86\x64 the DLL is there, but in the website's actual bin folder, the interop dll is not there!
How do i get it to be included? (I tried adding it as a reference and it wouldn't let me)
Find the location of the interop.dll and add it to the project, then select copy always. This will force the publishing profile to copy it to your deployment.
I have a problem with a service application that we build in Team City. The application is dependent on a application.config that needs to be copied to the output directory in order for the project to work. However since this file contains sensitive information we don't want this file to exist in source control.
Therefore our first build step is Create Text File to add this file to the directory. However we still get the error:
error MSB3030: Could not copy the file "" because it was not found.
Has anyone experienced this before?
Using: TeamCity Enterprise 10.0.2 (build 42234)
It was an error in Destination file:
I forgot to add the project after working dir. Working solution:
%teamcity.build.workingDir%\SolutionFolder\Project\application.config
While building a C#.net application in VS studio 2013 i am getting the following error
Unable to read manifest Properties\app.manifest.Could not find file
C:\Project\Properties\app.manifest
In project Settings i selected option "build Project without a manifest" but still getting the same error.
I fixed this by myself by deleting app.mainfest in visual studio which is showing up in properties folder.
Late in the party but,
Actually this file is mentioned in cs.proj file and your project is looking for this file.
What I did is , I have removed app.manifest reference in my cs.proj file as it is not needed to me , added by someone.
Open your cs.proj file in notepad and remove below mentioned line
This did the trick for me.
I try to publish a site to: http://lolacyclingclub.org/ , but I get this error:
Error 2 Copying file bin\DotNetOpenAuth.AspNet.xml to obj\Release\Package\PackageTmp\bin\DotNetOpenAuth.AspNet.xml failed. Could not find file 'bin\DotNetOpenAuth.AspNet.xml'. 0 0 Lolabike
What exactly you have to do?
I found something that I have to delete the bin folder? Is that correct because it seems strange?
I see now this error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Web Server at lolacyclingclub.org
I dont know this error. has it to do read/write permissions? Or something like that?
I had similar problem. I referenced some libraries (which had reference to another libraries) in my ASP.NET web application. Unfortunately after project rebuild dll's which were previously copied to bin folder were deleted. This caused publish problem very similar to your problem. Solution was to copy all needed files to bin folder. I guess you need to put your files back to bin folder and it will publish successfully.
Deleting bin folder is not an option - these files are needed;)