Ask a Question related to ASP.NET Security, Design and Development.
-
John Lau #1
Windows 2003 server web service consumer with interop cannot impersonate a specific user
Hello,
I have a .Net class library that is a web service consumer. This .Net web
service consumer DLL is instantiated by a VB6 ActiveX EXE wrapper program,
which is instantiated by a classic ASP page. So my situation is that I have
a classic ASP page which calls a VB6 ActiveX EXE, which calls .Net class
library, which calls a Java web service. Phew!
(I could not instantiate the .Net DLL directly from Asp, and had to create
an ActiveX EXE wrapper program. If anyone knows how to do that, I would
also appreciate your comments!)
This works on my Windows XP computer, and my Windows 2003 test server.
However, I could not get it to work on my locked down production Windows
2003 server.
The error message is:
System.Runtime.InteropServices.ExternalException: Cannot execute a program.
The command being executed was
"c:\windows\microsoft.net\framework\v1.1.4322\csc. exe" /noconfig
@"C:\WINDOWS\TEMP\zoyfx5bm.cmdline". at
System.CodeDom.Compiler.Executor.ExecWaitWithCaptu reUnimpersonated(IntPtr
userToken, String cmd, String currentDir, TempFileCollection tempFiles,
String& outputName, String& errorName, String trueCmdLine) at
System.CodeDom.Compiler.Executor.ExecWaitWithCaptu re(IntPtr userToken,
String cmd, String currentDir, TempFileCollection tempFiles, String&
outputName, String& errorName, String trueCmdLine) at
System.CodeDom.Compiler.CodeCompiler.Compile(Compi lerParameters options,
String compilerDirectory, String compilerExe, String arguments, String&
outputFile, Int32& nativeReturnValue, String trueArgs) at
System.CodeDom.Compiler.CodeCompiler.FromFileBatch (CompilerParameters
options, String[] fileNames) at
System.CodeDom.Compiler.CodeCompiler.FromSourceBat ch(CompilerParameters
options, String[] sources) at
System.CodeDom.Compiler.CodeCompiler.FromSource(Co mpilerParameters options,
String source) at
System.CodeDom.Compiler.CodeCompiler.System.CodeDo m.Compiler.ICodeCompiler.CompileAssemblyFromSource (CompilerParameters
options, String source) at System.Xml.Serialization.Compiler.Compile() at
System.Xml.Serialization.TempAssembly..ctor(XmlMap ping[] xmlMappings) at
System.Xml.Serialization.XmlSerializer.FromMapping s(XmlMapping[] mappings)
at System.Web.Services.Protocols.SoapClientType..ctor (Type type) at
System.Web.Services.Protocols.SoapHttpClientProtoc ol..ctor() at ...
I found an article at
[url]http://support.microsoft.com/default.aspx?scid=kb;en-us;315904[/url], which says I
need to impersonate a non-Anonymous account. I impersonate an admin user,
but the error did not change in the web page. Also, when I run the ActiveX
EXE as a admin user logged onto the server, I get "Fatal Execution Engine
Error ()x7927bb38)" Of course this works on my XP and 2003 server that is
not locked down.
Thanks,
John
John Lau Guest
-
Deploying Web Service on Windows Server 2003
Hi all. I've created a web service that runs fine on my development PC running W2K. The service is consumed by an ASPX page. (written using... -
401 Error on Windows 2003 Server Accessing Web Service
Hi. I have a web service running on 2003 Server. The client app running on the same machine gets a 401 error, but browsing the web service in... -
Fax Service in Windows Server 2003
We are now using the Windows Server 2003 Fax Service. We are having some problems with outgoing faxes.... Sometimes it goes through..sometimes... -
Windows 2003 Pop3 server new user problems
Anyone (i.e. Microsoft) know whats happening - was it an automatic update thats stuffed something ? just It and to the -
access permissions in asp.net web service in windows 2003 server
First off I am using windows server 2003, IIS 6.0 .Net framework 1.1.4322..... I am attempting to use COM+ Loosely Coupled Events (LCE) from an...



Reply With Quote

