Microsoft. Office. InterOP. Word. documentclass. saveas command failed

Source: Internet
Author: User

Asp.net is commonly used to generate WORD functions, and code is also common on the Internet. It has been tested locally.
There is no problem running under serves 2003, but an error occurs when it is published to 2008. The component permission has been configured, the temp permission under the Windows directory has been granted, the program directory permission has been granted, and the <identity impersonate = "true" username = "Administrator" Password = "XXXXX"/>, even the Administrator's user control is disabled.

 

An error occurred while saving the Word Document (word. documentclass. saveas ):
System. runtime. interopservices. comexception (0x800a1066): The command fails.
In Microsoft. office. interOP. word. documentclass. saveas (Object & filename, object & fileformat, object & lockcomments, object & password, object & addtorecentfiles, object & writepassword, object & readonlyrecommended, object & embedtruetypefonts, object & tags, object & saveformsdata, object & saveasaoceletter, object & encoding, object & insertlinebreaks, object & allowsubstitutions, object & lineending, object & addbidimarks)

 

The difference between the 64-bit server layout and 32-bit server layout is:

C: \ windows \ syswow64 \ config \ systemprofile \ Desktop
C: \ windows \ system32 \ config \ systemprofile \ Desktop

Is there any folder above? You just need to create a new folder. It has been a long time!

 

Remember it for later use

Microsoft. Office. InterOP. Word. documentclass. saveas command failed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.