Click here to Skip to main content
15,891,204 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Some time when I attach mdf file with application it shows can not attach file as the file (path) already exists.But the previous file was removed by me.So can anyone tell me where visual studio store the previous record so that I can delete it?

This is occurring not only for mdf files but also to open excel,word file etc.When opening a file it shows "file does not exist in the path" but I know the path is correct.It occurs when I move my project from one location to another.Where is the problem?

N.B:I am using default path,i.e all files are in the same folder where my exe situated.
Posted
Comments
[no name] 26-Sep-14 10:54am    
"Where is the problem", how would you expect us to know? We can't see your code, your project, your disk drive, or read your mind to know what it its that you are doing. It's telling you the file does not exist in the path that you have given it because the file does not exist in the path that you have give it.
Sergey Alexandrovich Kryukov 26-Sep-14 12:20pm    
Maybe because the removed file was already "attached".
If this is a e-mail attachment, nothing is really "attached". The content is encoded as text and embedded in the mail message, and the file name is included in the header. When it already happened, the original file can be removed, because the data is already in a mail message. The collision you have may be because you have such state of the mail message. You did not provide enough information to say anything more certainly, but first review your cases using this idea.
—SA
[no name] 29-Sep-14 1:07am    
Buddy, You need to find the problem, and where the problem is. Here experts can only give you solutions for your problem. Here you are saying to find out the problem :) .

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900