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