상세 컨텐츠

본문 제목

Trying To Download Game And It Says Device Not Ready

카테고리 없음

by diumellici1978 2020. 11. 9. 14:11

본문



Re-install your device driver. On Windows 10, a common software problem is 'the device driver is not installed, is corrupted or missing'. Try to re-install the device driver and fix the 'device is not ready' warning. 1) Go to Device Manager, right-click the name of your device, select Uninstall. 2) Keep your device connected. Games are bound to your gamertag, so you can download and play them as long as you're signed in. However, DLC is linked to the system. If you change systems and don't do a license transfer, any DLC you have will be inaccessable if you are not signed on to Live.

  1. Trying To Download Game And It Says Device Not Ready To Start
  2. Trying To Download Game And It Says Device Not Ready To Play
  3. Trying To Download Game And It Says Device Not Ready Lyrics
  4. Trying To Download Game And It Says Device Not Ready Download

Trying To Download Game And It Says Device Not Ready To Start

Getting :device not ready' every time I try to download

Moderators: Usher, Victoria Nelson, Alex

kryo79
Posts:1
Joined: Mon Oct 29, 2007 2:36 am

Getting :device not ready' every time I try to download

any ideas? I get it right after 'Opening file on the disk'
simonsorcerer

RE: Device is not ready

Hi,
had the same problem yesterday. My default download folder was pointing to C: which was a empty cardreader slot in my case.
Just try to change the default download folder to a working HD.
Best regards,
Simon
Trying To Download Game And It Says Device Not Ready

Who is online

Users browsing this forum: No registered users and 5 guests

  • All times are UTC
Powered by phpBB® Forum Software © phpBB Limited

I have written a very simple application tha accepts batches of telemetry log rows in XML files and transcribes them to a table on a SQL Server. Each one of these blocks of incoming data I refer to as a 'chapter'.

Trying To Download Game And It Says Device Not Ready To Play

For performance reasons, each chapter is wrapped in a transaction so that instead of a hundred implicit transactions there's a single transaction for 100 new rows.

Unfortunately, there are duplicates, and due to the shared transactional context they take out the whole chapter. This is uncommon but not rare enough to ignore. So I added a loop, a retry flag and a catch (SqlException) that maintains a skip-list. When a row barfs on insert, I roll back the transaction, create a new one, add the row number to the skip list, set the retry flag and let it loop. All the rows are reprocessed except for rows that are skip-listed. If a second row barfs, the same thing happens except the skip-list has two items.

Trying To Download Game And It Says Device Not Ready

This whole arrangement works. It's the end-game that's giving me curry. When the chapter is processed end to end without any more exceptions, the loop exits and then I check whether the skip-list is empty. When it isn't empty, I attempt to use Trace.TraceWarning() to write an event log entry detailing the failed rows and the block of XML for later forensics.

It's at this point that things go south. This Trace statement barfs with a Win32 exception that claims 'device not ready'.

Device

Trying To Download Game And It Says Device Not Ready Lyrics

Has anyone seen anything like this?

Overnight I noticed that occasionally it works without complaint. I have inserted a Thread.Sleep() just before the Trace.TraceWarning() so it will be interesting to see whether this sorts it out. I should probably add that I noticed that the message is successfully logged to Visual Studio's trace listener and this is what makes me think it's speed or timing related.

A day later and it is clear that sleeping the thread makes no difference. I have re-written the whole business so that a StringBuilder accumulates state, and a single trace statement occurs after the loop exits. The Win32Exception is no longer in evidence, even when multiple rows are rejected requiring more than two passes. What exactly causes that particular exception remains unclear to me. I hope that someone can cast light into this dark corner, but I have nothing further to add, since a single log entry per chapter is ideal; the 'workaround' would be an improvement to the code even without the Win32Exception.

Spoke too soon. The evil Win32Exception is back. Here's the code as it stands:

Trying To Download Game And It Says Device Not Ready Download

And this is the stack trace from the exception:

The Write method is invoked by WCF in response to an MSMQ message arriving. The content of the message is the XML string. Removing the event log listener makes the problem go away (so far).

For those examining the stack trace, line 179 is at the end of the pasted code. Here it is again:

A thought comes to me: I wonder is it because the XML makes the message too big for the event log? I already have a setting that limits the size of a chapter file. I'll try reducing it and see what happens.

Peter Wone
Peter WonePeter Wone

1 Answer

Yep, the real problem was oversized message text. The maximum size of an event log entry is 64K including all the Microsoft headers and whatnot. I knew that but it didn't occur to me that this could be the problem because I had the XML limited to 32K. The reason it was too much is this: when you put XML in text that will be embedded in XML, it gets escaped which increases the size of every illegal character by a factor of four. All my angle brackets and double-quotes were quadrupling in size. And there are lots of them.

The take-aways from this are:

  • Don't put big chunks of XML in event log messages.
  • If you get Win32Exception from a Trace to the event log, your messages are probably too big.
  • One way to dodge this limit is to use a text file trace listener instead.
Peter WonePeter Wone

Not the answer you're looking for? Browse other questions tagged c#tracewin32exception or ask your own question.