Cannot use a leading .. to exit above the top directory asp.net c# in this post we will solve this error Cannot use a leading .. to exit above the top directory asp.net c# with help of visual studio Cannot use a leading .. to exit above the top directory asp.net c# mo code <link rel="stylesheet" href="../css/style.css" type="text/css" /> final code remove ../ from href <link rel="stylesheet" href="css/style.css" type="text/css" /> i hope that your problem is solved