I am getting the following error, whenever I add an existing Asp.Net web application as existing web role project.
Microsoft Visual Studio
Unable to find fileDFUI.exe please verify your install is correct.
OK
I am using Nov 2011 SDK via WPI.
Steps to recreate:
- Create an empty Azure project (without any role).
- Add an existing Asp.Net MVC3 project to the solution.
- Right click on role to “Add an existing web role project in solution” to point to just added project.
- Rebuild and run to see the error.
Please help.
Credit goes to Carson Wa from Microsoft who answered this one on msdn forums.
The cause of the issue is that visual studio tries to load DFUI.exe from AppData temp directory, i.e. C:\Users\\AppData\Local\assembly\dl3\GPO8L9XL.JW4\X9X8K6MA.13N\139aad8f\00a876bf_fa99cc01\DFUI.exe
DFUI.exe doesn’t exist in AppData directory so visual studio reports the error. In SDK 1.5, visual studio reads a registry key to find the correct location. However it looks like that the registry lookup is removed in SDK 1.6.
Currently one of the workarounds is to copy ALL the files under C:\Program Files\Windows Azure Emulator\emulator to the AppData temp directory. Note the temp directory path may be different on your machine. You can find the path by using Process Monitor.
http://technet.microsoft.com/en-us/sysinternals/bb896645
Please run process monitor and reproduce the issue in visual studio. Search DFUI.exe in the log and you will find the path.
Thanks,
Carson