Re: DataSet XmlWrite error (c#) - URI formats not supported

From: Val Mazur (group51a_at_hotmail.com)
Date: 04/24/04


Date: Fri, 23 Apr 2004 22:43:53 -0400

Hi,

Based on error message, your string, which specifies location of the file to
save is not correct or this format is not supported by DataSet. Try to debug
code and see what this string looks like

-- 
Val Mazur
Microsoft MVP
"Greg R" <anonymous@discussions.microsoft.com> wrote in message 
news:2EE33A36-713F-44E5-A55C-6277C4C974A7@microsoft.com...
> When attempting to write to an xml file on a shared server I get this 
> message:
>
> [ArgumentException: URI formats are not supported.]
>   System.IO.Path.GetFullPathInternal(String path) +270
>   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess 
> access, FileShare share, Int32 bufferSize, Boolean useAsync, String 
> msgPath, Boolean bFromProxy) +233
>   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess 
> access, FileShare share) +45
>   System.Xml.XmlTextWriter..ctor(String filename, Encoding encoding) +34
>   System.Data.DataSet.WriteXml(String fileName, XmlWriteMode mode) +48
>   System.Data.DataSet.WriteXml(String fileName) +7
>
> This error occurs when my ASP.NET app.dll tries to call: 
> mydataset.XmlWrite(strPath + "/myxml.xml");
>
> I am not sure where the problem is. Any suggestions?
>
> Thank you,
> 


Relevant Pages

  • Re: unit testing C++ code from perl
    ... void ReportAssert(char const* description, char const* filename, int const ... That's probably the complaint string for an error. ... Then we have a filename and lineNumber. ... void FormatToStream(MemoryOutStream& stream, char const* format, ValueType const& value) ...
    (comp.programming)
  • Re: Timestamp to a string
    ... > concatenate a date string" which I think we can see it isn't. ... > of a date which doesn't mistake some legitimate filename for your ... I want to give an option of specifying the timestamp format to ...
    (comp.lang.java.programmer)
  • Re: Formula to convert yyyy.mm.dd to yyyy.mm.dd.ddd? (Perhaps a tricky one?)
    ... >>script set in old days to putting date at the required yyyy.mm.dd. ... >>But we've been needing the days in the filename, ... >Both results will be text string as Excel formatting cannot return the two day ... For the standard format one, ...
    (microsoft.public.excel)
  • Re: move part of a string
    ... I have a rather complicated problem. ... I thought of checking the string for numbers but that won't work. ... format that you can not automatically and positively assume that it is in ... a part of the filename to highlight it and tell it that that is the ...
    (microsoft.public.vb.general.discussion)
  • Undefined function Right in expression
    ... I am trying to get a 8 digit number string in the ... into a date format. ... The same error message appears for the Mid ...
    (microsoft.public.access.tablesdbdesign)