can't find the path Reflexil.window\\index.dat

Explore, browse and analyze .NET assemblies

can't find the path Reflexil.window\\index.dat

Postby flourishing » Thu Jan 28, 2010 7:23 am

I use the newest beta reflector pro,
and i download the plugin reflexil 1.0 version.
where i try to use replace all with code
reflector pop up a messagebox,said.

can't find the path c:\\users\\xx\\appdata\\local\\temp\\reflexil.window\\index.dat
then crashed. i have tryed the stable version, and change the reflexil version to 0.9,the same question.

i run on windows7, so i changes to windows xp too. the same problem appeared.
thank you for any help.
Posts: 2
Joined: Thu Jan 28, 2010 7:14 am

Postby Clive Tong » Thu Jan 28, 2010 9:51 am

I managed to reproduce the problem here, but it doesn't appear to be connected with any Reflector code.

The error when I run as administrator is

Could not find a part of the path 'C:\\Users\\Administrator\\AppData\\Local\\Temp\\Reflexil.Window\\index.dat'.

The stacktrace for the error is
WinIOError(Int32 errorCode, String maybeFullPath)
Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
ctor(String path, FileMode mode, FileAccess access)
SaveCacheIndex(Dictionary`2 cacheIndex)
AddFileNameToCacheIndex(String cacheFile, ReflectionProjectContent pc)
SaveProjectContent(ReflectionProjectContent pc)
ThreadStart_Context(Object state)

so it looks like the problem is just that the code in the assembly ICSharpCode.SharpDevelop.Dom.dll expects the directory to exist. Hence the workaround is probably to create the directory, though the longer term solution is probably to get the add-in author to use an API to create the necessary directory.
Clive Tong
Posts: 284
Joined: Thu Dec 04, 2008 4:42 pm

Postby reflexil » Fri Dec 03, 2010 4:37 pm

This is fixed with Reflexil 1.2 (coming in January 2011)

Posts: 10
Joined: Fri Dec 03, 2010 4:28 pm

reflexil does not work

Postby Neil » Tue Jan 04, 2011 12:58 am

if your Windows language is not english, when you use reflexil to replace the method code, an exception will thrown, and the reflector will crash.
the exception message may be like:
Could not find a part of the path 'C:\\Users\\xxxxxx\\AppData\\Local\\Temp\\Reflexil.Window\\index.dat'.

i think this is a bug of reflexil. the solution is: you can create a folder of 'Reflexil.Window' in '...AppData\\Local\\Temp\\'

then restart reflector, reflexil works now.
Posts: 1
Joined: Sat Jan 01, 2011 2:04 am

Postby reflexil » Mon Feb 07, 2011 11:06 am

Was related to the cache system used by the completion engine. It's fixed in the SVN (and will be available in v1.2)
Posts: 10
Joined: Fri Dec 03, 2010 4:28 pm

Return to .Net Reflector 6.x and .NET Reflector 6.x Pro

Who is online

Users browsing this forum: No registered users and 0 guests