bslezak
October 7th, 2003, 10:16 PM
I am attempting to open a word template, fill out a form and save a new document. Unfortunately, I haven't even gotten to step one of this process, because as soon as I call Word.Application wrdApp = new Word.Application(), the following happens:
Windows beeps an error beep, the IE window is pulled to the forground and focused, and it starts running the loading page icon - forever.
WINWORD.EXE does start up, run by ASPNET user, and closes some time after the page is closed.
I receive these events in the application log:
Type Date Time Source Category Event User
Warning 10/7/2003 8:47:22 PM MsiInstaller None 1015 N/A
Warning 10/7/2003 8:47:22 PM MsiInstaller None 1015 N/A
Warning 10/7/2003 8:47:22 PM MsiInstaller None 1004 N/A
Warning 10/7/2003 8:47:22 PM MsiInstaller None 1015 N/A
Warning 10/7/2003 8:47:22 PM MsiInstaller None 1004 N/A
Error 10/7/2003 8:47:22 PM Microsoft Office 10 None 2001 N/A
The error 2001 description reads: Rejected Safe Mode action : Microsoft Word. And the warning messages mention resources not existing in the registry under HKCU.
These are the 3 lines of code that run before this occurs, and as I stated, it happens right when I create a new instance of Word.Application:
System.Security.Principal.WindowsImpersonationContext impersonationContext;
impersonationContext = System.Security.Principal.WindowsIdentity.GetCurrent().Impersonate();
Word.Application wrdApp = new Word.Application();
Any and all help is appreciated as I'm flying pretty blind, but this is a learning experiment. :)
Thanks in advance!
Brian
Windows beeps an error beep, the IE window is pulled to the forground and focused, and it starts running the loading page icon - forever.
WINWORD.EXE does start up, run by ASPNET user, and closes some time after the page is closed.
I receive these events in the application log:
Type Date Time Source Category Event User
Warning 10/7/2003 8:47:22 PM MsiInstaller None 1015 N/A
Warning 10/7/2003 8:47:22 PM MsiInstaller None 1015 N/A
Warning 10/7/2003 8:47:22 PM MsiInstaller None 1004 N/A
Warning 10/7/2003 8:47:22 PM MsiInstaller None 1015 N/A
Warning 10/7/2003 8:47:22 PM MsiInstaller None 1004 N/A
Error 10/7/2003 8:47:22 PM Microsoft Office 10 None 2001 N/A
The error 2001 description reads: Rejected Safe Mode action : Microsoft Word. And the warning messages mention resources not existing in the registry under HKCU.
These are the 3 lines of code that run before this occurs, and as I stated, it happens right when I create a new instance of Word.Application:
System.Security.Principal.WindowsImpersonationContext impersonationContext;
impersonationContext = System.Security.Principal.WindowsIdentity.GetCurrent().Impersonate();
Word.Application wrdApp = new Word.Application();
Any and all help is appreciated as I'm flying pretty blind, but this is a learning experiment. :)
Thanks in advance!
Brian