Access to the path exception in save of a dot file

Hi,
I’m trying to save this dot file in pdf format but I can’t.
I find this exception:
Access to the path ‘C:WINDOWSTEMPAspose.Words.67659a34-063c412e-9ec3-cc310b470887.001.png’ is denied
I use versione 4.4.3 of Aspose.Word and 3.6.1.10 of Aspose.Pdf.
With other dot with exception there isn’t.
Any Ideas?

My Code is:

try
{
    MemoryStream stream = new MemoryStream();
    _doc.Save(stream, SaveFormat.AsposePdf);
    stream.Seek(0, SeekOrigin.Begin);
    XmlDocument xmlDoc = new XmlDocument();
    xmlDoc.Load(stream);
    try
    {
        Aspose.Pdf.License licensePdf = new Aspose.Pdf.License();
        licensePdf.SetLicense(GetLicenseStream());
    }
    catch
    { }
    Pdf pdf = new Pdf();
    // Make sure the images that were saved by Aspose.Words into Windows temporary
    // folder are automatically deleted by Aspose.Pdf when they are no longer needed.
    pdf.IsImagesInXmlDeleteNeeded = true;
    pdf.BindXML(xmlDoc, null);
    pdf.IsTruetypeFontMapCached = false;
    pdf.Save(Path.Combine(dir, nome_file));
}
catch (Exception exc)
{
    errors = "WordAspose: salva " + exc.Message;
    return false;
}

Greatings

Hello Claudio.
Thank you for asking this.
As I can see there are no slashes in the full path you have pasted in the post:
Access to the path ‘C:WINDOWSTEMPAspose.Words.67659a34-063c412e-9ec3-cc310b470887.001.png’ is denied
Are they present in the original message? Maybe it’s the result of improper string operations when you prepare the file name.
If the file name is okay then you should check whether current logon Windows account has write permission to C:\WINDOWS\TEMP directory. If you are developing a web service then IIS account might not have such permission. You can suggest allowing this or using another directory as output.
Please let me know on your further progress.
Regards,