Native Messaging: Failed to connect: Failed to start native messaging host.

1,165 views
Skip to first unread message

Tuấn Trần

unread,
Sep 1, 2015, 11:13:42 AM9/1/15
to Chromium-extensions
Hello, I'm developing an app using Native Messaging Technology. My app worked with chrome 32 bit in win 7,8,10(32, 64bit) but it not work with chrome 64bit in windows 7 64bit, I have yet to try with chrome 64bit in win 8 or win 10. 
Extension notificate: Failed to connect: Failed to start native messaging host when i call native app. 
I have created 2 registry: "HKCU\Sofware\Google\Chrome\NativeMessagingHosts\com.chrom.test" and "HKLM\Sofware\Wow6432Node\Google\Chrome\NativeMessagingHosts\com.chrom.test"
I have set default value of that key to the full path to the manifest fileto the full path to the manifest file.
I have read at:https://developer.chrome.com/extensions/nativeMessaging#native-messaging-debugging, it's tell me that error is:"Check whether you have sufficient permissions to execute the file." BUT I don't know how to check it?
So, Can you tell me why my app not worked with chrome 64 bit in win 7 64bit? How can i fix it? OR How can i check permissions to execute my native host?
Thanks!

Tony BenBrahim

unread,
Sep 1, 2015, 7:49:53 PM9/1/15
to Tuấn Trần, Chromium-extensions
Not sure, but I notice that for the 64 bit key you write HKCU rather than HKLM.
I use HKLM and it works

--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/40c6c5c1-0aaa-4c97-815c-e0a93cc46a3b%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.

Tuấn Trần

unread,
Sep 1, 2015, 8:28:46 PM9/1/15
to Chromium-extensions, trananht...@gmail.com
Can you specify your HKLM registry? 

Vào 06:49:53 UTC+7 Thứ Tư, ngày 02 tháng 9 năm 2015, Tony BenBrahim đã viết:
Not sure, but I notice that for the 64 bit key you write HKCU rather than HKLM.
I use HKLM and it works
On Tue, Sep 1, 2015 at 10:13 AM, Tuấn Trần <trananht...@gmail.com> wrote:
Hello, I'm developing an app using Native Messaging Technology. My app worked with chrome 32 bit in win 7,8,10(32, 64bit) but it not work with chrome 64bit in windows 7 64bit, I have yet to try with chrome 64bit in win 8 or win 10. 
Extension notificate: Failed to connect: Failed to start native messaging host when i call native app. 
I have created 2 registry: "HKCU\Sofware\Google\Chrome\NativeMessagingHosts\com.chrom.test" and "HKLM\Sofware\Wow6432Node\Google\Chrome\NativeMessagingHosts\com.chrom.test"
I have set default value of that key to the full path to the manifest fileto the full path to the manifest file.
I have read at:https://developer.chrome.com/extensions/nativeMessaging#native-messaging-debugging, it's tell me that error is:"Check whether you have sufficient permissions to execute the file." BUT I don't know how to check it?
So, Can you tell me why my app not worked with chrome 64 bit in win 7 64bit? How can i fix it? OR How can i check permissions to execute my native host?
Thanks!

--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.

Tony BenBrahim

unread,
Sep 1, 2015, 8:51:01 PM9/1/15
to Tuấn Trần, Chromium-extensions
Have you tried "HKLM\Software\Google\Chrome\NativeMessagingHosts\com.chrom.test" instead of "HKCU\Sofware\Google\Chrome\NativeMessagingHosts\com.chrom.test"

Also note that Software is misspelled in your message, maybe also in your regiutry, you are missing the t between Sof and ware

On Tue, Sep 1, 2015 at 7:28 PM, Tuấn Trần <trananht...@gmail.com> wrote:
Can you specify your HKLM registry? 

Vào 06:49:53 UTC+7 Thứ Tư, ngày 02 tháng 9 năm 2015, Tony BenBrahim đã viết:
Not sure, but I notice that for the 64 bit key you write HKCU rather than HKLM.
I use HKLM and it works
On Tue, Sep 1, 2015 at 10:13 AM, Tuấn Trần <trananht...@gmail.com> wrote:
Hello, I'm developing an app using Native Messaging Technology. My app worked with chrome 32 bit in win 7,8,10(32, 64bit) but it not work with chrome 64bit in windows 7 64bit, I have yet to try with chrome 64bit in win 8 or win 10. 
Extension notificate: Failed to connect: Failed to start native messaging host when i call native app. 
I have created 2 registry: "HKCU\Sofware\Google\Chrome\NativeMessagingHosts\com.chrom.test" and "HKLM\Sofware\Wow6432Node\Google\Chrome\NativeMessagingHosts\com.chrom.test"
I have set default value of that key to the full path to the manifest fileto the full path to the manifest file.
I have read at:https://developer.chrome.com/extensions/nativeMessaging#native-messaging-debugging, it's tell me that error is:"Check whether you have sufficient permissions to execute the file." BUT I don't know how to check it?
So, Can you tell me why my app not worked with chrome 64 bit in win 7 64bit? How can i fix it? OR How can i check permissions to execute my native host?
Thanks!

--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.

--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.

To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.

Tuấn Trần

unread,
Sep 3, 2015, 12:49:13 AM9/3/15
to Chromium-extensions
Yes I have tried 2 this registry But I don't understand what youd said: "Also note that Software is misspelled in your message, maybe also in your regiutry, you are missing the t between Sof and ware"! Can u explain this?

Vào 22:13:42 UTC+7 Thứ Ba, ngày 01 tháng 9 năm 2015, Tuấn Trần đã viết:

Tim Uy

unread,
Jun 30, 2016, 10:11:00 PM6/30/16
to Chromium-Extensions-Announce
Hi I am running into this issue. Win 8 (64-bit) works with 32-bit Chrome, but in 64-bit Chrome no messages. I wrote my json into both

HKLM\Software\Wow6432Node\Google\Chrome\NativeMessagingHosts

HKLM\Software\Google\Chrome\NativeMessagingHosts

but in 64-bit Chrome I have no messaging. Did you ever solve this issue? 
Reply all
Reply to author
Forward
0 new messages