Thanks a lot Peter for the quick reply. Yes you are right in
saying
that I am trying to read an XML file. I have a web
application in
which there is a drop down menu that has been created using
javascript. Since my application will be multilingual - i
need to
display the menus in both Japanese and English, I have
stored the menu
names as XML tags in an XML file. In the index.aspx page, i
am trying
to load this XML file in a DOM Document and reading the XML
tags one
by one and generating the menu. When i debug this
application, i am
getting this error on any line but after the page load
method has
executed, a yellow page comes up with this error displayed.
Also can
you please elaborate on what might be wrong with the
temporary file
space? I tried running the application from another PC as
well but it
is giving me the same error. Please help.
Thanks in advance,
Ratna
On 6/13/06, Bradley, Peter <pbradley uwic.ac.uk> wrote:
>
> You don't say exactly what you're doing, but from the
stack trace it
> looks as though you're trying to read an XML file.
>
> There's obviously not a file sharing problem because
you only appear to
> want to read the file (is that right?), so the only
thing I can think of
> is that there might be a problem with your temporary
file store space
> (\temp). I think I read somewhere that XmlReader
needs it to be
> present.
>
>
> Peter
>
> -----Original Message-----
> From: CSDevelopers googlegroups.com
> [mailto:CSDevelopers googlegroups.com] On Behalf
Of Ratna Chakravarty
> Sent: 13 June 2006 11:31
> To: CSDevelopers googlegroups.com
> Subject: Device not ready Error
>
>
> Hi,
>
> I have a ASP.Net web application with the codebehind
written in C#.
> Whenever i try to run the application I am getting the
following
> error:
>
>
> The device is not ready.
> Description: An unhandled exception occurred during the
execution of
> the current web request. Please review the stack trace
for more
> information about the error and where it originated in
the code.
>
> Exception Details: System.IO.IOException: The device is
not ready.
>
> Source Error:
>
> An unhandled exception was generated during the
execution of the
> current web request. Information regarding the origin
and location of
> the exception can be identified using the exception
stack trace below.
>
> Stack Trace:
>
>
> [IOException: The device is not ready.
> ]
> System.IO.__Error.WinIOError(Int32 errorCode, String
str) +723
> System.IO.FileStream..ctor(String path, FileMode
mode, FileAccess
> access, FileShare share, Int32 bufferSize, Boolean
useAsync, String
> msgPath, Boolean bFromProxy) +888
> System.IO.FileStream..ctor(String path, FileMode
mode, FileAccess
> access, FileShare share) +45
> System.Xml.XmlDownloadManager.GetStream(Uri uri,
ICredentials
> credentials) +73
> System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri,
String role,
> Type ofObjectToReturn) +55
> System.Xml.XmlTextReader.CreateScanner() +384
> System.Xml.XmlTextReader.Init() +23
> System.Xml.XmlTextReader.Read() +530
>
System.Xml.XmlValidatingReader.ReadWithCollectTextToken()
+146
> System.Xml.XmlValidatingReader.Read() +26
> System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader
reader,
> Boolean preserveWhitespace) +80
> System.Xml.XmlDocument.Load(XmlReader reader) +72
> System.Xml.XmlDocument.Load(String filename) +78
> Localization.ResourceManager.LoadResource(Hashtable
resource,
> String culture, String cacheKey)
> Localization.ResourceManager.GetResource()
> Localization.ResourceManager.GetString(String key)
> Localization.LocalizedLiteral.Render(HtmlTextWriter
writer)
> System.Web.UI.Control.RenderControl(HtmlTextWriter
writer) +243
> System.Web.UI.Control.RenderChildren(HtmlTextWriter
writer) +72
> System.Web.UI.Control.Render(HtmlTextWriter writer)
+7
> System.Web.UI.Control.RenderControl(HtmlTextWriter
writer) +243
> System.Web.UI.Page.ProcessRequestMain() +1926
>
> Please help me with this issue, i need to run the
project urgently.
>
>
> Thanks in advance,
> Ratna.
>
>
>
>
> >
>
--
Ratna Chakraborty
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C# Developers" group.
To post to this group, send email to CSDevelopers googlegroups.com
To unsubscribe from this group, send email to
CSDevelopers-unsubscribe googlegroups.com
For more options, visit this group at http://gr
oups.google.com/group/CSDevelopers
-~----------~----~----~----~------~----~------~--~---
|