Re: problem invoking web service

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: mithu (mithu_at_discussions.microsoft.com)
Date: 08/25/04


Date: Wed, 25 Aug 2004 10:19:06 -0700

Thanks Dino.

I found out the problem is with one of my class. But I still dont understand
why it was breaking. I have a class say A. Class B is inherting from A.
Class C inherits from B(A->B->C). In class C I shadowed one of the property
to make it read only. For some reason , when I call the webservice it
breaks. When I directly calls my asmx, it works fine. But when I call the
webservice thru proxy, it just gave me the same error. I dont know why I
shouldnt declare a read only property which overrides by parent class. Any
idea?

Thanks

"Dino Chiesa [Microsoft]" wrote:

> This problem could be caused by at least 2 and possibly more, reasons.
>
> reason 1: permissions error
> reason 2: a problem in the XmlSerializer. Sometimes it will choke on
> particular schema, for example 2-dimensional arrays is one area of trouble.
>
> Google around and you will see some history on it.
>
> Chris Sells has a command-line tool that helps diagnosing problems with the
> ..NET XmlSerializer .
>
> http://www.sellsbrothers.com/tools/#XmlSerializerPreCompiler
>
> The tool will go through the same steps as the XmlSerializer to reflect over
> the classes you need to serialize or deserialize, compiles the generated
> code and writes out the errors that occured during the compilation.
>
> This helps when the generated source does not compile, when you get an error
> like:
> System.IO.FileNotFoundException: File or assembly name abcdef.dll, or one of
> its dependencies, was not found. File name: "abcdef.dll"
>
> I don't know exactly what you mean when you say, "I am able to invoke the
> webservice directly, but whenever I invoke my proxy it just gives me an
> error".
>
> -Dino
>
>
> "mithu" <mithu@discussions.microsoft.com> wrote in message
> news:4A5E91F8-0ABC-4257-BB25-D54EA004AC72@microsoft.com...
> > I am trying to call my webservice. I get the follwoing error. I am able to
> > invoke the webservice directly. But whenever I invoke thru my proxy, it
> > just
> > gives me an error. It is a webservice in C#. Would appriciate some help.
> >
> >
> > [ServiceAgentException: SERVICE AGENT EXCEPTION:
> > System.Web.Services.Protocols.SoapException: Server was unable to process
> > request. ---> System.IO.FileNotFoundException: File or assembly name
> > yg6vyf62.dll, or one of its dependencies, was not found.
> > File name: "yg6vyf62.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.ServerProtocol.SetCo ntext(Type type,
> > HttpContext context, HttpRequest request, HttpResponse response)
> > 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\SD-9PW~1\ASPNET\LOCALS~1\Temp\yg6vyf62.dll
> > LOG: Appbase =
> > file:///C:/mysandbox/DotNet/Service/Diary/RLI.Service.Diary.ServiceInterface
> > 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/SD-9PW~1/ASPNET/LOCALS~1/Temp/yg6vyf62.dll.
> >
> >
> > I am able to invoke my asmx directly. Any help will be appriciated.
> >
> > Thanks
> >
>
>
>



Relevant Pages

  • problem invoking web service
    ... I am trying to call my webservice. ... But whenever I invoke thru my proxy, ... Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, ... HttpContext context, HttpRequest request, HttpResponse response, Boolean& ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Weird erro while debugging WS in VS2005
    ... So the problem occurs randomly and also when not under debugging mode. ... for the webservice, is it possible to further simplify the webservice such ... Microsoft MSDN Online Support Lead ... codeBase, Evidence assemblySecurity, Assembly locationHint, ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Weird erro while debugging WS in VS2005
    ... So the problem occurs randomly and also when not under debugging mode. ... for the webservice, is it possible to further simplify the webservice such ... Microsoft MSDN Online Support Lead ... codeBase, Evidence assemblySecurity, Assembly locationHint, ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Weird erro while debugging WS in VS2005
    ... Yes ASP.NET 2.0 Webservice only no ASP.NET pages, ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ... codeBase, Evidence assemblySecurity, Assembly locationHint, ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: How do make the best colorpicker option ... hopefully with AJAX
    ... Since I dont have the SesssionID or anything at the webservice? ... and it works, but since I dont have access to the Session object in the webservice, I can't do any authentication. ... so I may have a string like this ...
    (microsoft.public.dotnet.framework.aspnet)