Article ID: 156675 - Last Review: May 14, 2007 - Revision: 5.3 PRB: Server.CreateObject Fails for Local Servers(EXEs)This article was previously published under Q156675 SYMPTOMS
When you call Server.CreateObject on a local server, the following error may occur:
Initialization of dynamic-link library C:\Winnt35\System\User32.dll
failed. The process is terminating abnormally.
CAUSE
This error occurs because Microsoft Internet Information Server (IIS) attempts to
launch the local server using the IUSR_computername(Internet Guest)
account. The IUSR_computername account does not have access to the window
station and desktop, so the User32.dll file fails to load. This problem
does not occur if you launch an In-Proc(DLL) server because it runs in the
same process space as IIS, which has already loaded User32.dll at startup.
RESOLUTION
In order to launch servers from Internet Information Server, you must complete the following
steps. Step 1 is necessary for both In-Proc(DLL) and Local(EXE) servers,
while step 2 is necessary only for local servers.
REFERENCES
For the latest Knowledge Base articles and other support information on
Visual InterDev and Active Server Pages, see the following page on the
Microsoft Technical Support site:
http://support.microsoft.com/search/default.aspx?qu=vinterdev
(http://support.microsoft.com/search/default.aspx?qu=vinterdev)
For more information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
142676
(http://support.microsoft.com/kb/142676/
)
How to correct common User32.dll file errors
217202
(http://support.microsoft.com/kb/217202/EN-US/
)
PRB: CGI Applications and IIS OOP Applications May Fail
| Article Translations
|

Back to the top
