P
Patrick Ruhnow
Hi,
i have a COM+ component written in C#.
I try to call the component over ASP. No problem so far until
I've got a array in the parameters of the COM+ method.
C#:
public byte[] ProcessPdfDocument(string reportPath, string identifier,
string boType, string userName, bool storeDocument, string[] parameters)
ASP call:
var bo = Server.CreateObject("DocumentProcessing.DocProcessor");
var theArray = new Array(2);//"12541", "de", "True");
theArray[0] = "12541";
theArray[1] = "de";
theArray[2] = "True";
var reportStream = bo.ProcessPdfDocument("/Angebot/Angebot", "12541",
"Angebot", "daUser", true, theArray);
Hallo,
ich habe eine COM+ Komponente mit C# geschrieben und versuche
diese über eine ASP Seite aufzurufen. Ich benutze JavaScript auf der
Serverseite.
Soweit kein Problem nur muss ich nun ein Array als Parameter übergeben:
C#:
public byte[] ProcessPdfDocument(string reportPath, string identifier,
string boType, string userName, bool storeDocument, string[] parameters)
ASP:
var bo = Server.CreateObject("DocumentProcessing.DocProcessor");
var theArray = new Array(2);//"12541", "de", "True");
theArray[0] = "12541";
theArray[1] = "de";
theArray[2] = "True";
var reportStream = bo.ProcessPdfDocument("/Angebot/Angebot", "12541",
"Angebot", "daUser", true, theArray);
the following error occours:
(0x800A0005)
Invalid procedure call or argument
as mentioned before, the error only occours when i want to pass an array
to the COM+ method...
regards
Patrick Ruhnow
---------------------------------------------------
Folgender Scriptfehler tritt auf:
Fehlertyp:
Laufzeitfehler in Microsoft JScript (0x800A0005)
Ungültiger Prozeduraufruf oder ungültiges Argument
/odis/Business/printdocument/Offer/PrintStream.asp, line 23
-----------------------------------------------------------
Wie schon erwähnt, tritt der Fehler nur auf wenn ich in der Komponente ein
Array haben will.
Wie muss das Array in C# definiert sein???
Gruß
Patrick Ruhnow
i have a COM+ component written in C#.
I try to call the component over ASP. No problem so far until
I've got a array in the parameters of the COM+ method.
C#:
public byte[] ProcessPdfDocument(string reportPath, string identifier,
string boType, string userName, bool storeDocument, string[] parameters)
ASP call:
var bo = Server.CreateObject("DocumentProcessing.DocProcessor");
var theArray = new Array(2);//"12541", "de", "True");
theArray[0] = "12541";
theArray[1] = "de";
theArray[2] = "True";
var reportStream = bo.ProcessPdfDocument("/Angebot/Angebot", "12541",
"Angebot", "daUser", true, theArray);
Hallo,
ich habe eine COM+ Komponente mit C# geschrieben und versuche
diese über eine ASP Seite aufzurufen. Ich benutze JavaScript auf der
Serverseite.
Soweit kein Problem nur muss ich nun ein Array als Parameter übergeben:
C#:
public byte[] ProcessPdfDocument(string reportPath, string identifier,
string boType, string userName, bool storeDocument, string[] parameters)
ASP:
var bo = Server.CreateObject("DocumentProcessing.DocProcessor");
var theArray = new Array(2);//"12541", "de", "True");
theArray[0] = "12541";
theArray[1] = "de";
theArray[2] = "True";
var reportStream = bo.ProcessPdfDocument("/Angebot/Angebot", "12541",
"Angebot", "daUser", true, theArray);
the following error occours:
(0x800A0005)
Invalid procedure call or argument
as mentioned before, the error only occours when i want to pass an array
to the COM+ method...
regards
Patrick Ruhnow
---------------------------------------------------
Folgender Scriptfehler tritt auf:
Fehlertyp:
Laufzeitfehler in Microsoft JScript (0x800A0005)
Ungültiger Prozeduraufruf oder ungültiges Argument
/odis/Business/printdocument/Offer/PrintStream.asp, line 23
-----------------------------------------------------------
Wie schon erwähnt, tritt der Fehler nur auf wenn ich in der Komponente ein
Array haben will.
Wie muss das Array in C# definiert sein???
Gruß
Patrick Ruhnow