473,748 Members | 6,664 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Big trouble accessing a web service with SoapRpcMEthod : System.Web.Serv ices.Protocols. SoapException

Hello,

I have a web service of my own on a server (vb.net). I must declare it with
SoapRpcMethod to be used with JAVA.
This is a simple exemple method of my vb source :
************** *************** *************** *************** *************
<WebMethod(), System.Web.Serv ices.Protocols. SoapRpcMethod() > _
Public Function HelloWorld() As
<System.Xml.Ser ialization.Soap ElementAttribut e("return")> String
HelloWorld = "Hello World"
End Function ************** *************** *************** *************** *************
The web service seems to be ok, i can access all methods and they work
correctly with the local page generated by iis on the web service url.

The problem is when i want to access the web service methods with a vb form
client.
I create a form, add w.s. reference to the project. This is the code behind
generated by dot net :
************** *************** *************** *************** *************

<System.Web.Ser vices.Protocols .SoapRpcMethodA ttribute("http://tempuri.org/CorusFortisDocu mentService/RPCCorusFortisD ocumentService/Hello"&
_
"World",
RequestNamespa ce:="http://tempuri.org/CorusFortisDocu mentService/RPCCorusFortisD ocumentService" ,
ResponseNamesp ace:="http://tempuri.org/CorusFortisDocu mentService/RPCCorusFortisD ocumentService" )>
_
Public Function HelloWorld() As
<System.Xml.Ser ialization.Soap ElementAttribut e("return")> String
Dim results() As Object = Me.Invoke("Hell oWorld", New
Object(-1) {})
Return CType(results(0 ),String)
End Function ************** *************** *************** *************** *************
All seems to be ok but when i call the method an exception is generated at
the Invoke method :
************** *************** *************** *************** *************
Une exception non gérée du type
'System.Web.Se rvices.Protocol s.SoapException ' s'est produite dans
system.web.ser vices.dll

Informations supplémentaires : System.Web.Serv ices.Protocols. SoapException:
Le serveur n'a pas pu traiter la demande. --->
System.IO.File NotFoundExcepti on: Le fichier ou l'assembly nommé
dezaqvlu.dll ou l'une de ses >dépendances, est introuvable.
Nom du fichier : "dezaqvlu.d ll"
at System.Reflecti on.Assembly.nLo ad(AssemblyName fileName, String
codeBase, Boolean isStringized, Evidence assemblySecurit y, Boolean
throwOnFileNotF ound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflecti on.Assembly.Int ernalLoad(Assem blyName assemblyRef,
Boolean stringized, Evidence assemblySecurit y, StackCrawlMark& stackMark)
at System.Reflecti on.Assembly.Loa d(AssemblyName assemblyRef, Evidence
assemblySecurit y)
at System.CodeDom. Compiler.Compil erResults.get_C ompiledAssembly ()
at System.CodeDom. Compiler.Compil erResults.get_C ompiledAssembly ()
at System.Xml.Seri alization.Compi ler.Compile()
at System.Xml.Seri alization.TempA ssembly..ctor(X mlMapping[] xmlMappings)
at System.Xml.Seri alization.XmlSe rializer.FromMa ppings(XmlMappi ng[]
mappings)
at System.Web.Serv ices.Protocols. SoapServerType. .ctor(Type type,
ProtocolsEnum versionsSupport ed)
at System.Web.Serv ices.Protocols. SoapServerProto col.Initialize( )
at System.Web.Serv ices.Protocols. ServerProtocolF actory.Create(T ype type,
HttpContext context, HttpRequest request, HttpResponse response, Boolean&
abortProcessing )

=== Pre-bind state information ===
LOG: Where-ref bind. Location =
C:\DOCUME~1\C9 40DEV4\ASPNET~1 .C94\LOCALS~1\T emp\dezaqvlu.dl l
LOG: Appbase =
file:///C:/Datas/DotNet/dvptroot/FortisDocumentS ervice/src/CorusFortisDocu mentService
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Attempting download of new URL
file:///C:/DOCUME~1/C940DEV4/ASPNET~1.C94/LOCALS~1/Temp/dezaqvlu.dll.

--- Fin de la trace de la pile d'exception interne --- ************** *************** *************** *************** *************
It is the exception when i try it on my WXP with the w.s. on the same box. I
have the same when i put the w.s. on my W2K3S + IIS and i call the method
from my client :
************** *************** *************** *************** *************
"System.IO.Fil eNotFoundExcept ion: Le fichier ou l'assembly nommé
a8wmmtf-.dll ou l'une de ses dépendances, est introuvable.
Nom du fichier : "a8wmmtf-.dll"
at System.Reflecti on.Assembly.nLo ad(AssemblyName fileName, String
codeBase, Boolean isStringized, Evidence assemblySecurit y, Boolean
throwOnFileNotF ound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflecti on.Assembly.Int ernalLoad(Assem blyName assemblyRef,
Boolean stringized, Evidence assemblySecurit y, StackCrawlMark& stackMark)
at System.Reflecti on.Assembly.Loa d(AssemblyName assemblyRef, Evidence
assemblySecurit y)
at System.CodeDom. Compiler.Compil erResults.get_C ompiledAssembly ()
at System.CodeDom. Compiler.Compil erResults.get_C ompiledAssembly ()
at System.Xml.Seri alization.Compi ler.Compile()
at System.Xml.Seri alization.TempA ssembly..ctor(X mlMapping[] xmlMappings)
at System.Xml.Seri alization.XmlSe rializer.FromMa ppings(XmlMappi ng[]
mappings)
at System.Web.Serv ices.Protocols. SoapClientType. .ctor(Type type)
at System.Web.Serv ices.Protocols. SoapHttpClientP rotocol..ctor()
at RPCHelloWorld.i nt.corus.s940we b.RPCCorusForti sDocumentServic e..ctor()
in C:\Datas\DotNet \dvptroot\Forti sDocumentServic e\src\RPCHelloW orld\Web
References\int. corus.s940web\R eference.vb:lin e 36
at RPCHelloWorld.H ello.Button1_Cl ick(Object sender, EventArgs e) in
C:\Datas\DotNet \dvptroot\Forti sDocumentServic e\src\RPCHelloW orld\Hello.vb:l ine
118>

=== Pre-bind state information ===
LOG: Where-ref bind. Location =
C:\DOCUME~1\ct hasin\LOCALS~1\ Temp\a8wmmtf-.dll
LOG: Appbase =
C:\Datas\DotNe t\dvptroot\Fort isDocumentServi ce\src\RPCHello World\bin\
LOG: Initial PrivatePath = NULL
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Attempting download of new URL
file:///C:/DOCUME~1/cthasin/LOCALS~1/Temp/a8wmmtf-.dll.

************** *************** *************** *************** *************

I'm in very big trouble cause i really dont know why and i'm searching from
2 weeks.

Could you help me please.

Thanks in, advance and excuse me for my english.

Olivier


Dec 21 '05 #1
3 5005
Hi Olivier,

Welcome to webservice newsgroup.
From the description of your problem, the webservice's serverside can not
load a certain assembly and that assembly is a random generated one (for
XML serialization .....)... I suggest try accessing the webservcie from
different cliente machine and also check the server's IIS log to see
whether the request have actually arrived the IIS server. If the request
did arrrive IIS server , then we can focus on the serverside... You can
try creating some other simple webservcie on the same server to see whether
it also suffer the same problem.

If there're anything else I missed, please feel free to post here.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
From: "Olivier BESSON" <o.******@commu nity.nospam>
Subject: Big trouble accessing a web service with SoapRpcMEthod :
System.Web.Serv ices.Protocols. SoapException
Date: Wed, 21 Dec 2005 12:47:13 +0100
Lines: 150
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
Message-ID: <OL************ **@TK2MSFTNGP14 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: 213-203-94-66.reverse.9tel .net 213.203.94.66
Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP14.phx. gbl
microsoft.publi c.dotnet.framew ork.webservices :13140
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

Hello,

I have a web service of my own on a server (vb.net). I must declare it with
SoapRpcMethod to be used with JAVA.
This is a simple exemple method of my vb source :
************** *************** *************** *************** *************
<WebMethod(), System.Web.Serv ices.Protocols. SoapRpcMethod() > _
Public Function HelloWorld() As
<System.Xml.Ser ialization.Soap ElementAttribut e("return")> String
HelloWorld = "Hello World"
End Function ************** *************** *************** *************** *************
The web service seems to be ok, i can access all methods and they work
correctly with the local page generated by iis on the web service url.

The problem is when i want to access the web service methods with a vb form
client.
I create a form, add w.s. reference to the project. This is the code behind
generated by dot net :
************** *************** *************** *************** *************

<System.Web.Ser vices.Protocols .SoapRpcMethodA ttribute("http://tempuri.org/Co
rusFortisDocume ntService/RPCCorusFortisD ocumentService/Hello"& _
"World",
RequestNamespa ce:="http://tempuri.org/CorusFortisDocu mentService/RPCCorusFo rtisDocumentSer vice",ResponseNamesp ace:="http://tempuri.org/CorusFortisDocu mentService/RPCCorusF ortisDocumentSe rvice")>_
Public Function HelloWorld() As
<System.Xml.Ser ialization.Soap ElementAttribut e("return")> String
Dim results() As Object = Me.Invoke("Hell oWorld", New
Object(-1) {})
Return CType(results(0 ),String)
End Function ************** *************** *************** *************** *************
All seems to be ok but when i call the method an exception is generated at
the Invoke method :
************** *************** *************** *************** *************
Une exception non gérée du type
'System.Web.Se rvices.Protocol s.SoapException ' s'est produite dans
system.web.ser vices.dll

Informations supplémentaires : System.Web.Serv ices.Protocols. SoapException:Le serveur n'a pas pu traiter la demande. --->
System.IO.File NotFoundExcepti on: Le fichier ou l'assembly nomm?
dezaqvlu.dll ou l'une de ses >dépendances, est introuvable.
Nom du fichier : "dezaqvlu.d ll"
at System.Reflecti on.Assembly.nLo ad(AssemblyName fileName, String
codeBase, Boolean isStringized, Evidence assemblySecurit y, Boolean
throwOnFileNotF ound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflecti on.Assembly.Int ernalLoad(Assem blyName assemblyRef,
Boolean stringized, Evidence assemblySecurit y, StackCrawlMark& stackMark)
at System.Reflecti on.Assembly.Loa d(AssemblyName assemblyRef, Evidence
assemblySecurit y)
at System.CodeDom. Compiler.Compil erResults.get_C ompiledAssembly ()
at System.CodeDom. Compiler.Compil erResults.get_C ompiledAssembly ()
at System.Xml.Seri alization.Compi ler.Compile()
at System.Xml.Seri alization.TempA ssembly..ctor(X mlMapping[] xmlMappings)
at System.Xml.Seri alization.XmlSe rializer.FromMa ppings(XmlMappi ng[]
mappings)
at System.Web.Serv ices.Protocols. SoapServerType. .ctor(Type type,
ProtocolsEnum versionsSupport ed)
at System.Web.Serv ices.Protocols. SoapServerProto col.Initialize( )
at System.Web.Serv ices.Protocols. ServerProtocolF actory.Create(T ype type, HttpContext context, HttpRequest request, HttpResponse response, Boolean&
abortProcessing )

=== Pre-bind state information ===
LOG: Where-ref bind. Location =
C:\DOCUME~1\C9 40DEV4\ASPNET~1 .C94\LOCALS~1\T emp\dezaqvlu.dl l
LOG: Appbase =
file:///C:/Datas/DotNet/dvptroot/FortisDocumentS ervice/src/CorusFortisDocu m entServiceLOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Attempting download of new URL
file:///C:/DOCUME~1/C940DEV4/ASPNET~1.C94/LOCALS~1/Temp/dezaqvlu.dll.

--- Fin de la trace de la pile d'exception interne --- ************** *************** *************** *************** *************
It is the exception when i try it on my WXP with the w.s. on the same box.
I
have the same when i put the w.s. on my W2K3S + IIS and i call the method
from my client :
************** *************** *************** *************** *************
"System.IO.Fil eNotFoundExcept ion: Le fichier ou l'assembly nomm?
a8wmmtf-.dll ou l'une de ses dépendances, est introuvable.
Nom du fichier : "a8wmmtf-.dll"
at System.Reflecti on.Assembly.nLo ad(AssemblyName fileName, String
codeBase, Boolean isStringized, Evidence assemblySecurit y, Boolean
throwOnFileNotF ound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflecti on.Assembly.Int ernalLoad(Assem blyName assemblyRef,
Boolean stringized, Evidence assemblySecurit y, StackCrawlMark& stackMark)
at System.Reflecti on.Assembly.Loa d(AssemblyName assemblyRef, Evidence
assemblySecurit y)
at System.CodeDom. Compiler.Compil erResults.get_C ompiledAssembly ()
at System.CodeDom. Compiler.Compil erResults.get_C ompiledAssembly ()
at System.Xml.Seri alization.Compi ler.Compile()
at System.Xml.Seri alization.TempA ssembly..ctor(X mlMapping[] xmlMappings)
at System.Xml.Seri alization.XmlSe rializer.FromMa ppings(XmlMappi ng[]
mappings)
at System.Web.Serv ices.Protocols. SoapClientType. .ctor(Type type)
at System.Web.Serv ices.Protocols. SoapHttpClientP rotocol..ctor()
at RPCHelloWorld.i nt.corus.s940we b.RPCCorusForti sDocumentServic e..ctor() in C:\Datas\DotNet \dvptroot\Forti sDocumentServic e\src\RPCHelloW orld\Web
References\int. corus.s940web\R eference.vb:lin e 36
at RPCHelloWorld.H ello.Button1_Cl ick(Object sender, EventArgs e) in
C:\Datas\DotNet \dvptroot\Forti sDocumentServic e\src\RPCHelloW orld\Hello.vb:l i
ne 118>

=== Pre-bind state information ===
LOG: Where-ref bind. Location =
C:\DOCUME~1\ct hasin\LOCALS~1\ Temp\a8wmmtf-.dll
LOG: Appbase =
C:\Datas\DotNe t\dvptroot\Fort isDocumentServi ce\src\RPCHello World\bin\
LOG: Initial PrivatePath = NULL
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Attempting download of new URL
file:///C:/DOCUME~1/cthasin/LOCALS~1/Temp/a8wmmtf-.dll.

************** *************** *************** *************** *************

I'm in very big trouble cause i really dont know why and i'm searching from
2 weeks.

Could you help me please.

Thanks in, advance and excuse me for my english.

Olivier

Dec 22 '05 #2
Hi Steven,

I see the client calls in IIS :
22:49:03 127.0.0.1 POST
/CorusFortisDocu mentService/CorusFortisDocu mentService.asm x 200

I've included the source code of my asmx page in this post (it's a very
simple source).
If i use the source like this my form client can access the IsAlive method.
If i uncomment line 4 and delete line 5 to put it in SoapRPC my form client
raise an exception like the one i described under with a rando generated
assembly name.
I also found that if i comment the method called GetDocumentList ByIdAndDate,
i can call the IsAlive normally with class declared SoapRPC. It seems that
only when this method is present all the call from my form will finished in
exception. This method return an array of a type generated with
xsdobjectgen.
I really don't know why, do you have an idea ?

Thnaks for your help.

"Steven Cheng[MSFT]" <st*****@online .microsoft.com> a écrit dans le message
de news: 8f************* *@TK2MSFTNGXA02 .phx.gbl...
Hi Olivier,

Welcome to webservice newsgroup.
From the description of your problem, the webservice's serverside can not
load a certain assembly and that assembly is a random generated one (for
XML serialization .....)... I suggest try accessing the webservcie from
different cliente machine and also check the server's IIS log to see
whether the request have actually arrived the IIS server. If the request
did arrrive IIS server , then we can focus on the serverside... You can
try creating some other simple webservcie on the same server to see
whether
it also suffer the same problem.

If there're anything else I missed, please feel free to post here.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
From: "Olivier BESSON" <o.******@commu nity.nospam>
Subject: Big trouble accessing a web service with SoapRpcMEthod :
System.Web.Serv ices.Protocols. SoapException
Date: Wed, 21 Dec 2005 12:47:13 +0100
Lines: 150
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
Message-ID: <OL************ **@TK2MSFTNGP14 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: 213-203-94-66.reverse.9tel .net 213.203.94.66
Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP14.phx. gbl
Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.webservices :13140
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

Hello,

I have a web service of my own on a server (vb.net). I must declare it
with
SoapRpcMethod to be used with JAVA.
This is a simple exemple method of my vb source :
************* *************** *************** *************** **************
<WebMethod(), System.Web.Serv ices.Protocols. SoapRpcMethod() > _
Public Function HelloWorld() As
<System.Xml.Ser ialization.Soap ElementAttribut e("return")> String
HelloWorld = "Hello World"
End Function

************* *************** *************** *************** **************


The web service seems to be ok, i can access all methods and they work
correctly with the local page generated by iis on the web service url.

The problem is when i want to access the web service methods with a vb
form
client.
I create a form, add w.s. reference to the project. This is the code
behind
generated by dot net :
************* *************** *************** *************** **************

<System.Web.Ser vices.Protocols .SoapRpcMethodA ttribute("http://tempuri.org/Co
rusFortisDocume ntService/RPCCorusFortisD ocumentService/Hello"&
_
"World",
RequestNamesp ace:="http://tempuri.org/CorusFortisDocu mentService/RPCCorusFo

rtisDocumentSer vice",
ResponseNames pace:="http://tempuri.org/CorusFortisDocu mentService/RPCCorusF

ortisDocumentSe rvice")>
_
Public Function HelloWorld() As
<System.Xml.Ser ialization.Soap ElementAttribut e("return")> String
Dim results() As Object = Me.Invoke("Hell oWorld", New
Object(-1) {})
Return CType(results(0 ),String)
End Function

************* *************** *************** *************** **************


All seems to be ok but when i call the method an exception is generated at
the Invoke method :
************* *************** *************** *************** **************
Une exception non gérée du type
'System.Web.S ervices.Protoco ls.SoapExceptio n' s'est produite dans
system.web.se rvices.dll

Information s supplémentaires :

System.Web.Serv ices.Protocols. SoapException:
Le serveur n'a pas pu traiter la demande. --->
System.IO.Fil eNotFoundExcept ion: Le fichier ou l'assembly nomm?
dezaqvlu.dl l ou l'une de ses >dépendances, est introuvable.
Nom du fichier : "dezaqvlu.d ll"
at System.Reflecti on.Assembly.nLo ad(AssemblyName fileName, String
codeBase, Boolean isStringized, Evidence assemblySecurit y, Boolean
throwOnFileNotF ound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflecti on.Assembly.Int ernalLoad(Assem blyName assemblyRef,
Boolean stringized, Evidence assemblySecurit y, StackCrawlMark& stackMark)
at System.Reflecti on.Assembly.Loa d(AssemblyName assemblyRef, Evidence
assemblySecurit y)
at System.CodeDom. Compiler.Compil erResults.get_C ompiledAssembly ()
at System.CodeDom. Compiler.Compil erResults.get_C ompiledAssembly ()
at System.Xml.Seri alization.Compi ler.Compile()
at System.Xml.Seri alization.TempA ssembly..ctor(X mlMapping[]
xmlMappings)
at System.Xml.Seri alization.XmlSe rializer.FromMa ppings(XmlMappi ng[]
mappings)
at System.Web.Serv ices.Protocols. SoapServerType. .ctor(Type type,
ProtocolsEnum versionsSupport ed)
at System.Web.Serv ices.Protocols. SoapServerProto col.Initialize( )
at System.Web.Serv ices.Protocols. ServerProtocolF actory.Create(T ype

type,
HttpContext context, HttpRequest request, HttpResponse response, Boolean&
abortProcessing )

=== Pre-bind state information ===
LOG: Where-ref bind. Location =
C:\DOCUME~1\C 940DEV4\ASPNET~ 1.C94\LOCALS~1\ Temp\dezaqvlu.d ll
LOG: Appbase =
file:///C:/Datas/DotNet/dvptroot/FortisDocumentS ervice/src/CorusFortisDocu m

entService
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Attempting download of new URL
file:///C:/DOCUME~1/C940DEV4/ASPNET~1.C94/LOCALS~1/Temp/dezaqvlu.dll.

--- Fin de la trace de la pile d'exception interne ---

************* *************** *************** *************** **************


It is the exception when i try it on my WXP with the w.s. on the same box.
I
have the same when i put the w.s. on my W2K3S + IIS and i call the method
from my client :
************* *************** *************** *************** **************
"System.IO.Fi leNotFoundExcep tion: Le fichier ou l'assembly nomm?
a8wmmtf-.dll ou l'une de ses dépendances, est introuvable.
Nom du fichier : "a8wmmtf-.dll"
at System.Reflecti on.Assembly.nLo ad(AssemblyName fileName, String
codeBase, Boolean isStringized, Evidence assemblySecurit y, Boolean
throwOnFileNotF ound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflecti on.Assembly.Int ernalLoad(Assem blyName assemblyRef,
Boolean stringized, Evidence assemblySecurit y, StackCrawlMark& stackMark)
at System.Reflecti on.Assembly.Loa d(AssemblyName assemblyRef, Evidence
assemblySecurit y)
at System.CodeDom. Compiler.Compil erResults.get_C ompiledAssembly ()
at System.CodeDom. Compiler.Compil erResults.get_C ompiledAssembly ()
at System.Xml.Seri alization.Compi ler.Compile()
at System.Xml.Seri alization.TempA ssembly..ctor(X mlMapping[]
xmlMappings)
at System.Xml.Seri alization.XmlSe rializer.FromMa ppings(XmlMappi ng[]
mappings)
at System.Web.Serv ices.Protocols. SoapClientType. .ctor(Type type)
at System.Web.Serv ices.Protocols. SoapHttpClientP rotocol..ctor()
at

RPCHelloWorld.i nt.corus.s940we b.RPCCorusForti sDocumentServic e..ctor()
in C:\Datas\DotNet \dvptroot\Forti sDocumentServic e\src\RPCHelloW orld\Web
References\int. corus.s940web\R eference.vb:lin e 36
at RPCHelloWorld.H ello.Button1_Cl ick(Object sender, EventArgs e) in

C:\Datas\DotNet \dvptroot\Forti sDocumentServic e\src\RPCHelloW orld\Hello.vb:l i
ne
118>

=== Pre-bind state information ===
LOG: Where-ref bind. Location =
C:\DOCUME~1\c thasin\LOCALS~1 \Temp\a8wmmtf-.dll
LOG: Appbase =
C:\Datas\DotN et\dvptroot\For tisDocumentServ ice\src\RPCHell oWorld\bin\
LOG: Initial PrivatePath = NULL
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Attempting download of new URL
file:///C:/DOCUME~1/cthasin/LOCALS~1/Temp/a8wmmtf-.dll.

************* *************** *************** *************** **************

I'm in very big trouble cause i really dont know why and i'm searching
from
2 weeks.

Could you help me please.

Thanks in, advance and excuse me for my english.

Olivier




Dec 22 '05 #3
Hey Olivier,

I've seen your new thread in the newsgroup on this problem. I've posted my
response there. Please have a look and continue to discuss there...

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
From: "Olivier BESSON" <o.******@commu nity.nospam>
References: <OL************ **@TK2MSFTNGP14 .phx.gbl>
<8f************ **@TK2MSFTNGXA0 2.phx.gbl>
Subject: Re: Big trouble accessing a web service with SoapRpcMEthod :
System.Web.Serv ices.Protocols. SoapException
Date: Fri, 23 Dec 2005 00:15:45 +0100
Lines: 331
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
X-RFC2646: Format=Flowed; Original
Message-ID: <#i************ **@TK2MSFTNGP09 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: 213-203-94-66.reverse.9tel .net 213.203.94.66
Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP09.phx. gbl
microsoft.publi c.dotnet.framew ork.webservices :13162
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

Hi Steven,

I see the client calls in IIS :
22:49:03 127.0.0.1 POST
/CorusFortisDocu mentService/CorusFortisDocu mentService.asm x 200

I've included the source code of my asmx page in this post (it's a very
simple source).
If i use the source like this my form client can access the IsAlive method.
If i uncomment line 4 and delete line 5 to put it in SoapRPC my form client
raise an exception like the one i described under with a rando generated
assembly name.
I also found that if i comment the method called
GetDocumentList ByIdAndDate,
i can call the IsAlive normally with class declared SoapRPC. It seems that
only when this method is present all the call from my form will finished in
exception. This method return an array of a type generated with
xsdobjectgen.
I really don't know why, do you have an idea ?

Thnaks for your help.

"Steven Cheng[MSFT]" <st*****@online .microsoft.com> a écrit dans le message
de news: 8f************* *@TK2MSFTNGXA02 .phx.gbl...
Hi Olivier,

Welcome to webservice newsgroup.
From the description of your problem, the webservice's serverside can not
load a certain assembly and that assembly is a random generated one (for
XML serialization .....)... I suggest try accessing the webservcie from
different cliente machine and also check the server's IIS log to see
whether the request have actually arrived the IIS server. If the request
did arrrive IIS server , then we can focus on the serverside... You can
try creating some other simple webservcie on the same server to see
whether
it also suffer the same problem.

If there're anything else I missed, please feel free to post here.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
From: "Olivier BESSON" <o.******@commu nity.nospam>
Subject: Big trouble accessing a web service with SoapRpcMEthod :
System.Web.Serv ices.Protocols. SoapException
Date: Wed, 21 Dec 2005 12:47:13 +0100
Lines: 150
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
Message-ID: <OL************ **@TK2MSFTNGP14 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: 213-203-94-66.reverse.9tel .net 213.203.94.66
Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP14.phx. gbl
Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.webservices :13140
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

Hello,

I have a web service of my own on a server (vb.net). I must declare it
with
SoapRpcMethod to be used with JAVA.
This is a simple exemple method of my vb source :
************* *************** *************** *************** **************
<WebMethod(), System.Web.Serv ices.Protocols. SoapRpcMethod() > _
Public Function HelloWorld() As
<System.Xml.Ser ialization.Soap ElementAttribut e("return")> String
HelloWorld = "Hello World"
End Function
************* *************** *************** *************** **************


The web service seems to be ok, i can access all methods and they work
correctly with the local page generated by iis on the web service url.

The problem is when i want to access the web service methods with a vb
form
client.
I create a form, add w.s. reference to the project. This is the code
behind
generated by dot net :
************* *************** *************** *************** **************

<System.Web.Ser vices.Protocols .SoapRpcMethodA ttribute("http://tempuri.org/Co rusFortisDocume ntService/RPCCorusFortisD ocumentService/Hello"&
_
"World",
RequestNamesp ace:="http://tempuri.org/CorusFortisDocu mentService/RPCCorusF
o rtisDocumentSer vice",
ResponseNames pace:="http://tempuri.org/CorusFortisDocu mentService/RPCCorus
F ortisDocumentSe rvice")>
_
Public Function HelloWorld() As
<System.Xml.Ser ialization.Soap ElementAttribut e("return")> String
Dim results() As Object = Me.Invoke("Hell oWorld", New
Object(-1) {})
Return CType(results(0 ),String)
End Function
************* *************** *************** *************** **************


All seems to be ok but when i call the method an exception is generated at
the Invoke method :
************* *************** *************** *************** **************
Une exception non gérée du type
'System.Web.S ervices.Protoco ls.SoapExceptio n' s'est produite dans
system.web.se rvices.dll

Information s supplémentaires :

System.Web.Serv ices.Protocols. SoapException:
Le serveur n'a pas pu traiter la demande. --->
System.IO.Fil eNotFoundExcept ion: Le fichier ou l'assembly nomm?
dezaqvlu.dl l ou l'une de ses >dépendances, est introuvable.
Nom du fichier : "dezaqvlu.d ll"
at System.Reflecti on.Assembly.nLo ad(AssemblyName fileName, String
codeBase, Boolean isStringized, Evidence assemblySecurit y, Boolean
throwOnFileNotF ound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflecti on.Assembly.Int ernalLoad(Assem blyName assemblyRef,
Boolean stringized, Evidence assemblySecurit y, StackCrawlMark& stackMark)
at System.Reflecti on.Assembly.Loa d(AssemblyName assemblyRef, Evidence
assemblySecurit y)
at System.CodeDom. Compiler.Compil erResults.get_C ompiledAssembly ()
at System.CodeDom. Compiler.Compil erResults.get_C ompiledAssembly ()
at System.Xml.Seri alization.Compi ler.Compile()
at System.Xml.Seri alization.TempA ssembly..ctor(X mlMapping[]
xmlMappings)
at System.Xml.Seri alization.XmlSe rializer.FromMa ppings(XmlMappi ng[]
mappings)
at System.Web.Serv ices.Protocols. SoapServerType. .ctor(Type type,
ProtocolsEnum versionsSupport ed)
at System.Web.Serv ices.Protocols. SoapServerProto col.Initialize( )
at System.Web.Serv ices.Protocols. ServerProtocolF actory.Create(T ype

type,
HttpContext context, HttpRequest request, HttpResponse response, Boolean&
abortProcessing )

=== Pre-bind state information ===
LOG: Where-ref bind. Location =
C:\DOCUME~1\C 940DEV4\ASPNET~ 1.C94\LOCALS~1\ Temp\dezaqvlu.d ll
LOG: Appbase =
file:///C:/Datas/DotNet/dvptroot/FortisDocumentS ervice/src/CorusFortisDocu

m entService
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Attempting download of new URL
file:///C:/DOCUME~1/C940DEV4/ASPNET~1.C94/LOCALS~1/Temp/dezaqvlu.dll.

--- Fin de la trace de la pile d'exception interne ---
************* *************** *************** *************** **************


It is the exception when i try it on my WXP with the w.s. on the same box.
I
have the same when i put the w.s. on my W2K3S + IIS and i call the method
from my client :
************* *************** *************** *************** **************
"System.IO.Fi leNotFoundExcep tion: Le fichier ou l'assembly nomm?
a8wmmtf-.dll ou l'une de ses dépendances, est introuvable.
Nom du fichier : "a8wmmtf-.dll"
at System.Reflecti on.Assembly.nLo ad(AssemblyName fileName, String
codeBase, Boolean isStringized, Evidence assemblySecurit y, Boolean
throwOnFileNotF ound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflecti on.Assembly.Int ernalLoad(Assem blyName assemblyRef,
Boolean stringized, Evidence assemblySecurit y, StackCrawlMark& stackMark)
at System.Reflecti on.Assembly.Loa d(AssemblyName assemblyRef, Evidence
assemblySecurit y)
at System.CodeDom. Compiler.Compil erResults.get_C ompiledAssembly ()
at System.CodeDom. Compiler.Compil erResults.get_C ompiledAssembly ()
at System.Xml.Seri alization.Compi ler.Compile()
at System.Xml.Seri alization.TempA ssembly..ctor(X mlMapping[]
xmlMappings)
at System.Xml.Seri alization.XmlSe rializer.FromMa ppings(XmlMappi ng[]
mappings)
at System.Web.Serv ices.Protocols. SoapClientType. .ctor(Type type)
at System.Web.Serv ices.Protocols. SoapHttpClientP rotocol..ctor()
at

RPCHelloWorld.i nt.corus.s940we b.RPCCorusForti sDocumentServic e..ctor()
in C:\Datas\DotNet \dvptroot\Forti sDocumentServic e\src\RPCHelloW orld\Web
References\int. corus.s940web\R eference.vb:lin e 36
at RPCHelloWorld.H ello.Button1_Cl ick(Object sender, EventArgs e) in

C:\Datas\DotNet \dvptroot\Forti sDocumentServic e\src\RPCHelloW orld\Hello.vb:l i ne
118>

=== Pre-bind state information ===
LOG: Where-ref bind. Location =
C:\DOCUME~1\c thasin\LOCALS~1 \Temp\a8wmmtf-.dll
LOG: Appbase =
C:\Datas\DotN et\dvptroot\For tisDocumentServ ice\src\RPCHell oWorld\bin\
LOG: Initial PrivatePath = NULL
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Attempting download of new URL
file:///C:/DOCUME~1/cthasin/LOCALS~1/Temp/a8wmmtf-.dll.

************* *************** *************** *************** **************

I'm in very big trouble cause i really dont know why and i'm searching
from
2 weeks.

Could you help me please.

Thanks in, advance and excuse me for my english.

Olivier



Dec 28 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
7677
by: Jim Lewis | last post by:
I have read several things that state accessing a Web Service through a Query String should work. However, when I try to execute http://localhost/webservice1/service1.asmx/HelloWorld I get the error below. Can I access a Web Service through a Query Sting. I need to send XML to a Flash movie using a Web Service. Thank You, Jim Lewis Server Error in '/WebService1' Application.
3
2739
by: Tom | last post by:
I'm wiritng a dot.net windows forms appliction that needs to connect to a webservice to download some files. I need to show a progress bar during the download, bacause some file can be very big. How Can i Mkae this? Can i use a stream? There are some samples? I'm thinking to use a byte array to get, for each call, a chunck of bytes, but I think also that in this way i'll made a lot of HTTP calls...
0
1375
by: sameem.samad | last post by:
Hi, I have a solution which has 3 layers - GUI, Interface Layer and web service layer. GUI layer is referencing Interface Layer and Web service layer also pointing to interface layer. GUI layer has following Code: Dim obj as IFedService = IFedService.BrokerHelper.GetAddress Dim str as string = obj.GetAddress(ObjData)
2
4953
by: Richard Collette | last post by:
Hi, I have a service, that runs perfectly when executed outside of the web service environment. When called as a web service I get the exception listed below sporadically. A call to the web method may succeed one time and not another. I cannot find any reason why it would work one time and not another. The exception occurs every two or three calls to the web method. The service utilizes a COM component provided by PeopleSoft...
0
2104
by: raghuraman_ace | last post by:
Hi i have started a webservice wich has a webmethod with parameters using literal encoding & encoded encoding . The webservice is compiled successfully . But i don know how to pass the parameters that satisfy these encodings . My web method is ---------------------------------------------
2
1906
by: Anthony Biondo Jr | last post by:
I was wondering how to handle an error in a web service. If our web service encounters a connection error or any other error what is the best practice for returning an error? Do you return a blank result with an error attached or is there some other way to do this? thanks, Anthony
5
12716
by: ayaz.usman | last post by:
Hi, I've built a web services proxy server, in C# using wsdl.exe, by importing wsdl. Howeever, when I go to : http://localhost/sample.asmx?wsdl, they wsdl there does not match the wsdl I fed into wsdl.exe. Why is this? Is there something I can do to make the input and output wsdl match?
8
9844
by: Mo | last post by:
Hi, I can not find a decent example showing how to consume a asp.net 2.0 web service using classic ASP. Does any body have an example I could use? Thanks
0
9822
by: yoozioo | last post by:
hello, This year I'm learning C# at school and now we focus on web services. I created and published a web service which contains a method that calls another web service written by my class mates. When I run a simple windows application which uses my web service I get the following exception which is thrown when my mates' web method is called. An unhandled exception of type 'System.Web.Services.Protocols.SoapException' occurred in...
0
8987
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8826
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9366
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9241
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8239
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6793
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6073
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3303
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2777
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.