Free Support Forum -

Path errors Aspose.Word.Demos

when I execute, I've this error c:\inetpub\wwwroot\Aspose.Word.demos\..\Documents\CustomerLabels.doc could not be found.

When I test the value of curPath I find : c:\inetpub\wwwroot\Aspose.Word.demos

My project and documents are not in localhost but on a server named rulas.



If I replace this.curPath = MapPath("."); by this.curPath = Server.MapPath("."); I have the same result.

How can I affect the server correct path to curPath ?

Ok resolved by:
Document doc = new Document(Server.MapPath("") + “\Documents\Employees.doc”);