By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,068 Members | 1,734 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,068 IT Pros & Developers. It's quick & easy.

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

P: n/a
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.Services.Protocols.SoapRpcMethod()> _
Public Function HelloWorld() As
<System.Xml.Serialization.SoapElementAttribute("re turn")> 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.Services.Protocols.SoapRpcMethodAttrib ute("http://tempuri.org/CorusFortisDocumentService/RPCCorusFortisDocumentService/Hello"&
_
"World",
RequestNamespace:="http://tempuri.org/CorusFortisDocumentService/RPCCorusFortisDocumentService",
ResponseNamespace:="http://tempuri.org/CorusFortisDocumentService/RPCCorusFortisDocumentService")>
_
Public Function HelloWorld() As
<System.Xml.Serialization.SoapElementAttribute("re turn")> String
Dim results() As Object = Me.Invoke("HelloWorld", 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.Services.Protocols.SoapException' s'est produite dans
system.web.services.dll

Informations supplémentaires : System.Web.Services.Protocols.SoapException:
Le serveur n'a pas pu traiter la demande. --->
System.IO.FileNotFoundException: Le fichier ou l'assembly nommé
dezaqvlu.dll ou l'une de ses >dépendances, est introuvable.
Nom du fichier : "dezaqvlu.dll"
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String
codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean
throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef,
Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence
assemblySecurity)
at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly()
at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly()
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.SoapServerType..ctor (Type type,
ProtocolsEnum versionsSupported)
at System.Web.Services.Protocols.SoapServerProtocol.I nitialize()
at System.Web.Services.Protocols.ServerProtocolFactor y.Create(Type type,
HttpContext context, HttpRequest request, HttpResponse response, Boolean&
abortProcessing)

=== Pre-bind state information ===
LOG: Where-ref bind. Location =
C:\DOCUME~1\C940DEV4\ASPNET~1.C94\LOCALS~1\Temp\d ezaqvlu.dll
LOG: Appbase =
file:///C:/Datas/DotNet/dvptroot/FortisDocumentService/src/CorusFortisDocumentService
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.FileNotFoundException: Le fichier ou l'assembly nommé
a8wmmtf-.dll ou l'une de ses dépendances, est introuvable.
Nom du fichier : "a8wmmtf-.dll"
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String
codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean
throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef,
Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence
assemblySecurity)
at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly()
at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly()
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 RPCHelloWorld.int.corus.s940web.RPCCorusFortisDocu mentService..ctor()
in C:\Datas\DotNet\dvptroot\FortisDocumentService\src \RPCHelloWorld\Web
References\int.corus.s940web\Reference.vb:line 36
at RPCHelloWorld.Hello.Button1_Click(Object sender, EventArgs e) in
C:\Datas\DotNet\dvptroot\FortisDocumentService\src \RPCHelloWorld\Hello.vb:line
118>

=== Pre-bind state information ===
LOG: Where-ref bind. Location =
C:\DOCUME~1\cthasin\LOCALS~1\Temp\a8wmmtf-.dll
LOG: Appbase =
C:\Datas\DotNet\dvptroot\FortisDocumentService\sr c\RPCHelloWorld\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
Share this Question
Share on Google+
3 Replies


P: n/a
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.******@community.nospam>
Subject: Big trouble accessing a web service with SoapRpcMEthod :
System.Web.Services.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.public.dotnet.framework.webservices
NNTP-Posting-Host: 213-203-94-66.reverse.9tel.net 213.203.94.66
Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP14.phx.gbl
microsoft.public.dotnet.framework.webservices:1314 0
X-Tomcat-NG: microsoft.public.dotnet.framework.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.Services.Protocols.SoapRpcMethod()> _
Public Function HelloWorld() As
<System.Xml.Serialization.SoapElementAttribute("re turn")> 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.Services.Protocols.SoapRpcMethodAttrib ute("http://tempuri.org/Co
rusFortisDocumentService/RPCCorusFortisDocumentService/Hello"& _
"World",
RequestNamespace:="http://tempuri.org/CorusFortisDocumentService/RPCCorusFo rtisDocumentService",ResponseNamespace:="http://tempuri.org/CorusFortisDocumentService/RPCCorusF ortisDocumentService")>_
Public Function HelloWorld() As
<System.Xml.Serialization.SoapElementAttribute("re turn")> String
Dim results() As Object = Me.Invoke("HelloWorld", 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.Services.Protocols.SoapException' s'est produite dans
system.web.services.dll

Informations supplémentaires : System.Web.Services.Protocols.SoapException:Le serveur n'a pas pu traiter la demande. --->
System.IO.FileNotFoundException: Le fichier ou l'assembly nomm?
dezaqvlu.dll ou l'une de ses >dépendances, est introuvable.
Nom du fichier : "dezaqvlu.dll"
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String
codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean
throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef,
Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence
assemblySecurity)
at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly()
at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly()
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.SoapServerType..ctor (Type type,
ProtocolsEnum versionsSupported)
at System.Web.Services.Protocols.SoapServerProtocol.I nitialize()
at System.Web.Services.Protocols.ServerProtocolFactor y.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean&
abortProcessing)

=== Pre-bind state information ===
LOG: Where-ref bind. Location =
C:\DOCUME~1\C940DEV4\ASPNET~1.C94\LOCALS~1\Temp\d ezaqvlu.dll
LOG: Appbase =
file:///C:/Datas/DotNet/dvptroot/FortisDocumentService/src/CorusFortisDocum 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.FileNotFoundException: Le fichier ou l'assembly nomm?
a8wmmtf-.dll ou l'une de ses dépendances, est introuvable.
Nom du fichier : "a8wmmtf-.dll"
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String
codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean
throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef,
Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence
assemblySecurity)
at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly()
at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly()
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 RPCHelloWorld.int.corus.s940web.RPCCorusFortisDocu mentService..ctor() in C:\Datas\DotNet\dvptroot\FortisDocumentService\src \RPCHelloWorld\Web
References\int.corus.s940web\Reference.vb:line 36
at RPCHelloWorld.Hello.Button1_Click(Object sender, EventArgs e) in
C:\Datas\DotNet\dvptroot\FortisDocumentService\src \RPCHelloWorld\Hello.vb:li
ne 118>

=== Pre-bind state information ===
LOG: Where-ref bind. Location =
C:\DOCUME~1\cthasin\LOCALS~1\Temp\a8wmmtf-.dll
LOG: Appbase =
C:\Datas\DotNet\dvptroot\FortisDocumentService\sr c\RPCHelloWorld\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

P: n/a
Hi Steven,

I see the client calls in IIS :
22:49:03 127.0.0.1 POST
/CorusFortisDocumentService/CorusFortisDocumentService.asmx 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 GetDocumentListByIdAndDate,
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.******@community.nospam>
Subject: Big trouble accessing a web service with SoapRpcMEthod :
System.Web.Services.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.public.dotnet.framework.webservices
NNTP-Posting-Host: 213-203-94-66.reverse.9tel.net 213.203.94.66
Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP14.phx.gbl
Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.webservices:1314 0
X-Tomcat-NG: microsoft.public.dotnet.framework.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.Services.Protocols.SoapRpcMethod()> _
Public Function HelloWorld() As
<System.Xml.Serialization.SoapElementAttribute("re turn")> 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.Services.Protocols.SoapRpcMethodAttrib ute("http://tempuri.org/Co
rusFortisDocumentService/RPCCorusFortisDocumentService/Hello"&
_
"World",
RequestNamespace:="http://tempuri.org/CorusFortisDocumentService/RPCCorusFo

rtisDocumentService",
ResponseNamespace:="http://tempuri.org/CorusFortisDocumentService/RPCCorusF

ortisDocumentService")>
_
Public Function HelloWorld() As
<System.Xml.Serialization.SoapElementAttribute("re turn")> String
Dim results() As Object = Me.Invoke("HelloWorld", 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.Services.Protocols.SoapException' s'est produite dans
system.web.services.dll

Informations supplémentaires :

System.Web.Services.Protocols.SoapException:
Le serveur n'a pas pu traiter la demande. --->
System.IO.FileNotFoundException: Le fichier ou l'assembly nomm?
dezaqvlu.dll ou l'une de ses >dépendances, est introuvable.
Nom du fichier : "dezaqvlu.dll"
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String
codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean
throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef,
Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence
assemblySecurity)
at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly()
at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly()
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.SoapServerType..ctor (Type type,
ProtocolsEnum versionsSupported)
at System.Web.Services.Protocols.SoapServerProtocol.I nitialize()
at System.Web.Services.Protocols.ServerProtocolFactor y.Create(Type

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

=== Pre-bind state information ===
LOG: Where-ref bind. Location =
C:\DOCUME~1\C940DEV4\ASPNET~1.C94\LOCALS~1\Temp\ dezaqvlu.dll
LOG: Appbase =
file:///C:/Datas/DotNet/dvptroot/FortisDocumentService/src/CorusFortisDocum

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.FileNotFoundException: Le fichier ou l'assembly nomm?
a8wmmtf-.dll ou l'une de ses dépendances, est introuvable.
Nom du fichier : "a8wmmtf-.dll"
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String
codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean
throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef,
Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence
assemblySecurity)
at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly()
at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly()
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

RPCHelloWorld.int.corus.s940web.RPCCorusFortisDocu mentService..ctor()
in C:\Datas\DotNet\dvptroot\FortisDocumentService\src \RPCHelloWorld\Web
References\int.corus.s940web\Reference.vb:line 36
at RPCHelloWorld.Hello.Button1_Click(Object sender, EventArgs e) in

C:\Datas\DotNet\dvptroot\FortisDocumentService\src \RPCHelloWorld\Hello.vb:li
ne
118>

=== Pre-bind state information ===
LOG: Where-ref bind. Location =
C:\DOCUME~1\cthasin\LOCALS~1\Temp\a8wmmtf-.dll
LOG: Appbase =
C:\Datas\DotNet\dvptroot\FortisDocumentService\s rc\RPCHelloWorld\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

P: n/a
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.******@community.nospam>
References: <OL**************@TK2MSFTNGP14.phx.gbl>
<8f**************@TK2MSFTNGXA02.phx.gbl>
Subject: Re: Big trouble accessing a web service with SoapRpcMEthod :
System.Web.Services.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.public.dotnet.framework.webservices
NNTP-Posting-Host: 213-203-94-66.reverse.9tel.net 213.203.94.66
Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP09.phx.gbl
microsoft.public.dotnet.framework.webservices:1316 2
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

Hi Steven,

I see the client calls in IIS :
22:49:03 127.0.0.1 POST
/CorusFortisDocumentService/CorusFortisDocumentService.asmx 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
GetDocumentListByIdAndDate,
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.******@community.nospam>
Subject: Big trouble accessing a web service with SoapRpcMEthod :
System.Web.Services.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.public.dotnet.framework.webservices
NNTP-Posting-Host: 213-203-94-66.reverse.9tel.net 213.203.94.66
Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP14.phx.gbl
Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.webservices:1314 0
X-Tomcat-NG: microsoft.public.dotnet.framework.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.Services.Protocols.SoapRpcMethod()> _
Public Function HelloWorld() As
<System.Xml.Serialization.SoapElementAttribute("re turn")> 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.Services.Protocols.SoapRpcMethodAttrib ute("http://tempuri.org/Co rusFortisDocumentService/RPCCorusFortisDocumentService/Hello"&
_
"World",
RequestNamespace:="http://tempuri.org/CorusFortisDocumentService/RPCCorusF
o rtisDocumentService",
ResponseNamespace:="http://tempuri.org/CorusFortisDocumentService/RPCCorus
F ortisDocumentService")>
_
Public Function HelloWorld() As
<System.Xml.Serialization.SoapElementAttribute("re turn")> String
Dim results() As Object = Me.Invoke("HelloWorld", 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.Services.Protocols.SoapException' s'est produite dans
system.web.services.dll

Informations supplémentaires :

System.Web.Services.Protocols.SoapException:
Le serveur n'a pas pu traiter la demande. --->
System.IO.FileNotFoundException: Le fichier ou l'assembly nomm?
dezaqvlu.dll ou l'une de ses >dépendances, est introuvable.
Nom du fichier : "dezaqvlu.dll"
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String
codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean
throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef,
Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence
assemblySecurity)
at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly()
at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly()
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.SoapServerType..ctor (Type type,
ProtocolsEnum versionsSupported)
at System.Web.Services.Protocols.SoapServerProtocol.I nitialize()
at System.Web.Services.Protocols.ServerProtocolFactor y.Create(Type

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

=== Pre-bind state information ===
LOG: Where-ref bind. Location =
C:\DOCUME~1\C940DEV4\ASPNET~1.C94\LOCALS~1\Temp\ dezaqvlu.dll
LOG: Appbase =
file:///C:/Datas/DotNet/dvptroot/FortisDocumentService/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.FileNotFoundException: Le fichier ou l'assembly nomm?
a8wmmtf-.dll ou l'une de ses dépendances, est introuvable.
Nom du fichier : "a8wmmtf-.dll"
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String
codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean
throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef,
Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence
assemblySecurity)
at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly()
at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly()
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

RPCHelloWorld.int.corus.s940web.RPCCorusFortisDocu mentService..ctor()
in C:\Datas\DotNet\dvptroot\FortisDocumentService\src \RPCHelloWorld\Web
References\int.corus.s940web\Reference.vb:line 36
at RPCHelloWorld.Hello.Button1_Click(Object sender, EventArgs e) in

C:\Datas\DotNet\dvptroot\FortisDocumentService\src \RPCHelloWorld\Hello.vb:li ne
118>

=== Pre-bind state information ===
LOG: Where-ref bind. Location =
C:\DOCUME~1\cthasin\LOCALS~1\Temp\a8wmmtf-.dll
LOG: Appbase =
C:\Datas\DotNet\dvptroot\FortisDocumentService\s rc\RPCHelloWorld\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 discussion thread is closed

Replies have been disabled for this discussion.