Ionic.Zip.BadReadException Could not read block Error

936 views
Skip to first unread message

Callistus Schissel

unread,
Jun 23, 2011, 3:38:53 PM6/23/11
to Selenium Users
Calling IWebDriver driver = new FirefoxDriver();
from a Console Application DotNet works fine...

Calling FirefoxDriver from compile Class Library doesn't work. In the
C:\Users\callistus.schissel\AppData\Local\Temp\1 it
creates the webdriver.xpi directory and anoonymous@@@.webdriver-
profile but doesn't unzip any information into the a
weddriver.xpi directory.

I am using version selenium-dotnet-2.0rc3.

Ionic.Zip.BadReadException: Could not read block - no data! (position
0x00000000)
at Ionic.Zip.SharedUtilities._ReadFourBytes(Stream s, String
message)
at Ionic.Zip.SharedUtilities.ReadInt(Stream s)
at Ionic.Zip.ZipFile.VerifyBeginningOfZipFile(Stream s)
at Ionic.Zip.ZipFile.ReadIntoInstance(ZipFile zf)
at Ionic.Zip.ZipFile.Read(Stream zipStream, TextWriter
statusMessageWriter, Encoding encoding, EventHandler`1 readProgress)
at Ionic.Zip.ZipFile.Read(Stream zipStream, TextWriter
statusMessageWriter, Encoding encoding)
at Ionic.Zip.ZipFile.Read(Stream zipStream)
at OpenQA.Selenium.Firefox.FirefoxExtension.Install(String
profileDir)
at OpenQA.Selenium.Firefox.FirefoxProfile.InstallExtensions()
at OpenQA.Selenium.Firefox.FirefoxProfile.WriteToDisk()
at OpenQA.Selenium.Firefox.Internal.ExtensionConnection.Start()
at OpenQA.Selenium.Firefox.FirefoxDriver.StartClient()
at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor
commandExecutor, ICapabilities desiredCapabilities)
at OpenQA.Selenium.Firefox.FirefoxDriver..ctor(FirefoxBinary
binary, FirefoxProfile profile, TimeSpan commandTimeout)
at OpenQA.Selenium.Firefox.FirefoxDriver..ctor(FirefoxBinary
binary, FirefoxProfile profile)
at OpenQA.Selenium.Firefox.FirefoxDriver..ctor()

rawatbo...@gmail.com

unread,
Jul 17, 2017, 9:43:01 PM7/17/17
to Selenium Users, callistus...@gmail.com
Reply all
Reply to author
Forward
0 new messages