Server Error in '/' Application.

BlueprintFactory.ImportBlueprintSections ExMessage: 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.ApplicationException: BlueprintFactory.ImportBlueprintSections ExMessage: Input string was not in a correct format.

Source Error:


Line 17:         int chainID = int.Parse(ConfigProvider.AppSettings("ChainID"));
Line 18:         int hotelID = int.Parse(ConfigProvider.AppSettings("HotelID"));
Line 19:         Blueprint blueprint = HotelAgent.GetBlueprintFromFile(ConfigProvider.AppSettings("DefaultBlueprintID"), chainID, hotelID);
Line 20:         AgentBase agent = new HotelAgent(HttpContext.Current, blueprint);
Line 21:         agent.HotelInfo = new ChainHotelInfo(chainID, hotelID);

Source File: c:\inetpub\wwwroot\OH\Data\C00705\H11234\DEFAULT.aspx    Line: 19

Stack Trace:


[ApplicationException: BlueprintFactory.ImportBlueprintSections ExMessage: Input string was not in a correct format.]
   OHwhmServices.BlueprintFactory.GetBlueprint(XDocument xDoc, Boolean IsImported) +2144
   OHwhmServices.BlueprintFactory.GetBlueprint(String blueprintURI, Boolean IsImported) +685
   OHwhmServices.BlueprintFactory.GetBlueprint(String blueprintURI) +59
   OHwhmServices.BasicAgent.GetBlueprintFromFile(String fileName, Int32 chainID, Int32 hotelID, String connectStringKey) +303
   OHwhmServices.BasicAgent.GetBlueprintFromFile(String fileName, Int32 chainID, Int32 hotelID) +75
   ASP.default_aspx.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\OH\Data\C00705\H11234\DEFAULT.aspx:19
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4676.0