Server Error in '/' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0136: A local or parameter named 'urlLink' cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter

Source Error:


Line 150:                                    else
Line 151:                                    {
Line 152:                                        string urlLink = Session["mycharacterName"].ToString().ToLower();
Line 153:                                        urlLink = urlLink.Replace(" ", "-");
Line 154:                                        urlLink = urlLink.Replace("'", "-");

Source File: C:\HostingSpaces\cloudeve\evepandora\Views\faction.cshtml    Line: 152







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