Hack Forums
[C#] How to fix this error ? - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C#] How to fix this error ? (/showthread.php?tid=6152590)

Pages: Pages 1 2


How to fix this error ? - Transporter007 - May 6, 2021

Hey guys,

I have an applicantion made by owner and he is not online due to several reason. Today I use his application and having this error.

Anyone know how to fix it ?

[Image: a427836e95.png]

More error details: https://privnote.com/3kAaHgAy#kDtw2t5ZU

Regards.


RE: How to fix this error ? - hazbot77 - May 7, 2021

(May 6, 2021 10:28 AM)Transporter007 Wrote:  Hey guys,

I have an applicantion made by owner and he is not online due to several reason. Today I use his application and having this error.

Anyone know how to fix it ?

[Image: a427836e95.png]

More error details: https://privnote.com/3kAaHgAy#kDtw2t5ZU

Regards.

Are you actually able to edit the source code? Or do you only have the application?


RE: How to fix this error ? - siddy357 - May 7, 2021

(May 6, 2021 10:28 AM)Transporter007 Wrote:  Hey guys,

I have an applicantion made by owner and he is not online due to several reason. Today I use his application and having this error.

Anyone know how to fix it ?

[Image: a427836e95.png]

More error details: https://privnote.com/3kAaHgAy#kDtw2t5ZU

Regards.

do you have the editing rights for the application and the complete code of it?


RE: How to fix this error ? - Transporter007 - May 7, 2021

(May 7, 2021 01:50 AM)hazbot77 Wrote:  Are you actually able to edit the source code? Or do you only have the application?

I have only application not source code.

(May 7, 2021 02:05 AM)siddy357 Wrote:  do you have the editing rights for the application and the complete code of it?

Nope, only have the app.


RE: How to fix this error ? - siddy357 - May 7, 2021

(May 7, 2021 05:13 AM)Transporter007 Wrote:  I have only application not source code.


Nope, only have the app.

without the code it gets kind of hard to make any changes to the app.


RE: How to fix this error ? - Transporter007 - May 7, 2021

(May 7, 2021 05:19 AM)siddy357 Wrote:  without the code it gets kind of hard to make any changes to the app.

Its Net Framework error while my Laptop Net Framework is working great with other apps.


RE: How to fix this error ? - hazbot77 - May 7, 2021

If you do not have access to the code, you can't handle/catch this exception.


RE: How to fix this error ? - PureCoder - May 7, 2021

(May 6, 2021 10:28 AM)Transporter007 Wrote:  Hey guys,

I have an applicantion made by owner and he is not online due to several reason. Today I use his application and having this error.

Anyone know how to fix it ?

[Image: a427836e95.png]

More error details: https://privnote.com/3kAaHgAy#kDtw2t5ZU

Regards.

I sent you a PM.


RE: How to fix this error ? - Driz - May 8, 2021

It's not a net framework error per se, its an unhandled exception arising out of a condition that does not return the value as it should. Your query is supposed to return a number as a string which is then converted to a double. This isn't happening here, probably because the site it was querying has updated their HTML code.


RE: How to fix this error ? - Transporter007 - May 8, 2021

(May 7, 2021 04:28 PM)PureCoder Wrote:  I sent you a PM.

Replied to your pm.


RE: How to fix this error ? - gigajew - May 8, 2021

What app is it? Tell us so we can help


RE: How to fix this error ? - Shadow_Cloud - May 9, 2021

There are two possible ways I can think of going about this if reaching out to owner isn't a possibility

1) See if you can decompile the project and debug/fix the issue.
2) You can run a pcap and find the call being made out, you could add a hostfile entry to repoint the request to a machine you control and simply spit back the answer you need.

Fair warning though, this feels like the tip of the iceberg, I imagine this is due to you receiving an error from a server rather than actual values, as per Driz before. If that's the case, it might be easier to just find a replacement app to achieve the same goal.


RE: How to fix this error ? - matias! - Jun 12, 2021

You can try debugging it or if you have the source find out yourself.


RE: How to fix this error ? - puli222 - Jun 13, 2021

ILSpy website (https://github.com/icsharpcode/ILSpy/):


RE: How to fix this error ? - Joseph Ducreux - Jun 13, 2021

where the error is occouring insert the following, this will allow error exception handling and will let you go forward:

Code
try
{
//your code
}
  catch (Exception ex)
                {
                  MessageBox.Show(ex.Message);
                }

to fix the error convert string to double

https://stackoverflow.com/questions/11399439/converting-string-to-double-in-c-sharp