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

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Greg R (anonymous_at_discussions.microsoft.com)
Date: 04/23/04

  • Next message: TLowe: "Re: Parameterized Queres"
    Date: Fri, 23 Apr 2004 10:56:07 -0700
    
    

    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,


  • Next message: TLowe: "Re: Parameterized Queres"

    Relevant Pages

    • Re: ADv. Thread Question
      ... > at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess ... > access, FileShare share, Int32 bufferSize, Boolean useAsync, String ... > at System.Xml.XmlTextWriter..ctor(String filename, Encoding encoding) ...
      (microsoft.public.dotnet.languages.csharp)
    • ADv. Thread Question
      ... at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess ... access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, ... at System.Xml.XmlTextWriter..ctor(String filename, Encoding encoding) ...
      (microsoft.public.dotnet.languages.csharp)
    • Re: ADv. Thread Question
      ... > at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess ... > access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, ... > at System.Xml.XmlTextWriter..ctor(String filename, Encoding encoding) ...
      (microsoft.public.dotnet.languages.csharp)
    • ASP.net DataSet WriteXml error in C#
      ... 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 ...
      (microsoft.public.dotnet.xml)