Ask a Question related to ASP.NET Web Services, Design and Development.
-
Michael Daniels #1
HOWTO? call dcom within webservice?
Hello NG,
I have the following Problem
I have:
1.WebService "TestService"
2.MFC appl with COM Interface
3.A c# froms application
"c#Anwedung"->(per soap)"Webservice"->(per com)"MFCAnwendung"
if i call the method the following expetion pops up ( sorry i only have the
german error message)
it says something permission denied to that dcom application
################################################## ##########################
################################
Eine nicht behandelte Ausnahme des Typs
'System.Web.Services.Protocols.SoapException' ist in system.web.services.dll
aufgetreten.
Zusätzliche Informationen: System.Web.Services.Protocols.SoapException: Der
Server konnte die Anforderung nicht verarbeiten. --->
System.UnauthorizedAccessException: Zugriff verweigert
at TestCEDienst.Service1.HelloWriteMapfile(String strFileName, String
strByteStream) in c:\inetpub\wwwroot\testcedienst\service1.asmx.cs:l ine 68
--- Ende der internen Ausnahmestapelüberwachung ---
################################################## ##########################
#############################
Do I have to set some security settings in dcomcnfg for the mfc apllication?
Code schnipsel Webservice:
--------------------------------
[WebMethod]
public long HelloWriteMapfile(string strFileName, string strByteStream){
MapfileDcomInterLib.MapfileDComClass Map = new
MapfileDcomInterLib.MapfileDComClass();
int iReturnValue = -1;
Map.WriteMapfileStream(ref strFileName, 256, ref strByteStream, out
iReturnValue);
return iReturnValue;
}
Code schnipsel C# application:
--------------------------------------------------------------
private void button1_Click(object sender, System.EventArgs e) {
localhost.Service1 webService = new WebDienstTest.localhost.Service1();
webService.HelloWriteMapfile("Test", "01020304");
}
Regards
Michael
Michael Daniels Guest
-
A problem about WebService interop DCOM
hi, I'm developing a WebService that uses a DCOM server at the same machine. When I call a method of the DCOM, I get an... -
Can't invoke DCOM call from ASP.NET
I want to wrap a legacy COM dll within an ASP.NET app. The dll incorporates a DCOM call to a remote server and will return data, which the ASP.NET... -
DCOM call - Permission denied
Most places will put a common account/password on both boxes. For example "MTSComponent" and "somegoodpassword". You set the COM package to run as... -
DCOM call from an ASP page.
I have a COM component running on another Windows 2000 server. I want to call that component from the IIS server, which is on another Windows 2000... -
How to use DCOM Objects in WebService?
It could be , that the ASPNET account doesnot have the necessary privledge to call the object, do some impersonation in the config file <identity...



Reply With Quote

