question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DFInit fails to run/initialise because the logged in user name has a space in it.

See original GitHub issue

Problem DFInit.exe fails to run/initialise when the logged in user has a space in their name.

Solution Update the /user: argument to allow "<username with spaces>" quotes around the username or something.

Description Yep. My username (on my windows 10 developer machine here) has a name in it. As such DFInit fails.

image

Repo

  • Create a new windows 10 machine.
  • Install VS2015 with Update 2 (i’ve not done U3 … but i doubt this has anything to do with it…)
  • Install SDK2.9 from WPI
  • Create a new Cloud Service project thingy
  • Hit play and run it.

So the first time I ran a cloud service (this is a legacy solution) the Azure Emulator stuff tried to initialise for the first time, etc. Ok - magic that happens behind the scenes. Np probs. But fail - that popup window was displayed. Ba-Bow… Sad Trumbone.

Work Around

  • Open Console
  • cd "C:\Program Files\Microsoft SDKs\Azure\Emulator\devfabric"
  • dfinit

that runs DFInit.exe with the currently logged in user and magic just works!

Here’s the winning screen…

image

Now, here’s an awesome picture of an ocean unicorn to help persuade you to fix this:

image

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:6
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
erezvani1529commented, Oct 13, 2016

@PureKrome! My bad! closed this issue by accident… will confirm with Peter if there are any updates and keep this thread posted 😃

0reactions
jlaherrancommented, Jan 27, 2021

You can re-open it… Nowadays still happening. Trying to open the first time Azure Store Emulator 5.10 it calls DFInit to add the current user to the perf log users gruop and failed because the white space included in the user.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I had to rename my username because it had a space in it, ...
Thus changing my username and username folder "User Name" to "User" so it had no space. This worked for the programs I was...
Read more >
Getting cmd error because my windows username has ...
1 Answer. The issue is with pyqt5 I have installed it using conda but when I installed in my default system the command...
Read more >
Users cannot authenticate if there are spaces in the log ...
User accounts that have a space in the user log in name in Active Directory, fail to log in to the vSphere Client...
Read more >
Help! I put a space in my Windows User Name. Now What?
First I activated the Administrator Account. I needed to do this because you can't modify filenames that are in use. Since the account...
Read more >
Azure data factory rest api parameters - Erohana
As we know Azure Data Factory (ADF) Version 2 now has the ability to use ... @variables ('FechaAyer') I have a use case...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found