I want to know which application installed this wpcap.dll. I can see it in some PCs in location c:\Windows\System32\Npcap and in others in c:\Windows\System32.
When I run my code (which has DllImport("wpcap.dll") ) in the first PC, this exception is thrown whereas it is not thrown in second PC.
Also, when I manually add the dll to first PC also, the same exception is thrown. Can someone help me with this?
I want to know which application installed this wpcap.dll
Google Said it is WinPcap
https://ru.wikipedia.org/wiki/Pcap
You can try this:
run cmd and execute command:
regsvr32 wpcap.dll
Related
I keep getting this error when trying to kick off Appium in C#:
Result StackTrace:
at OpenQA.Selenium.Appium.Service.AppiumServiceBuilder.get_InstalledNodeInCurrentFileSystem()
at OpenQA.Selenium.Appium.Service.AppiumServiceBuilder.CheckAppiumJS()
at OpenQA.Selenium.Appium.Service.AppiumServiceBuilder.get_Args()
at OpenQA.Selenium.Appium.Service.AppiumServiceBuilder.Build()
at FSI.Mobile.SD.Test.UI.Android.ServerTests.StartingAppLocallyTest.CheckThatServiseIsNotRunWhenTheCreatingOfANewSessionIsFailed() in C:\Users\jgooding\Source\Repos\FSI.Mobile.SD.Test\FSI.Mobile.SD.Test.UI.Android\ServerTests\StartingAppLocallyTest.cs:line 156
Result Message: OpenQA.Selenium.Appium.Service.Exceptions.InvalidServerInstanceException : Invalid server instance exception has occurred: There is no installed nodes! Please install node via NPM (https://www.npmjs.com/package/appium#using-node-js) or download and install Appium app (http://appium.io/downloads.html)
I've tried installing the appium node all over the place, but nothing seems to work. Can someone tell me exactly where to put the node so that my code can find it? I don't know the default location it's looking to find it.
node is installed and running (this is how I installed appium).
node test from cmd
Ok, so I re-installed nodejs into the default location (it was on my Desktop before), and then updated this line to reflect that change:
Environment.SetEnvironmentVariable(AppiumServiceConstants.NodeBinaryPath, #"C:\Program Files\nodejs\node.exe");
This seemed to fix the "no installed nodes" error.
I am working on an application for Motorola MC92NO. When I run the application, it works up until when you click on something that involves using the Barcode function. When you click on something that uses barcode functions, I get the following error message:
Error
An unexpected error has occurred in InventoryTracking.exe.
Select quit and then restart this program, or select details for more information.
File or Assembly name 'Symbol.Barcode2, Version = 2.9.0.0, Culture = neutral, PublicKeyToken = 6asdasdasfasdfasdf', or one of its dependencies, was not found.
When I select details, I get
TypeLoadException
And the same message as earlier.
I am very new to this and have been stumped about this issue.
It is important to note that, this device I am using is an IT test device and has been played around with a lot. For instance, I had a SQLServerException issue before this and that was because this device was missing some SQL .cab files. I got the .cab files from my boss and installed SQL Server and that problem is gone now.
So, do you guys think I am probably missing the barcode program as well? When I press the trigger, I see the laser beam. So I don't know.
Any help would be appreciated.
Thank you
Ensure that you copy the Symbol.Xxx libraries to your device, in the folder the application is installed.
These libraries are needed to translate .NET requests to the native barcode libraries.
Description
When launching any Console Application, the code stops running immediately on an AccessViolationException (Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt). More info included in the next section.
Technical Symptoms
The Call Stack only contains external code:
Exception:Thrown: "The message filter indicated that the application is busy. >(Exception from HRESULT: 0x8001010A (RPC_E_SERVERCALL_RETRYLATER))" (System.Runtime.InteropServices.COMException)
A System.Runtime.InteropServices.COMException was thrown: "The message filter indicated that the application is busy. (Exception from HRESULT: 0x8001010A (RPC_E_SERVERCALL_RETRYLATER))"
Time: 12/10/2015 10:59:55 AM
Thread:vshost.NotifyLoad[15344]
I created a new Console Application, containing only Console.WriteLine("Hello world!");
Running the new Hello world app results in the same exception and an identical
call stack.
Background
I suspect this has nothing to do with the issue, as I will explain, but I feel it is important to answer the obvious question, "what were you doing when the issue happend?" The last change I made was adding an extension to my Selenium Driver to hotkey logout from an application:
public static void logout(this IWebDriver Driver)
{
Driver.FindElement(By.TagName("body")).Click();
new Actions(Driver)
.SendKeys(Keys.Control + Keys.Shift + "x")
.Perform();
}
I also made a change in my App.Config file for one of my projects, but reverting this had no impact either.
Removing this code (the Driver extension and/or the App.Config change) does not resolve this issue. Retrieving a previous check-in does not resolve the issue. I am the only person currently working on this solution.
Discoveries
As mentioned, this is happening for an empty Console Application. Windows Form Applications launch fine. Unit Test Projects launch fine as well.
Research
I've spent hours looking into this. It seems like every similar issue I have looked into is pertinent to debugging only or a .NET version. For me, the issue occurs with a Release as well. Additionally, I have been using .NET 4.5 without any issues or changes on that front. I can't find any articles that seem worth posting, but I might be overlooking something.
Visual Studio Info
Microsoft Visual Studio Ultimate 2013
Version 12.0.30501.00 Update 2
.NET Version 4.6.00081 (just noticed it says 4.5 in my project properties, though)
Running as Administrator
Feedback
When Running from devenv.exe /SafeMode, Visual Studio loaded with:
An exception was encountered while constructing the content of this frame. This information is also logged in "C:\Users\UserName\AppData\Roaming\Microsoft\VisualStudio\12.0\ActivityLog.xml".
Exception details:
System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
at Microsoft.VisualStudio.Shell.Interop.IVsShell5.LoadPackageWithContext(Guid& packageGuid, Int32 reason, Guid& context)
at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.GetPackage()
at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ConstructContent()
Additionally, when trying to run, I get an error message of "Error while trying to run project: Invalid Pointer" (again, VS in devenv.exe /SafeMode - see how to run visual studio without plugin and all third party feature if unfamiliar)
Please let me know if I can provide any additional information.
It may be because when you name the project you can't put spaces, I put them and it gave me a AccessViolationException aswell, try using capitals to separate your words, but only use letters and no spaces to be sure.
I also faced this issue with Visual Studio 2010. More interestingly I had several projects in my solution (Console application, WPF application, Windows Forms application) but it was failing only when, I was setting the project which was of type "Console Application" as start up project. Following change finally helped me nail down the issue: Go to project properties of the console application project -> Go to "Debug" tab -> Go to "Enable Debuggers" section in right pane -> Check the "Enable unmanaged code debugging" check box as shown in the snapshot below. Root cause of why it happened is still not known to me. Only thing which I observed as fishy was that there were lot of windows updates which had got installed on my machine the previous night which mostly constituted of office updates and OS updates (More than a dozen KB articles).
I have a C# COM object in a dll that I have registered using regasm.exe.
I do a createObject on the COM object and call methods on the object in a vbs script run with cscript.
If I run this on the command line it all works properly, creates the object calls the method via com.
cscript.exe c:\mypath\myvb.vbs argument
I now am trying to run this same command from C#. I use the System.Diagnostics.Process methods
ProcessStartInfo si = new ProcessStartInfo();
si.Filename = "cscript.exe";
si.Arguments = "c:\mypath\myvb.vbs argument";
Process exe = ProcessStart(si);
...
When I run this way I get the 0x80070002 error , which is basically a file not found error. I dont understand why it is different from C# to the command line.
Edit - More Info
I am running on a 64bit OS. The C# COM dll was built with "AnyCPU" .
I used the 64bit regasm.
The cscript I used was from c:\windows\system32 so it was the 64 bit version.
From the command line if I deliberately use the 32 bit version of cscript I also get the 0x80070002 error. This leads me to suspect the problem from c# is related, but I still don't get it.
"File not found" is not the first kind of error you'd expect in this scenario. But it is certainly possible, you have to register the assembly twice. Once with the 64-bit version of Regasm.exe so that the 64-bit registry keys are written. And again with the 32-bit version, it writes the keys to HKLM\Software\Wow6432Node, where 32-bit client programs search for keys.
Which is easy to overlook of course, you never mentioned doing this so that's a Big Red flag. You'd normally get "Class not registered", that didn't happen, maybe there was an earlier registration we don't know about. Like Visual Studio registering it, you'd normally always favor it doing that way because it prevents registry pollution. Simple changes to the project or file can then trigger "File not found". Forgetting the /codebase option when you ran the 32-bit version of Regasm is another way.
Best thing to do is just not guess at this. File not found errors are very easy to diagose with SysInternals' Process Monitor. You'll see cscript.exe searching for the file and not finding it. The name of the file gives you a very strong hint what the underlying cause can be. Look at the trace from the bottom up to avoid drowning in the data. And pre-emptively ensure you use both versions of Regasm.exe because you know that's necessary.
I recently tried to change the display name of my windows service, but apparantly I messed up. An old version fails to uninstall completely and I cannot install a new version of the windows service. This is the error generated from running installutil /i myService:
An exception occurred during the uninstallation of the System.Diagnostics.EventLogInstaller installer.
System.InvalidOperationException: The event log source '7 Ac Service' cannot be deleted, because it's equal to the log name.
An exception occurred while uninstalling. This exception will be ignored and the uninstall will continue. However, the application might not be fully uninstalled after the uninstall is complete.
So the event log source is equal to the log name. What does that mean and how do I fix it?
I found out myself. This post helped. So there are basically 3 places in the registry in the same name as the windows service. So I tried first to write a console application to remove the eventlog:
System.Diagnostics.EventLog.Delete("7 Ac Service");
It took care of 2 of them. I removed the last one manually using regedit. Then my windows service installed without problems.