Red Gate forums :: View topic - Loading a script error
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Load
ANTS Load forum

Loading a script error

Search in ANTS Load forum
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Jump to:  
Author Message
rivstyx



Joined: 10 Aug 2006
Posts: 4

PostPosted: Thu Aug 10, 2006 5:14 pm    Post subject: Loading a script error Reply with quote

Hello everyone,
My company owns the enterprise edition and I have been able to successfully run tests with no problem but when I try to load a saved script I receive the following error...

System.Xml.XmlException: '', hexadecimal value 0x11, is an invalid character. Line 226, position 14.
at System.Xml.XmlScanner.ScanContent()
at System.Xml.XmlTextReader.ParseBeginTagExpandCharEntities()
at System.Xml.XmlTextReader.Read()
at System.Runtime.Serialization.Formatters.Soap.SoapParser.ParseXml()
at System.Runtime.Serialization.Formatters.Soap.SoapParser.Run()
at System.Runtime.Serialization.Formatters.Soap.ObjectReader.Deserialize(HeaderHandler handler, ISerParser serParser)
at System.Runtime.Serialization.Formatters.Soap.SoapFormatter.Deserialize(Stream serializationStream, HeaderHandler handler)
at System.Runtime.Serialization.Formatters.Soap.SoapFormatter.Deserialize(Stream serializationStream)
at RedGate.Ants.TestInformation.Project.LoadFromDisk(String fileName)
at RedGate.Ants.ANTS.Startup.LoadGenericFile(String fileName)
at RedGate.Ants.ANTS.frmMain.OpenFile()

Has anyone seen this before?
_________________
There is a difference between working hard and working smart.
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6667

PostPosted: Thu Aug 10, 2006 5:45 pm    Post subject: Reply with quote

Yes -- If the script recorder encounters a binary file upload (a multipart/form-data post), it decides whether or not to base64-encode the data so that the script doesn't fail validation because it contains binary data. It makes this determination by checking for characters > ASCII 127.

If it encounters a character like this, the whole part of the post data is Base64-encoded so that only 'printable' characters appear in the script.

Trouble is the logic doesn't check for characters < 32, which includes DEL and BEL and various control characters which also can't be printed.

Until we get this fixed, the best that you can do is edit the project (ANTS) file with notepad, look for nonpriintable characters, and replace them.
Back to top
View user's profile Send private message
rivstyx



Joined: 10 Aug 2006
Posts: 4

PostPosted: Thu Aug 10, 2006 6:52 pm    Post subject: Reply with quote

Thanks.
_________________
There is a difference between working hard and working smart.
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies. 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