Failed to create the automatic updater temp folder

So, I decided to finally enable auto-updating in our latest since we are nearing public beta.I updated to the newest wyBuild and Updater dll, but I'm now getting this error when the program tries to get the update

"Failed to create the automatic updater temp folder: Index and length must refer to a location within the string.Parameter name: length"

Any ideas what to look at to get this fixed?

Thx!

Steve

I should also point out that this error happens from within my .NET app when I choose "Check for Updates"I don't get this error if I run wyUpdate.exe

s>

What version of Windows are you on? Did you rebuild wyUpdate before including the latest client.wyc and wyUpdate.exe with your app? Is the client.wyc file in the same folder as the wyUpdate.exe file?

Win 7 64. Yea, I rebuilt everything.Used to work fine on this dev rig.

Just tested on my Envy Laptop and it works fine there tho........hhhhmmmThat is also Win7 64

Any suggestions to try next?

Steve

Open a cmd.exe window and type:

echo %userprofile%

Press enter and tell me the result.

Also, download this test wyUpdate.exe that will output a longer form error. Copy and paste the full error this produces: [Removed]

The Command line didn't do anything.Just gave me another lineNo error also

here's the output now

Failed to create the automatic updater temp folder: Index and length must refer to a location within the string.Parameter name: length

at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) at wyUpdate.frmMain.GetCacheFolder(String guid) at wyUpdate.frmMain.CreateAutoUpdateTempFolder() at wyUpdate.frmMain..ctor(String[] args)

GUID: 3ed5e229-7170-43ae-af74-9ad100df7ae7

OK, I think I know what the problem is. Download this small console app and run it: http://wyday.com/files/GetUserProfile.zip

It will output 3 lines:

Method 1: XXXMethod 2: YYYMethod 3: ZZZ

Copy and paste the output you receive.

Method 1 : C\Users\OfficeMethod 2 : C\Users\OfficeMethod 3 : C\Users\Office

Office is the user name on this rig

s>

Hmmmm... that's strange. Re-run wyUpdate. Does it work now? That run the GetUserProfile.exe program and if all 3 lines are the same run wyUpdate. (Have you restarted your computer since the start of this thread?)

Hey! been busy!

Yea, I've rebooted a few times.If I run the wyUpdate.exe it works. Just not from inside our .NET app on this rig.Other PC's work fine tho

All 3 lines are the same still running that GetUserProfile program

Just ran it again...same results8(

Steve

Try this version of wyUpdate: [removed]. Overwrite your existing version of wyUpdate.exe with the one included in this zip file.

If this doesn't work then we'll need schedule a time to remotely debug this on your computer.

same results

Failed to create the automatic updater temp folder: Index and length must refer to a location within the string.Parameter name: length

at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) at wyUpdate.frmMain.GetCacheFolder(String guid) at wyUpdate.frmMain.CreateAutoUpdateTempFolder() at wyUpdate.frmMain..ctor(String[] args)

GUID: 3ed5e229-7170-43ae-af74-9ad100df7ae7

I'm around today if you are.Otherwise I'm not home till 9pm PST on weekdays.

You have my email?maybe email me direct to sort out a time since this will no longer benefit any other users probably since we are at a dead end now......8)

cya!

Steve

Email me at wyatt@wyday.com -- I'm available today. I'll be awaiting your email.

FYI, I too have this on one dev box x64 Windows 7 Pro.

I notice that there is no wc folder in %userprofile% like there is on all the other boxes. UAC is off.

Did this issue ever get resolved?

Now it has cropped up on another 32 bit Windows 7 box of mine. AU 2.6.14

Hey William,

It's resolved in 2.6.15 out soon.

Sorry for the trouble. The quick & dirty way to fix this in the meantime is to delete the "%userprofile%\wc" folder (it's a hidden folder).

Thanks for the update, I'll wait for 2.6.15 then.

What's odd is that %userprofile%/wc is not present on either of the PCs I'm having problems with. But it *is* there on all the PCs that are working properly.