Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
223 views
in Technique[技术] by (71.8m points)

visual studio 2010 - ASP.NET publish trying to copy a non-existant file

I'm trying to publish an ASP.NET project in VS2010, and am getting the following error:

Copying file binCKFinder.pdb to objReleasePackagePackageTmpinCKFinder.pdb failed. Could not find file 'binCKFinder.pdb'.

I had tried using a trial version of CKFinder (with CKEditor), but I backed it out. I removed all references to CKFinder, including the folders and the references - or so I thought.

I've tried looking this error up, and have come up empty. This is getting frustrating.

Why is this error coming up? Ideas?

Thanks in advance . . .

question from:https://stackoverflow.com/questions/10705550/asp-net-publish-trying-to-copy-a-non-existant-file

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I also bumped to this problem. I was receiving the following error, when trying to publish MVCForum 1.7:

Copying file App_DataNuGetBackupHello.txt to objReleasePackagePackageTmpApp_DataNuGetBackupHello.txt failed. Could not find file 'App_DataNuGetBackupHello.txt'.

Fran?ois Breton's comment helped me achieve the solution.

It's simple:

Open your .csproj file with a text editor (Notepad, Notepad++) Visual Studio will open it as a project.

Press Ctrl + F and search for the file of the problem. In my case the file was "Hello.txt" without commas.

Under the <ItemGroup> it resided:

<ItemGroup>
<Content Include="App_DataNuGetBackupHello.txt" />
<Content Include="ContentadminAdmin.css">
    <DependentUpon>Admin.scss</DependentUpon>
</Content>
...More code omitted due to brevity.

I deleted the <Content Include="App_DataNuGetBackupHello.txt" /> line, and voila! Visual Studio allowed me to Preview before publishing!

It will end like this:

<ItemGroup>
<Content Include="ContentadminAdmin.css">
    <DependentUpon>Admin.scss</DependentUpon>
</Content>
...More code omitted due to brevity.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...