Last post Apr 29, 2008 02:37 PM by carlos.abdalla
Apr 25, 2008 08:29 PM|Warren DuBois - MSFT|LINK
When I run the following code from Visual Studio, (debug) from my aspx page, everything works out as planned, but when I publish the site, the WINWORD.EXE process starts on the server and nothing else happens. I want to use this COM interop
to find and replace certain fields in this word document, and then print to pdf.
Thanks in advance!
Apr 26, 2008 02:34 AM|stiletto|LINK
You might need to give the ASP.Net worker process user rights to interact with the desktop. I experienced a similar problem with a different product that worked fine locally because it ran under my privileges and choked once deployed.
You should be able to replicate the problem locally by setting up your app in IIS on your machine and then you can test the solution to see if it works for you.
Apr 28, 2008 12:33 PM|carlos.abdalla|LINK
Tks for ur info... but on client and server the ASPNET user is Member of Administrator´s Group..
Apr 29, 2008 01:03 AM|stiletto|LINK
Did you try replicating the issue through your local IIS?
Apr 29, 2008 11:51 AM|carlos.abdalla|LINK
I try this scenary on local machine on local iis....
Can you open the word interface on webapp ?
Apr 29, 2008 02:26 PM|stiletto|LINK
I've heard of it being done (and it sounds like it's working for you locally), but I've not used Word itself. I've used other components that had similar rights issues, but I was able to replicate and troubleshoot the error on my local machine by accessing
the app via IIS (not VisualStudio's web server).
Apr 29, 2008 02:37 PM|carlos.abdalla|LINK
R u Brazilian ?
Pls can u post some code for example ?
I try this example ( http://forums.asp.net/t/1068814.aspx ) but don´t work well..