Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Application keeps looking for zip file in bin\debug

$
0
0

Hello,

I wrote a C# Win-forms application that allows the user to import various .mp3.zip audio files, and utilizing the ICSharpCode.SharpZipLib library to decompress the files and copy them to specific directories. The code then creates a playlist from these audio files.

This had been working properly for weeks. Then, as the application was nearing completion, I changed the Solution Configurations drop-down from Debug to Release.

Since then whenever I attempt to import a zip-file, the code throws an FileNotFoundException with the message that
it cannot locate the file in the bin\Debug folder, i.e. "Could not find file 'C:\Source\application name\application name\bin\Debug\xxx.mp3.zip' " and all that ends up in the destination folder is the zipped file and an empty m3u file. However, the program should not be expecting to see the .mp3.zip file in the bin\Debug folder, but rather in one of the specified
directories that I have created using DirectoryInfo.

As an aside, I changed the Solution Configurations drop-down back to Debug, as I intend to use the ClickOnce technology for deploying the application.

I have set break points and followed the code but can't determine what I need to do in order to get the code back to its previous condition.

Can anyone suggest what may have happened, or what I can do to get the code to look again in the destination directory i.e. C:\example audio folder, instead of bin\Debug?

This is impeding the deployment of the application and is very puzzling. I would Greatly appreciate gaining some insight on this.

Thank you.


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>