Yeah, the class library generated a nice wse3policyCache.config. I tried
copying that and the MyLibrary.dll.config file into the folder with the
client but no luck.
It looks like the actual client exe is the one that parses the config files
and loads policies, so if that app doesn't have wse set on it, it won't parse
and wse3 config files.
I guess if what I'm trying to do is novel, then it's not an ordinary
request. I was thinking maybe I was just missing something simple.
We're building a library that will be used by another application as a "plug
in". Meaning we don't have control over the client exe and can't apply wse
to it. So I guess we'll have to create a console app that has wse on it and
then have our library shell out and call that and then..........ugh.
"RYoung" wrote:
Is the wse3 config located with the client? I understand what you want to
achieve, and think it would be novel if you get it working. I'm assuming
that when you made the class library, a wse3policyCache.config was generated
in the project.
Ron
"Steve" <St***@discussions.microsoft.comwrote in message
news:FB**********************************@microsof t.com...
I want to call my web service from a class library and have that library
handle all the wse stuff, so that applications using that library don't
have
to worry about it.
Is that possible?
I've tried by creating and applying the correct policy to a class library
that I created. The application project doesn't have any wse settings (no
policy,etc) on it. Then I try calling the class library method from the
application.
When the code steps into the client library and tries to set the policy on
the service, it complains that it can't find the policy. Even though the
policy is clearly in the wse3policyCache.config file.
If I then go add the same policy to the application itself, then it works.
It's like the wse client stuff has to be applied to the calling
application
itself and not some component it might be using.
Any ideas?