login about faq

I started getting the following error today. SMTPQ 9.5.0.47 x64 has been installed and working for the last 3 months. As far as I can tell, nothing has changed on the server which is running Server 2012.

I have tried stopping and restarting the smtpq service and uninstalling and reinstalling. The log files for the smtpq does not indicate any errors.

ChilkatLog:

SendQ:

    DllDate: Jun 23 2015
    ChilkatVersion: 9.5.0.51
    UnlockPrefix: INSURA.CB10617
    Username: IV-WEB:ecerts_web
    Architecture: Little Endian; 32-bit
    Language: ActiveX
    VerboseLogging: 0
    createEmailForSending:

        xSigningAlg: sha1
        Auto-generating Message-ID

    smtp_from: notifications@---------.com
    smtp_recipients: ---------@-----------.com
    SmtpHost: smtp.sendgrid.net
    SmtpPort: 465
    SmtpSsl: 1
    StartTLS: 0
    Failed to open company key
    companyName: Chilkat Software, Inc.
    Failed to open company key
    companyName: Chilkat Software, Inc.
    Failed to open or create Chilkat company registry key
    Chilkat smtpQ may not be installed on this computer, or your application may need administrative privileges to access the registry.

(Wed, 19 Aug 2015 10:50:44 -0700) ---- SMTPQ Started ----
(Wed, 19 Aug 2015 10:50:44 -0700) version: 9.5.0.47
(Wed, 19 Aug 2015 10:50:44 -0700) Jan 24 2015
(Wed, 19 Aug 2015 10:50:44 -0700) queueDirectory: C:\ChilkatSmtpQ-9.5.0.47-x64\Q\\queue
(Wed, 19 Aug 2015 10:50:44 -0700) undeliverableDirectory: C:\ChilkatSmtpQ-9.5.0.47-x64\Q\\undeliverable
(Wed, 19 Aug 2015 10:50:44 -0700) sentDirectory: C:\ChilkatSmtpQ-9.5.0.47-x64\Q\\sent
(Wed, 19 Aug 2015 10:50:44 -0700) SaveSent: false
(Wed, 19 Aug 2015 10:50:44 -0700) LogErrorsOnly: false
(Wed, 19 Aug 2015 10:50:44 -0700) MaxThreads: 5
(Wed, 19 Aug 2015 10:50:44 -0700) MaxRetries: 5

asked Aug 19 '15 at 14:06

emartinson's gravatar image

emartinson
148162030

edited Aug 19 '15 at 14:06


My guess is that something deleted the registry keys, or your app doesn't have permission to access the key? You can avoid the registry by calling mailman.SendQ2 instead of SendQ because it allows you to pass the queue directory path in the 2nd argument.

link

answered Aug 19 '15 at 19:52

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Can you tell me where the reg keys should be in the registry so that I can verify that they are there? I can use the SendQ2 to fix the issue but I would like to solve the issue just in case the same problem occurs on the production machines.

(Aug 25 '15 at 19:56) emartinson

The keys are in HKEY_LOCAL_MACHINE/Software/Chilkat Software, Inc./SmtpQ

link

answered Aug 25 '15 at 22:06

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

I added the the user to the registry with full control. This is the new error. RegistryQueryError: The system cannot find the file specified. ValueName: QueueDir

This is the value in QueueDir: C:ChilkatSmtpQ-9.5.0.47-x64Q\queue. Does the error mean that the path is not accessible?

(Aug 26 '15 at 19:44) emartinson

If you added these entries yourself using regedit32, my guess is that you added a "key" instead of a "value". I'll post a snapshot of what it should look like...

(Aug 26 '15 at 21:51) chilkat ♦♦

Thanks for the capture, I think I see the error now. All of my entries have double \ after the ChilkatSmtpQ folder. Not sure how they got there when the application was working. I have only used the SmtpQConfigure.exe to edit the settings. I will put my captures in the next answer for comparison.

(Aug 27 '15 at 12:32) emartinson

alt text

link

answered Aug 26 '15 at 21:53

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

alt text

alt text

alt text

link

answered Aug 27 '15 at 12:32

emartinson's gravatar image

emartinson
148162030

I updated the paths using SmtpQConfigure.exe and removed the double \. I am still getting the same error. I have also checked the file permissions for my IIS user and that is set to full access.

RegistryQueryError: The system cannot find the file specified.
ValueName: QueueDir
Chilkat smtpQ may not be installed on this computer, or your application may need administrative privileges to access the registry.

alt text

link

answered Aug 27 '15 at 12:37

emartinson's gravatar image

emartinson
148162030

The RegistryQueryError: "The system cannot find the file specified." is the string returned by the Windows OS for the call to the Windows Platform SDK function RegQueryValueExA

See: https://msdn.microsoft.com/en-us/library/windows/desktop/ms724911%28v=vs.85%29.aspx

See this snippet:

Return value

If the function succeeds, the return value is ERROR_SUCCESS.

If the function fails, the return value is a system error code.

If the lpData buffer is too small to receive the data, the function returns ERROR_MORE_DATA.

If the lpValueName registry value does not exist, the function returns ERROR_FILE_NOT_FOUND.

It's a bit confusing because there are no files involved. The RegQueryValueExA function is just using the "file not found" error code to indicate the value queried does not exist.

Given that it seems to exist based on your screen snips, maybe there are trailing spaces in the names causing trouble? Also, maybe the path to these values is not correct?

link

answered Aug 27 '15 at 19:43

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Here's the full picture: alt text

link

answered Aug 27 '15 at 19:47

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

I tried resetting my SmtpQ by uninstalling and unregistering the service. I also deleted the Q files and application files and reinstalled from the zip. The defaults were back to the same as your last screen capture. But the error remained. I searched the registry and found this empty key. HKEY_LOCAL_MACHINESOFTWAREWow6432NodeChilkat Software, Inc.SmtpQ.

(Aug 27 '15 at 20:44) emartinson

I am not sure this is the best solution but this is working for now. I again complete removed SmtpQ and deleted the registry entries. This time I installed the 32bit version. This is working. The only difference that I a see is the registry keys are in a different location than the 64bit version.

alt text

link

answered Aug 27 '15 at 20:54

emartinson's gravatar image

emartinson
148162030

Were you running the 32-bit version of the regsitry editor when you added the keys (that is, was the path to the registry editor C:WindowsSysWow64)regedit32.exe)? If so you may have been affected by 32-bit key redirection.

(Aug 28 '15 at 09:26) jpbro ♦

So there is no confusion, I did not add the keys manually to the registry. I used the SmtpQ config tool. For the registry editor. I opened power shell and "regedit32" failed (not found). "regedit64" also failed but "regedit" worked.

(Aug 28 '15 at 13:33) emartinson
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×96
×16
×4

Asked: Aug 19 '15 at 14:06

Seen: 1,071 times

Last updated: Aug 28 '15 at 13:34

powered by OSQA