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 386:    public string Tema(string idRevenda)
Line 387:    {
Line 388:        int idCliente = int.Parse(idRevenda);
Line 389:
Line 390:        Template template = new Template(idCliente);

Source File: c:\inetpub\wwwroot\sys.autogerenciador.com.br\App_Code\Generico.cs    Line: 388

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: String]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +14783912
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +172
   Generico.Tema(String idRevenda) in c:\inetpub\wwwroot\sys.autogerenciador.com.br\App_Code\Generico.cs:388
   v2SitePersonalizado_Layout03_Links.Page_PreInit(Object sender, EventArgs e) in c:\inetpub\wwwroot\sys.autogerenciador.com.br\09\links.aspx.cs:16
   System.Web.UI.Page.OnPreInit(EventArgs e) +11860100
   System.Web.UI.Page.PerformPreInit() +46
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1110


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