Server Error in '/' Application.

Value cannot be null.
Parameter name: String

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.ArgumentNullException: Value cannot be null.
Parameter name: String

Source Error:


Line 24:         
Line 25: 
Line 26:             int id = int.Parse(Request.QueryString["id"]);
Line 27: 
Line 28:             var Res1 = (from r in db.Galleries

Source File: d:\hostingspaces\cargo1.ir\mehregangasht.ir\Tour.aspx.cs    Line: 26

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: String]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +14542446
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +174
   Tour.Page_Load(Object sender, EventArgs e) in d:\hostingspaces\cargo1.ir\mehregangasht.ir\Tour.aspx.cs:26
   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.4700.0