Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
6
Reply
500 internal server error at GetResponse()
Bharathi Raja
Jan 6 2018 2:28 AM
177
Reply
this line to error
try
{
file = @
""
+ drives[drive_i] +
"fsmanager_good_"
+ fileto +
".csv"
;
string
json_off =
new
WebClient().DownloadString(file);
byte
[] bytes = Encoding.Default.GetBytes(json_off);
json_off = Encoding.UTF8.GetString(bytes);
//json_off = Uri.EscapeDataString(json_off);
json_off = json_off.Replace(
"Cash & Card"
,
"CashandCard"
);
//MessageBox.Show(upurl + "fileupload.php?ontbl=" + Uri.EscapeUriString(json_off));
string
json_on =
new
WebClient().DownloadString(upurl +
"fileupload.php?ontbl="
+ Uri.EscapeUriString(json_off));
if
(File.Exists(file))
{
File.Delete(file);
}
err = 1;
}
catch
{
// MessageBox.Show("Please connect internet.", "Online Alert", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
6
)
Next Recommended Forum
How to Crystal Report In Wamp Sever
Kill Explorer through programming