title: How to set up selenium 3.0, getting error "The geckodriver.exe file does not exist..." in c#
body: <p>Updated selenium in visual studio to 3.0 and firefox to 47.0 and now I'm getting this  error when I try to use local webdriver mode:
  The geckodriver.exe file does not exist in the current directory or in a directory on the PATH environment variable.</p>
  
  <p>When I'm using remote mode (seleniumhub), it works fine even if it uses firefox 45.0 version.</p>
  
  <p>Tried to search for some examples, but did not found anything for c#, only for java and still could not make it work.</p>
  
  <p>my webdriver setup:</p>
  
  <pre><code> switch (ConfigurationManager.AppSettings["WebDriverMode"].ToLower())
                  {
                      case "local":
                          switch (ConfigurationManager.AppSettings["WebDriverBrowserCapabilities"].ToLower())
                          {
                              case "firefox":
                                  driver = new AdvancedFirefoxDriver();
                                  break;
                              case "ie":
                                  driver = new AdvancedInternetExplorerDriver();
                                  break;
                              case "chrome":
                                  driver = new AdvancedChromeDriver();
                                  break;
                              default:
                                  throw new NotImplementedException(string.Format("WebDriverBrowserCapabilities of \"{0}\" is not implemented for {1} mode", ConfigurationManager.AppSettings["WebDriverBrowserCapabilities"].ToLower(), ConfigurationManager.AppSettings["WebDriverMode"].ToLower()));
                          }
  
                          break;
                      case "remote":
                          var huburl = new Uri(ConfigurationManager.AppSettings["SeleniumHubAddress"]);
                          DesiredCapabilities capabilities;
                          switch (ConfigurationManager.AppSettings["WebDriverBrowserCapabilities"].ToLower())
                          {
                              case "firefox":
                                  capabilities = DesiredCapabilities.Firefox();
                                  break;
                              case "ie":
                                  capabilities = DesiredCapabilities.InternetExplorer();
                                  break;
                              case "chrome":
                                  capabilities = DesiredCapabilities.Chrome();
                                  break;
                              default:
                                  throw new NotImplementedException(string.Format("WebDriverBrowserCapabilities of \"{0}\" is not implemented for {1} mode", ConfigurationManager.AppSettings["WebDriverBrowserCapabilities"].ToLower(), ConfigurationManager.AppSettings["WebDriverMode"].ToLower()));
                          }
  
                          capabilities.IsJavaScriptEnabled = true;
                          driver = new AdvancedRemoteWebDriver(huburl, capabilities);
                          break;
                      default:
                          throw new NotImplementedException();
                  }
  </code></pre>