Community
Vault Forum
Welcome to Autodesk’s Vault Forums. Share your knowledge, ask questions, and explore popular Vault topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

API: trying to catch '300' errors

2 REPLIES 2
Reply
Message 1 of 3
tommam
329 Views, 2 Replies

API: trying to catch '300' errors

I am trying to implement some code to catch the case where the server has invalidated the security ticket and is throwing a "300" error. I implemented some Partial Classes for DocumentService and Item Service, capturing the "Invoke" method and handling the 300 error there. I was able to compile and run the code fine, but when I put a breakpoint in the "Invoke" method and tested, it never hit it.

Then I opened the source code for "ProductstreamItemEditor" and put breakpoints in the same "Invoke" methods, and ran it, but the breakpoints were never hit.

Has anyone gotten this to work? Am I missing something obvious?

Thanks,
Tom
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: tommam

The generated web service code disables breakpoints by default.

Here is how you make the breakpoint active:
1. Use the "Show all files" option in your Solution Explorer.
2. Expand out the service you want to debug and find the Reference.cs or
Reference.vb file.
3. Find the declaration of the service class.
4. Comment out the System.Diagnostics.DebuggerStepThroughAttribute
attribute.
5. Recompile and run. The Invoke breakpoint should now be enabled.

--
-- Doug Redmond
Software Engineer, Autodesk Inc.
http://justonesandzeros.typepad.com/
Message 3 of 3
tommam
in reply to: tommam

Worked great! Thanks!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report