Click here to Skip to main content
15,884,472 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
i have this worry, i have been able to work on a solution that implements signature and signs an MS Word document. now the worry I have is, it works fine when i run it direcrtly from Visual Studio, but when i take it to IIS directly, it does not respond or behave. I have been able to configure it to connect to SQL server from IIS so thats not a worry, the problem is now to sign the document.

I have since used this Library Microsoft.Office.Interop.Word.Documents from Visual Studio. When i run it directly from VS it works 100% but when i deploy on IIS it fails completely. What do I have to do in this case? any ideas?

What I have tried:

I have tried to Register the DLL does not seem to work
Posted
Updated 21-Sep-19 15:19pm
Comments
Richard MacCutchan 21-Sep-19 9:22am    
Do you have MS Word installed on the server?
Shannaz 21-Sep-19 12:10pm    
yes i have that installed on ma PC @ Richard
Richard MacCutchan 22-Sep-19 3:11am    
Then maybe the comments by Dave Kreskowiak are the answer. But either way you have not given us any useful information about what actually happens when you try it.
[no name] 21-Sep-19 9:27am    
The process runs on the server in response to a "message"; like all the other services on your web server. That you create.

1 solution

You cannot use Office Interop in a web application. It's not supported and will fall on it's face when two users hit the thing at the same time.

Office does not support being executed from a service and does not support re-entrancy.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900