IDE Replace in Files doesn't work

  • Thread starter Thread starter Jan Bares
  • Start date Start date
J

Jan Bares

Hi,

I have .NET 2003. When I run "Find in Files" command, everything works as
expected. However when I run "Replace in Files" with the same settings a and
press Find Next, I get: "Look in: A specified directory or file is not
available or does not exist."
There is nothing special in my settings, I don't use regular searches, I
search in "Entire solution".

Best regards, Jan
 
Hi Jan

Thanks for posting in the community.


First I would like to confirm my understanding of your issue.
From your description, I understand that when press "Find Next" of the
"Replace in Files" dialog box in the VS.NET 2003, you get: "Look in: A
specified directory or file is not available or does not exist." message.

Have I understood you right? If anything misunderstood, please feel free to
let me know.

Since the "Find Next" operation of the "Replace in Files" dialog box worked
as expected on my side, I want to know is it a general case in all of your
VS.NET 2003 projects, or just a particular case in your current working
projects?

If it is a particular case, maybe some certain files or directories of your
working solution currently can't be accessed by the VS.NET IDE due to some
reason.

BTW, what's you configuration of the "Look in" Dialog Box of the "Replace
in Files" Dialog Box, is it a default setting or a special one?


Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
 
Hi Gary,
First I would like to confirm my understanding of your issue.
From your description, I understand that when press "Find Next" of the
"Replace in Files" dialog box in the VS.NET 2003, you get: "Look in: A
specified directory or file is not available or does not exist." message.

Yes, the text appears in Find Results window
Since the "Find Next" operation of the "Replace in Files" dialog box worked
as expected on my side, I want to know is it a general case in all of your
VS.NET 2003 projects, or just a particular case in your current working
projects?

I realized, that it works for me too when I fill in directory into the "Look
in" option. However when I use "Entire solution" or "Current project" it
doesn't work. It doesn't work for any of my projects.
If it is a particular case, maybe some certain files or directories of your
working solution currently can't be accessed by the VS.NET IDE due to some
reason.

Surely not, the "Find in files" works fine and when I use the folder instead
of "Entire Solution", it works.
BTW, what's you configuration of the "Look in" Dialog Box of the "Replace
in Files" Dialog Box, is it a default setting or a special one?

Default settings, there is nothing special.

Thanks, Jan
 
Jan Bares said:
I realized, that it works for me too when I fill in directory into the
"Look in" option. However when I use "Entire solution" or "Current
project" it doesn't work. It doesn't work for any of my projects.

Just something to try, as there was a problem with this back in VS.NET
2002: change the file types it looks for, see if it makes any difference. I
remember that it wouldn't work for me with VS.NET 2002 unless I used "*.*".

Just a maybe...
 
Hi Jan,

Just a try to isolate your IDE's problem:
You can use the FileMon (http://www.sysinternals.com) when this occurs and
see what kind of file accesses that the IDE is trying to make.

Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
 
Jan,
Since we have not been able to repro the issue, we would like to know what
files and folders are being accessed when you click on the Find Next
button, we will use the tool below to generate a log that will give us this
information,

http://www.sysinternals.com/files/NTFILMON.ZIP

Run Filemon.exe, once the file monitor window shows up, press Ctrl+E, you
will see a small red check mark on the magnifying glass icon in the
toolbar, then press Ctrl+X to clear the display. Now press Ctrl+L to bring
up the filter dialog, for the include field key in devenv* and make sure
all the check boxes in the dialog are checked, click on the Apply and then
the OK button.

Now start VS.NET and load any solution that you can repro the problem with.
Bring up the Replace in Files dialog.Go back to file monitor and press
Ctrl+E - the red check mark on the magnifying glass icon will go away.
Click the Find Next button on the Replace in Files dialog, you will see the
"Look in...." dialog, while the dialog is sitting on the desktop, go to
file monitor and press Ctrl+E and then click on the File menu in file
monitor and choose the save as option to save the log.

Please send this log to us.

Thanks,
Mukhtar

This posting is provided "AS IS" with no warranties, and confers no rights.

©2004 Microsoft Corporation. All rights reserved.
 
Back
Top