Symptoms
When running the following importexportcli command the following exception appears:
ImportExportCLI.exe export -con http://website:80 -usr 1/RM/RM -pwd password -mt Package -format csv -properties "system_id" -where "system_name eq 'TEST111111-TEST111111'"
Unhandled Exception: System.IO.IOException: There is not enough space on the disk.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.FileStream.FlushWrite(Boolean calledFromFinalizer)
at System.IO.FileStream.Dispose(Boolean disposing)
at System.IO.Stream.Close()
at System.IO.StreamWriter.Dispose(Boolean disposing)
at System.IO.TextWriter.Dispose()
at Microsoft.CSharp.CSharpCodeGenerator.FromSourceBatch(CompilerParameters options, String[] sources)
at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch(CompilerParameters options, String[] sources)
at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)
at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies)
at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence)
at System.Xml.Serialization.XmlSerializer.GetSerializersFromCache(XmlMapping[] mappings, Type type)
at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[] mappings, Type type)
at System.Web.Services.Protocols.SoapClientType..ctor(Type type)
at System.Web.Services.Protocols.SoapHttpClientProtocol..ctor()
at Ventum.Bond2.ImportExportCLI.ImportExportService.ImportExportService..ctor()
at Ventum.Bond2.ImportExportCLI.CmdExport.ExecuteImpl()
at Ventum.Bond2.ImportExportCLI.Cmd.Execute(String[] args)
at Ventum.Bond2.ImportExportCLI.Program.Main(String[] args)
The server this is running on has 2 drives C: and D:
C: has zero free space which is where the exception is coming from. The command was running the utility from D: where there is plenty of free space.
Cause
Normally windows use temporary disk space. If you define the temporary space on C the system will use this place.
Resolution
Please have a look at your Windows system settings and define the temp path to drive D.