all groups > dotnet web services enhancements > july 2004 >
You're in the

dotnet web services enhancements

group:

WSE574: The maxTokens configuration limit was exceeded?


Re: WSE574: The maxTokens configuration limit was exceeded? Lucien
7/26/2004 1:53:59 PM
dotnet web services enhancements:
See <limits> in doc. By default there's a limit on number of tokens in a
message. To override this change config. Example from doc:

<microsoft.web.services2>
<security>
<limits
maxSignedItems="10"
maxEncryptedItems="4"
maxTokens="2" />
</security>
</microsoft.web.services2>


[quoted text, click to view]
Microsoft.Web.Services2.Security.SecurityInputFilter.ProcessMessage(SoapEnve
lope
[quoted text, click to view]
Microsoft.Web.Services2.WebServicesExtension.BeforeDeserializeServer(SoapSer
verMessage
[quoted text, click to view]

WSE574: The maxTokens configuration limit was exceeded? schneider
7/26/2004 2:24:53 PM
Anyone know whats causing this, and how to fix it?

Hey MS What good is an error code if you can't find out what it means or
how to deal with it?

Thanks,

Schneider


Microsoft.Web.Services2.Security.SecurityFault: The security token could
not be authenticated or authorized ---> System.Exception: WSE574: The
maxTokens configuration limit was exceeded. --- End of inner exception
stack trace --- at
Microsoft.Web.Services2.Security.Security.LoadXml(XmlElement element) at
Microsoft.Web.Services2.Security.SecurityInputFilter.ProcessMessage(SoapEnvelope
envelope) at
Microsoft.Web.Services2.Pipeline.ProcessInputMessage(SoapEnvelope
envelope) at
Microsoft.Web.Services2.WebServicesExtension.BeforeDeserializeServer(SoapServerMessage
message)
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
Re: WSE574: The maxTokens configuration limit was exceeded? schneider
7/26/2004 5:42:25 PM
[quoted text, click to view]

Ok, I can set this to -1 and it's ignored.

But if this does happen I must restart IIS, what good is that? Shouldn't
it just ignore the IP request?

I tried to acess the site from another machine and the site would Not
work....


Also the docs speak as if you set how many tokens can bi in the message,
yet I only have one. I am however loging in with the same user/pass
several time quickly while I develope.

Any clarification would help.....

Re: WSE574: The maxTokens configuration limit was exceeded? Lucien
7/27/2004 10:02:35 AM
Is the exception on the server side? You don't need to recycle IIS when you
change web.config. But I didn't quite get the 'restart' issue that happens
(after the exception?).

Also are you sure you only have 1 security token? Can you capture the
message and look at the number of tokens you have?

Last by default detailedErrors is turned off for security reasons. So you
may not get a nice detailed error by default for obvious reasons.


[quoted text, click to view]

AddThis Social Bookmark Button