D
David
I am having a problem reading files, on some systems, when running as
a windows service. The same code, run as an executable works just
fine. On my system it works. On a co-workers it doesn't. Same OS
(2000Pro).
The service is logged on as "LocalSystem".
I've seen similar posts, but I've yet to see an appropriate answer.
The file name is built from DirectoryInfo and FileInfo details, so the
format should be fine.
Written in C#, using .NET 1.1.
I 3Dec03 01:06:43.140: FLS 0 Reading file
[C:/Creo/FeatureLicensing/Database/demo.cll.xml]
E 3Dec03 01:06:43.156: FLS 0 System.NotSupportedException: The given
path's format is not supported.
at System.Security.Util.StringExpressionSet.CanonicalizePath(String
path, Boolean needFullPath)
at System.Security.Util.StringExpressionSet.AddExpressions(String[]
str, Boolean checkForDuplicates, Boolean needFullPath)
at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess
access, String[] pathListOrig, Boolean checkForDuplicates, Boolean
needFullPath, Boolean copyPathList)
at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess
access, String[] pathList, Boolean checkForDuplicates, Boolean
needFullPath)
at System.IO.Path.GetFullPath(String path)
at System.CodeDom.Compiler.TempFileCollection.EnsureTempNameCreated()
at System.CodeDom.Compiler.TempFileCollection.AddExtension(String
fileExtension, Boolean keepFile)
at System.CodeDom.Compiler.TempFileCollection.AddExtension(String
fileExtension)
at System.CodeDom.Compiler.CodeCompiler.FromSourceBatch(CompilerParameters
options, String[] sources)
at System.CodeDom.Compiler.CodeCompiler.FromSource(CompilerParameters
options, String source)
at System.CodeDom.Compiler.CodeCompiler.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSource(CompilerParameters
options, String source)
at System.Xml.Serialization.Compiler.Compile()
at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[]
xmlMappings)
at System.Xml.Serialization.XmlSerializer..ctor(Type type, String
defaultNamespace)
at System.Xml.Serialization.XmlSerializer..ctor(Type type)
Any help appreciated.
Thanks,
David
a windows service. The same code, run as an executable works just
fine. On my system it works. On a co-workers it doesn't. Same OS
(2000Pro).
The service is logged on as "LocalSystem".
I've seen similar posts, but I've yet to see an appropriate answer.
The file name is built from DirectoryInfo and FileInfo details, so the
format should be fine.
Written in C#, using .NET 1.1.
I 3Dec03 01:06:43.140: FLS 0 Reading file
[C:/Creo/FeatureLicensing/Database/demo.cll.xml]
E 3Dec03 01:06:43.156: FLS 0 System.NotSupportedException: The given
path's format is not supported.
at System.Security.Util.StringExpressionSet.CanonicalizePath(String
path, Boolean needFullPath)
at System.Security.Util.StringExpressionSet.AddExpressions(String[]
str, Boolean checkForDuplicates, Boolean needFullPath)
at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess
access, String[] pathListOrig, Boolean checkForDuplicates, Boolean
needFullPath, Boolean copyPathList)
at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess
access, String[] pathList, Boolean checkForDuplicates, Boolean
needFullPath)
at System.IO.Path.GetFullPath(String path)
at System.CodeDom.Compiler.TempFileCollection.EnsureTempNameCreated()
at System.CodeDom.Compiler.TempFileCollection.AddExtension(String
fileExtension, Boolean keepFile)
at System.CodeDom.Compiler.TempFileCollection.AddExtension(String
fileExtension)
at System.CodeDom.Compiler.CodeCompiler.FromSourceBatch(CompilerParameters
options, String[] sources)
at System.CodeDom.Compiler.CodeCompiler.FromSource(CompilerParameters
options, String source)
at System.CodeDom.Compiler.CodeCompiler.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSource(CompilerParameters
options, String source)
at System.Xml.Serialization.Compiler.Compile()
at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[]
xmlMappings)
at System.Xml.Serialization.XmlSerializer..ctor(Type type, String
defaultNamespace)
at System.Xml.Serialization.XmlSerializer..ctor(Type type)
Any help appreciated.
Thanks,
David