pfn / keepasshttp

KeePass plugin to expose password entries securely (256bit AES/CBC) over HTTP
GNU General Public License v3.0
2k stars 275 forks source link

first run on Keepass 2.20.1 or later, throws HttpApi exception #83

Open larsberntrop opened 11 years ago

larsberntrop commented 11 years ago

Running Keepass 2.20.1 or later on Windows7-x64 copying https://passifox.appspot.com/KeePassHttp.plgx too Keepass dir and restarting produces ( and redacted):

[Content]: The following plugin is incompatible with the current KeePass version: C:\Users\username\AppData\Local\KeePass\PluginCache\cacheKey\KeePassHttp.dll note: username and cachekey are placeholders for the actual value

Have a look at the plugin's website for an appropriate version.

[Expanded Information] The type initializer for 'HttpApi' threw an exception. System at System.Net.UnsafeNclNativeMethods.HttpApi.get_Supported() at KeePassHttp.KeePassHttpExt.Initialize(IPluginHost host) at KeePass.Plugins.PluginManager.LoadPlugins(FileInfo[] vFiles, String strTypeName, String strDisplayFilePath, Boolean bSkipCacheFiles) Boolean get_Supported()

Inner: The type initializer for 'System.Net.ComNetOS' threw an exception. System at System.Net.UnsafeNclNativeMethods.HttpApi..cctor() Void .cctor() [^] Details [OK]

lsgd commented 11 years ago

I don't have access on appspot.com to update the KeePassHttp version. Please download the compiled version of KeePassHttp from github: https://github.com/pfn/keepasshttp/blob/master/KeePassHttp.plgx

larsberntrop commented 11 years ago

no change after updating. I stopped keepass, deleted the plugincache dir and redownloaded from github. Note: clicking the link https://github.com/pfn/keepasshttp/blob/master/KeePassHttp.plgx?raw=true prompts me to save the plgx file as text. Should the content-disposition not be binary?

lsgd commented 11 years ago

Do you really use KeePass v2.2.1 or do you use v2.20.1? Also delete KeePassHttp.dll, it should work without it.

These are the files in my root directory of KeePass: keepass-directory

pfn commented 11 years ago

Pushing an update to github updates appspot

Sent from my phone On Feb 20, 2013 1:35 AM, "Lukas Schulze" notifications@github.com wrote:

I don't have access on appspot.com to update the KeePassHttp version. Please download the compiled version of KeePassHttp from github: https://github.com/pfn/keepasshttp/blob/master/KeePassHttp.plgx

— Reply to this email directly or view it on GitHubhttps://github.com/pfn/keepasshttp/issues/83#issuecomment-13823176.

lsgd commented 11 years ago

Can you test it with the latest version of KeePassHttp? Does the error still occur?

pfn commented 11 years ago

I think someone has mentioned this happening to them if they have both KeePassHttp.dll and the .plgx in their KeePass folder, maybe check to see this isn't the case here as well?

On Mon, Mar 25, 2013 at 12:53 PM, Lukas Schulze notifications@github.comwrote:

Can you test it with the latest version of KeePassHttp? Does the error still occur?

— Reply to this email directly or view it on GitHubhttps://github.com/pfn/keepasshttp/issues/83#issuecomment-15419851 .

larsberntrop commented 11 years ago

Just updated to KeePass 2.23 Issue still occurs. I quit KeePass, deleted the dll from the user directory, copied in a new plgx file and the same error occurs.

Please help me!

larsberntrop commented 11 years ago

Trying updating .Net to 4.5...

lsgd commented 11 years ago

Can you give me some more information:

larsberntrop commented 11 years ago

image plgx file is in this directory. comment is about the dll file that is built from the plgx file, and which is placed in the directory: C:\Users\username\AppData\Local\KeePass\PluginCache\cacheKey\KeePassHttp.dll note: username and cachekey are placeholders for the actual value

lsgd commented 11 years ago

Hmmm, can you just delete the complete directory C:\Users\username\AppData\Local\KeePass\PluginCache ? What happens then?

Can you also post an image of the error message?

It's really confusing. I'm currently just trying possible things and collecting information...

larsberntrop commented 11 years ago

Quit KeePass, deleted directory "C:\Users\username\AppData\Local\KeePass\PluginCache" and restarted KeePass

KeePass then shows: image

lsgd commented 11 years ago

Your title says "first run...". Does it work for you on every next run?


I cannot reproduce it and I cannot find any possible problem which could be solved. I started a thread in the KeePass forum, may they have an idea what the problems are.

larsberntrop commented 11 years ago

No, it throws up this dialog every time I start KeePass

kkoouu commented 11 years ago

.dll file is compiled from .plgx during KeePass startup, do you see the "Compiling plugins ..." notification ?

larsberntrop commented 11 years ago

Yes. copied KeepassHttp.dll to .gif and attached to this post. keepasshttp to check, I downloaded the gif and compared, no differences.

mcharris commented 11 years ago

Heads up to anyone with this issue and using linux/mac. Just ran across this issue on my Ubuntu 13.04 box, I did a complete purge of mono and a reinstall of mono and POOF it worked.

tstjep commented 10 years ago

@mcharris thank you a lot, reinstalling mono (MonoFramework-MDK-3.4.0.macos10.xamarin.x86) fixed the issue for me too! (osx 10.9.4, mono 3.4.0, keepass 2.27)

mblais commented 9 years ago

I am having this same issue on a "freshened" WIndows 8.1 x64 installation. KeePass2 v2.30 I only have KeePassHttp.plgx - not the DLL.

I tried:

I did not have this problem before I had to "refresh" my Windows installation.

image