Red Gate forums :: View topic - .NET XML Deserializer Not working with Performance Profiler
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Performance Profiler 7
ANTS Performance Profiler 7 forum

.NET XML Deserializer Not working with Performance Profiler

Search in ANTS Performance Profiler 7 forum
Post new topic   Reply to topic
Jump to:  
Author Message
pdrexel



Joined: 29 Feb 2012
Posts: 2

PostPosted: Wed Feb 29, 2012 12:54 am    Post subject: .NET XML Deserializer Not working with Performance Profiler Reply with quote

I have an application that uses the .NET XML Serializer to deserialize a couple objects. It works fine standalone or within the Visual Studio debugger, but when I use ANTS Profiler, I get an exception indicating "There is an error in XML document (0, 0)"

I'm running

Windows 7 64-bit
Visual Studio 2008
.NET 2.0
ANTS Performance Profiler Evaluation Version
Back to top
View user's profile Send private message
james.billings



Joined: 16 Jun 2010
Posts: 1144
Location: My desk.

PostPosted: Thu Mar 01, 2012 3:17 pm    Post subject: Reply with quote

Thanks for your post.
This isn't a problem I've seen previously- without knowing a little more about your application it's not really possible to say why the exception would occur. Is it possible for you to send some code (either your existing app or a small sample that exhibits the same problem) to us? We've got a ticket open for you so you can mail us directly at support@red-gate.com quoting F0057937 in the subject line.
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6649

PostPosted: Thu Mar 01, 2012 3:33 pm    Post subject: Reply with quote

It may be something to do with the application's working directory - that's typically set in the environment but as ANTS adds stuff to the application environment to allow profiling, sometimes it gets modified. If the XML file is being loaded from Environment.CurrentDirectory, then you may want to set the working directory in the settings of ANTS Profiler.
Back to top
View user's profile Send private message
pdrexel



Joined: 29 Feb 2012
Posts: 2

PostPosted: Thu Mar 01, 2012 8:30 pm    Post subject: Reply with quote

Per James' suggestion, I just e-mailed an VS2008 project example.
Back to top
View user's profile Send private message
james.billings



Joined: 16 Jun 2010
Posts: 1144
Location: My desk.

PostPosted: Thu Mar 01, 2012 8:52 pm    Post subject: Reply with quote

Thanks - our mailserver stripped it so I'll email you across an FTP link instead.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group