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: How to save several variables with the same prefix?
    ... well the problem is that if I write fprintf(' filename', X) in each iteration it will create only one file named filename, it will overwrite it each time and I end up with only one file that has the value of X but just for s=11. ... is create the string this is why I put it inicialy without ' '. ... Thanks for answer me why fwrite did not work, that was somenthing I did not know but after fprintf did not work I begun to explore other ideas, I need it with format so fwrite is not an option. ... name that references the size of the window (filter) I am using in my ...
    (comp.soft-sys.matlab)
  • 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)
  • 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)