Hi,
I’ve an issue in only ONE of my 1000 customers.
System.ArgumentException: Caractères non conformes dans le chemin d'accès.
à System.IO.Path.CheckInvalidPathChars(String path)
à System.IO.Path.IsPathRooted(String path)
à xf9a9481c3f63a419.xed747ca236d86aa0.x82611b255d9983ac(IDictionary xec232eb93dd022a7)
à xc23bef7190ca8f55.x6412d0c71c34c05c.x99a36cf35453249e(String x4fd966aaf32161e8)
à xc23bef7190ca8f55.x6412d0c71c34c05c.get_x99f0e2a5ac5ce2db()
à xc23bef7190ca8f55.x6412d0c71c34c05c.xd3f8e541b341f67a()
à xc23bef7190ca8f55.x6412d0c71c34c05c.x9059a3203c8fc855(String xa79a9f649c74f4a4, FontStyle x44ecfea61c937b8e, String x050683ee5a5f962b, Boolean x41c20a2d94f1f466)
à xc23bef7190ca8f55.x6412d0c71c34c05c.x9059a3203c8fc855(String xa79a9f649c74f4a4, FontStyle x44ecfea61c937b8e, String x050683ee5a5f962b)
à x59d6a4fc5007b7a4.xacc55eb1e4595209.xc06de25aa714683f(x1d1dd20018fcde10 x26094932cf7a9139, x000f21cbda739311 x6f02b6a80bf6b36f)
à x59d6a4fc5007b7a4.x4f38812d0d5e7231.xbfac429e165a6a0d.xee5277c7de5be8e4(Char x3c4da2980d043c95)
à x59d6a4fc5007b7a4.x4f38812d0d5e7231.xbfac429e165a6a0d.x47f176deff0d42e2()
à x59d6a4fc5007b7a4.x4f38812d0d5e7231.x4fb8d507f4b3c96e(Font x0078185e1040c523, String xb41faee6912a2313, x000f21cbda739311 xcb075c7088c3b520)
à xf989f31a236ff98c.x08802e9e984cd3ee.xc325f08e9c7ac384()
à xf989f31a236ff98c.x08802e9e984cd3ee.xd22cb714335f8d2c(String xb41faee6912a2313, Font x26094932cf7a9139)
à x59d6a4fc5007b7a4.x4f38812d0d5e7231..ctor(String text, x1d1dd20018fcde10 font, xacc55eb1e4595209 converter)
à x59d6a4fc5007b7a4.x42f2a218ce59dafb.xbd6559e9bd341cd6(Inline xda5bf54deb817e37, Int32 x10aaa7cdfa38f254, Int32 x961016a387451f05)
à x59d6a4fc5007b7a4.x487cdc969fefe3d6.x4e33137198fdb9ca(Boolean xcd31b50c43a96e21)
à x59d6a4fc5007b7a4.x487cdc969fefe3d6.x47f176deff0d42e2()
à x59d6a4fc5007b7a4.xcde671c53995c411.xd9db07500873ae98(Document x3664041d21d73fdc, xdeb77ea37ad74c56 xdfde339da46db651)
à xf989f31a236ff98c.x6c74398bceb133f8.xa2e0b7f7da663553(x8556eed81191af11 x5ac1382edb7bf2c2)
à Aspose.Words.Document.xf381a641001e6830(Stream xcf18e5243f8d5fd3, String xafe2f3653ee64ebc, SaveOptions xc27f01f21f67608c)
à Aspose.Words.Document.Save(String fileName, SaveOptions saveOptions)
à GenApi.Framework.Exports.Document.Manager.cExportManager.Export(ExportType pExportType)
The doc.Save method is called with arguments : aDoc.Save(filePath, SaveFormat.Pdf);
variable declaration is :
filePath = Path.ChangeExtension(Path.GetTempFileName(), ExportExtensions.PDF);
so no way there can be an error with backslashes escaping.
I’ve the same issue with running this code in asp.net
or on a winform, so the target directory can be in %userprofile% or c:\windows\temp… no differences.
name of the file is : tmpC543.pdf… no special chars.
I’m pretty sure that this argument is not the main cause, and that the stack shown use another path.
I’ve double-check environment variable, and they look fine.
Additionaly, in the temp directory, I found the matching .tmp and .pdf files, proving that the pdf file is well created by Aspose (0byte), and the stack probably show another filewrite in another path.
I’m unable to reproduce the problem in lab, but the issue is constant in the customer (win 2k8 server, app using .NET4, aspose version 9.6.0.0). It’s impossible for me to update Aspose.Words for this client without a full release of the product (impossible !).
Additionaly, I’ve a really hard deadline to deal with, with a government inspection in this customer next tuesday requiring this feature.
Can you give me more information about this path ? How is it build ? Can I change something on the client config to avoid the issue ?
Thanks !