문제

I am trying to develop a custom solution that makes use of the Word Automation Service but I keep running into a snag.

The reference article I am following says that I need to make use of the Microsoft.Office.Word.Server.Conversions namespace however I am getting the following build error:

The type or namespace name 'Word' does not exist in the namespace 'Microsoft.Office' (are you missing an assembly reference?)

These are the assembly references that I have in my project:

VS Assembly References

I am sure I am missing something fairly basic but I am not sure what. Any suggestions?

도움이 되었습니까?

해결책

You need to reference Microsoft.Office.Word.Server which is located in the GAC (C:\Windows\Microsoft.NET\assembly\GAC_MSIL). It is not safe to reference Microsoft.Office.Interop.* assemblies in a server application.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top