472,985 Members | 2,623 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,985 software developers and data experts.

Big trouble accessing a web service with SoapRpcMEthod : System.Web.Services.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.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
3 4902
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
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...
3
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....
0
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...
2
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...
0
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...
2
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...
5
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...
8
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
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...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.