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 / July 2004

Tip: Looking for answers? Try searching our database.

WSE574: The maxTokens configuration limit was exceeded?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
schneider - 26 Jul 2004 20:24 GMT
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
about the error and where it originated in the code.
Lucien - 26 Jul 2004 21:53 GMT
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>

> Anyone know whats causing this, and how to fix it?
>
[quoted text clipped - 10 lines]
> stack trace --- at
> Microsoft.Web.Services2.Security.Security.LoadXml(XmlElement element) at

Microsoft.Web.Services2.Security.SecurityInputFilter.ProcessMessage(SoapEnve
lope
> envelope) at
> Microsoft.Web.Services2.Pipeline.ProcessInputMessage(SoapEnvelope
> envelope) at

Microsoft.Web.Services2.WebServicesExtension.BeforeDeserializeServer(SoapSer
verMessage
> message)
> Description: An unhandled exception occurred during the execution of the
> current web request. Please review the stack trace for more information
> about the error and where it originated in the code.
schneider - 26 Jul 2004 23:42 GMT
> 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:
[quoted text clipped - 37 lines]
>>current web request. Please review the stack trace for more information
>>about the error and where it originated in the code.

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.....

Schneider
Lucien - 27 Jul 2004 18:02 GMT
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.

> > 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:
[quoted text clipped - 22 lines]
> >>stack trace --- at
> >>Microsoft.Web.Services2.Security.Security.LoadXml(XmlElement element) at

Microsoft.Web.Services2.Security.SecurityInputFilter.ProcessMessage(SoapEnve
> > lope
> >
> >>envelope) at
> >>Microsoft.Web.Services2.Pipeline.ProcessInputMessage(SoapEnvelope
> >>envelope) at

Microsoft.Web.Services2.WebServicesExtension.BeforeDeserializeServer(SoapSer
> > verMessage
> >
[quoted text clipped - 18 lines]
>
> Schneider

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.