Red Gate forums :: View topic - Line is too long???
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

Line is too long???

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
AdamL



Joined: 24 Oct 2006
Posts: 10

PostPosted: Wed Nov 15, 2006 9:28 pm    Post subject: Line is too long??? Reply with quote

I have recorded about 15 Scripts the first error I recieve when running my project is that line x is too long. I find this very funny considering Ants Load was the program to generate the script. Is this something that I am really going to have to manually go though every single line that is too long and change.

There has to be a better way I cant believe that this issue was not taken into consideration during product creation ???

Please Help Question
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6577

PostPosted: Thu Nov 16, 2006 12:43 pm    Post subject: Reply with quote

Hi Adam,

This could be happening in the event that you had recorded a file upload. The scripting method for handling the multipart/form-data posts was done as a hotfix and hasn't been sufficiently tested. If you script a file upload and the file is a few MB, it is Base64 encoded and added to the script. This is not an ideal solution, as it should really add the file as a resource in the project and read it with a resource reader to prevent this. But development time allowed didn't permit us to implement this way.

What you can probably do is locate this line, hit RETURN on it, and append the next line:
Quote:

"abcdef016782476BDjjshajsaasdkjs\d..."
-becomes -
abcdef016782476BD" & _
"jjshajsaasdkjs\d...
Back to top
View user's profile Send private message
AdamL



Joined: 24 Oct 2006
Posts: 10

PostPosted: Thu Nov 16, 2006 1:56 pm    Post subject: Reply with quote

Ok thank you this seems to work, I just wish that this issue was handled automatically by the program generating the scripts in this case Ants Load. But this solution seems to work fine.

Thanks Again,

AdamL
Back to top
View user's profile Send private message
AdamL



Joined: 24 Oct 2006
Posts: 10

PostPosted: Fri Nov 17, 2006 3:31 pm    Post subject: Reply with quote

ANSWER:

This is the correct method sorry Brian the above does not work Rolling Eyes


"asdfasdfasdfasdfasdfasf"

becomes

"asdfasdfasdf" _
+ "asdfasdfasf"
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6577

PostPosted: Fri Nov 17, 2006 4:22 pm    Post subject: Reply with quote

Hi Adam,

It should work either way in VB .NET. But maybe the continuation _ and then the ampersand on the next line works.
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