VS 2003

Posted on 2011-10-21
Last Modified: 2012-06-22
Problem:  Hosted website has changed URL of websvc.   There are no changes to the parameters.  
I have a VS2005 windows app that works fine with the new URL.  I have a VS2003 web app that crashes with the new URL.   The production web app runs fine on the old URL.   If I take the source, modify the URL, it crashes with the  error shown below..    
If I change the URL back to where it was, it runs fine after the build.

I do have VS2010, but right now, I just need to get the VS2003 running.   If all I changed was the URL at the following places, why would be be getting a crash?


When I build the code, I use Rebuild Solution.

[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +2782219
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +112
   System.Int32.Parse(String s) +20
   pqtmx._default.Verify_Courses() in C:\Inetpub\wwwroot\PQTMX\default.aspx.cs:92
   pqtmx._default.Page_Load(Object sender, EventArgs e) in C:\Inetpub\wwwroot\PQTMX\default.aspx.cs:71
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436


Question by:JonDavid
    1 Comment
    LVL 28

    Accepted Solution

    Instead of changing the URL in those mappings, you should be able to just update it in your config file. Point that URL to the new location and everything *should work just fine.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
    The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API ( has made its way into the popular lexicon of the English language.  A few years ago, …
    The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
    This video is a brief demonstration on how to use security groups and Network Access Control Lists (ACLs) in Amazon Web Services.  Security groups and Network ACLs are mechanisms you can use in AWS to control network traffic.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now