Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / December 2004

Tip: Looking for answers? Try searching our database.

WSE2.0 SP2 Unknown Issue?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hernan de Lahitte - 07 Dec 2004 13:53 GMT
I have these policy endpoints defined:
<endpoint uri="http://localhost/bbb/a1/service.asmx">
   ... all endpint definition
</endpoint>

<endpoint uri="http://localhost/bbb/a2/service.asmx">
   ... all endpint definition
</endpoint>

When I run this under SP1, everything goes fine.
With SP2 it seems unable to distinguish both endpoints uri.

Here is the stack trace:

System.Web.Services.Protocols.SoapHeaderException:
System.Web.Services.Protocols.SoapHeaderException: Server unavailable,
please try later --->
Microsoft.Web.Services2.Policy.PolicyDocumentException: WSE453: An error was
encountered loading or parsing the policy document in the following file:
c:/webservice/policycache.config. ---> System.ArgumentException: An entry
with the same key already exists. at
System.Collections.Specialized.ListDictionary.Add(Object key, Object value)
at System.Collections.Specialized.HybridDictionary.Add(Object key, Object
value) at Microsoft.Web.Services2.Policy.PolicyMappings.LoadXml(XmlElement
element) at
Microsoft.Web.Services2.Policy.PolicyDocument.LoadXml(IDictionary table,
ArrayList expressions, PolicyMappings policyMaps, XmlElement element) at
Microsoft.Web.Services2.Policy.PolicyDocument.LoadDocumentFromDisk() --- End
of inner exception stack trace --- at
Microsoft.Web.Services2.Policy.PolicyDocument.LoadDocumentFromDisk() at
Microsoft.Web.Services2.Policy.PolicyDocument.Initialize() at
Microsoft.Web.Services2.Policy.PolicyDocument.GetPolicyMaps() at
Microsoft.Web.Services2.Policy.PolicyDocument.GetMappedPolicyExpression(Uri
to, String requestAction) at
Microsoft.Web.Services2.Policy.PolicyManager.Lookup(Uri to, String action)
at Microsoft.Web.Services2.Policy.SimplePolicyVerifier.Verify(SoapEnvelope
message) at Microsoft.Web.Services2.Policy.PolicyManager.Verify(SoapEnvelope
message) at
Microsoft.Web.Services2.Policy.PolicyVerificationInputFilter.ProcessMessage(SoapEnvelope
envelope) at
Microsoft.Web.Services2.Pipeline.ProcessInputMessage(SoapEnvelope envelope)
at
Microsoft.Web.Services2.WebServicesExtension.BeforeDeserializeServer(SoapServerMessage
message) --- End of inner exception stack trace ---

Signature

Hernan de Lahitte
http://weblogs.asp.net/hernandl

Hernan de Lahitte - 16 Dec 2004 16:03 GMT
I got the answer.
WSE won?t let you have two different endpoints mapped to the same physical
location. This is because of a canonicalization process that the endpoint
uri suffers when WSI parse the policy file.

Signature

Hernan de Lahitte
http://weblogs.asp.net/hernandl
http://www.lagash.com/english/index.html

"An expert is one who knows more and more about less and less until he knows
absolutely everything about nothing".

>I have these policy endpoints defined:
> <endpoint uri="http://localhost/bbb/a1/service.asmx">
[quoted text clipped - 42 lines]
> Microsoft.Web.Services2.WebServicesExtension.BeforeDeserializeServer(SoapServerMessage
> message) --- End of inner exception stack trace ---

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.