| Apu Nahasapeemapetilon 2006-04-21, 7:11 pm |
| Is it possible to create a class that inherits from
Microsoft.Web.Services3.Messaging.SoapClient and run that code from IE?
I've got a C# project that worked properly under VS2005 + WSE2. Then I read
some MS documentation stating that if your using VS2005 you should use WSE3
and NOT WSE2. So I uninstalled WSE2, installed WSE3, changed the references
in my project from Microsoft.Web.Services2 to Microsoft.Web.Services3,
recompiled without error and ran it from a "fat" C# client and everything
still worked okay...
UNTIL I tried to run the code from within IE (which had worked okay using
WSE2). Now I'm get an error stating that: Error Number: '-2146233088' Error
Description: "That assembly does not allow partially trusted callers."
My class in question inherits from
"Microsoft.Web.Services3.Messaging.SoapClient". I'm thinking that the
"Microsoft.Web.Services3" assembly is NOT marked as: [assembly:
AllowPartiallyTrustedCallers]. Where the "Microsoft.Web.Services2" assembly
was marked to allow partially trusted callers.
Is there anyway to get around this or do I need to return to the unsupported
combination of VS2005 + WSE2.
Thank you in advance for your assistance.
|