| Author |
Message |
pdrexel
Joined: 29 Feb 2012 Posts: 2
|
Posted: Wed Feb 29, 2012 12:54 am Post subject: .NET XML Deserializer Not working with Performance Profiler |
|
|
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 |
|
 |
james.billings
Joined: 16 Jun 2010 Posts: 844 Location: My desk.
|
Posted: Thu Mar 01, 2012 3:17 pm Post subject: |
|
|
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 |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6345 Location: Red Gate Software
|
Posted: Thu Mar 01, 2012 3:33 pm Post subject: |
|
|
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. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
pdrexel
Joined: 29 Feb 2012 Posts: 2
|
Posted: Thu Mar 01, 2012 8:30 pm Post subject: |
|
|
| Per James' suggestion, I just e-mailed an VS2008 project example. |
|
| Back to top |
|
 |
james.billings
Joined: 16 Jun 2010 Posts: 844 Location: My desk.
|
Posted: Thu Mar 01, 2012 8:52 pm Post subject: |
|
|
| Thanks - our mailserver stripped it so I'll email you across an FTP link instead. |
|
| Back to top |
|
 |
|
|
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