Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




Scheduler Service v1.7.1: Error testing connectivity/authentication to client

web-app

Hi,

I've seen that this error has been posted about before but none of them solve my problem. I have just upgraded from Gemini v2.1.1 to v2.2.6, using Scheduler Service v1.7.1 and installed WSE 3.0.

The installation of WSE 3.0 got me past some known issues seen in here, but now I'm stuck. When the scheduler service starts, I get these event logs:

1. Configuring client http://10.0.0.3:8001/gemini/webservices.

2. Configured Service Manager for client http://10.0.0.3:8001/gemini/webservices.

3. System.ApplicationException: WSE842: The service pipeline could not be created. ---> System.Configuration.ConfigurationErrorsException: WSE032: There was an error loading the microsoft.web.services3 configuration section. ---> System.Configuration.ConfigurationErrorsException: The entry 'UsernameToken' has already been added.

at System.Configuration.BaseConfigurationRecord.EvaluateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult)

at System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject)

at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)

at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)

at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)

at System.Configuration.BaseConfigurationRecord.GetSection(String configKey, Boolean getLkg, Boolean checkPermission)

at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)

at System.Web.HttpContext.GetSection(String sectionName)

at Microsoft.Web.Services3.Configuration.WebServicesConfiguration.getCurrent()

--- End of inner exception stack trace ---

at Microsoft.Web.Services3.Configuration.WebServicesConfiguration.getCurrent()

at Microsoft.Web.Services3.Configuration.WebServicesConfiguration.get_MessagingConfiguration()

at Microsoft.Web.Services3.WseProtocol.ModifyInitializedExtensions(PriorityGroup group, SoapExtension[] extensions)

at System.Web.Services.Protocols.SoapServerProtocol.Initialize()

--- End of inner exception stack trace ---

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

4.  Error testing connectivity/authentication to client http://10.0.0.3:8001/gemini/webservices.

5.  Service started successfully.

Not surprisingly, I get no emails from Gemini. If I click the Test button under Admin|SMTP Configuration, I get an email after a short pause. If I get someone to create an issue and I close it, normally I'd get an email for the creation and they'd get one for the closure, but nobody gets anything.

If I switch the Notifications|Email Alert Engine back to MailPlugin, all emails work as they did on v2.1.1.

My CounterSoft.Gemini.Scheduler.exe.config file reads:

<Client WebServicesURL="http://10.0.0.3:8001/gemini/webservices" AuthenticationUsername="myusername" AuthenticationPassword="mypassword">

The user I am setting in the config file is the same one I log into Gemini with, and I am an admin user.

Any thoughts please, I'd really like to use the benefits of the scheduler service?

jsweby
· 1
jsweby
Replies (19)
helpful
0
not helpful

By the way, the source of all the event logs is "Countersoft Gemini Scheduler" except number 3 which is "Microsoft WSE 3.0".

Also, if I navigate to http://10.0.0.3:8001/gemini/webservices/AuthWS.asmx then I get the AuthWS WebService page as you'd expect me to, with a list of all the supported operations.


jsweby
· 1
jsweby
helpful
0
not helpful

An update to this.

I did a search for the WSE error number and found some articles about UsernameToken being added twice, as it is already added as part of WSE 3.0.

So I edited web.config and commented out the entire <security> section at the bottom. When I restarted the service, the error message was gone although I still get the event:

Error testing connectivity/authentication to client http://10.0.0.3:8001/gemini/webservices.

Does this help?


jsweby
· 1
jsweby
helpful
0
not helpful

The problem is that you seem to have a root config file that adds a usernametoken, you need to override this as we are using a custom one.


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

Thanks for the reply. I only installed the .net framework and WSE in order to run Gemini. How would I find out where the problem might be, and overcome it?

Thanks, 
Jason.


jsweby
· 1
jsweby
helpful
0
not helpful

Did you install Gemini under another web app?

Basically, check that there isn't a web.config file above the Gemini virtual folder (wwwroot?)


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

Thanks again for coming back.

I don't even know what that means, installing it under another web app; Gemini is listed on IIS directly under WebSites. There are other websites running, which is why I have a port number of 8001 for Gemini.

I did a search of the entire drive for web.config files and found about half a dozen; not one of them contains the word "usernametoken".

Any other ideas?


jsweby
· 1
jsweby
helpful
0
not helpful

Can you try using Gemini with another port?


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

Thanks although I'm not sure what that might achieve? Gemini works absolutely fine, the upgrade to v2.2.6 went without a hitch, it's only the scheduler service that doesn't appear to want to work.


jsweby
· 1
jsweby
helpful
0
not helpful

Unfortunately, it is not the service that is at fault (unless the config file is wrong).

It points to a WSE problem on the web server and we have heard about issue with WSE and other ports.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Yeah I suspected it was a WSE issue, I wasn't suggesting this was a bug in the scheduler service otherwise I would have logged a bug. I was just hoping we might be able to get over the WSE issue so I could use the service.

I'll try another port at some point and let you know how that goes. I can't use the default port because that is being used by another website on IIS, any ideas what the issues were with WSE and "other ports" and what ports I might be able to try successfully?

Thanks.


jsweby
· 1
jsweby
helpful
0
not helpful

Hello jsweby,

we have the same problem with scheduler service. It doesn't send out any mails. But gemini is running fine (with mailplugin).
So I want to ask, if you found a solution.

regards,
Martin


mkoberstein
· 1
mkoberstein
helpful
0
not helpful

Hi Martin

Unfortunately not, Countersoft said it was an issue with the WSE and couldn't help anymore so I had to uninstall the WSE and the mail service and go back to separate emails. Which kind of defeated my point of upgrading to the latest version.

Regards,
Jason.


jsweby
· 1
jsweby
helpful
0
not helpful

Are you both running under port 80?


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

No, as you can see from my earlier posts, we are running under port 8001 as we don't want this to be available under the default website.

Jason.


jsweby
· 1
jsweby
helpful
0
not helpful

Yes, we are trying to establish if this is an issue with WSE and posts other than 80. Are you able to test unde port 80?


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

Not on our current implementation, no, this default web site at port 80 is being used for other purposes with which I cannot interfere.


jsweby
· 1
jsweby
helpful
0
not helpful

We are using port 80 and are having the same problem:  when starting the scheduler service (version 3.0.4.2026), we get the following in the event log:  Error testing connectivity/authentication to client http://pandora/gemini/webservices.

And email notifications are not going out.

We do not have WSE installed, but have removed references to it in the gemini website web.config, per http://community.countersoft.com/forums/thread/926.aspx .

The authentication name and password settings look fine in the scheduler config file.

We have tried running the scheduler service as localservice, a domain user and a local user. 

We're using Gemini version 3.0.4, running on Windows Server 2003.   Emails go out just fine using the "Test" button on the SMTP configuration page.   What else can we do?


Doug Kent
· 1
Doug Kent
helpful
0
not helpful

More information: we're using Gemini version 3.0.4, running on Windows Server 2003.


Doug Kent
· 1
Doug Kent
helpful
0
not helpful

The scheduler does need MS WSE 3.0 to be installed on the web server.


Saar Cohen
· 5000
Saar Cohen