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.




Error trying to setup Integration - Unhandled Exception: CounterSoft.Gemini.Commons.Rest.GeminiRestE

add-ons

I followed the steps to setup SVN integration with Gemini. I first compiled the project, took the necessary files to the hooks folder. When I tried to apply the project properties and commit them, I get this error.

Below is the actual error.

Commit C:\OncoIQReports Commit failed (details follow): Commit blocked by pre-commit hook (exit code -532459699) with output:

Unhandled Exception: CounterSoft.Gemini.Commons.Rest.GeminiRestException: Method requires authentication at CounterSoft.Gemini.WebServices.BaseService.ThrowResponseException(WebResponse response) at CounterSoft.Gemini.WebServices.BaseService.ProcessResponse[T](String url, Object obj, RequestType requestType) at CounterSoft.Gemini.WebServices.BaseService.WhoAmI() at CounterSoft.Gemini.SourceControl.SVN.Program.Main(String[] args)

Let me give a bit about my enviroment.

Windows 2008 Server Subversion - VisualSVN Server using Windows Authentication. Gemini Server - Setup using windows authentication.

I'm pretty sure the web services are working as I have the mail scheduler working fine.

What do you think the problem is?

irperez
· 1
irperez
Replies (5)
helpful
0
not helpful

Which version of Gemini are you running?

Please make sure that you have the "allow anonymous access" box in the directory security in IIS unchecked.


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

I am using version 3.5.3 (Build 2390)

I made sure that the allow anonymous access was unchecked. It wasn't, so I made that change. But still no luck. I did however manage to find the piece of code that is not working. My email scheduler is working fine with no problems.

See below...


GeminiServiceManager = new ServiceManager( Properties.Settings.Default.GeminiURL, Properties.Settings.Default.GeminiUsername, Properties.Settings.Default.GeminiPassword, "", Properties.Settings.Default.UseWindowsAuthentication);

        DiagnosticsManager.TraceMessage("Constructed Service Manager.");

        DiagnosticsManager.TraceMessage("Gemini Username: " + Properties.Settings.Default.GeminiUsername);

        DiagnosticsManager.TraceMessage("Gemini Logged in user: " + GeminiServiceManager.UsersService.WhoAmI().UserName);

int toReturn = 0;

The code crashes as the "WhoAmI().UserName function. I'm getting a (401) Unauthorized error. So naturally I checked to see what was going on as far as username and passwords go.

Password checked out fine. The user name is supposed to be "comp\tfsservice", but shows up in this code as "comp\tfsservice". I'm assuming that is NOT the problem.

My url is set for "http://tasks.deviq"


irperez
· 1
irperez
helpful
0
not helpful

Okay, I figured out this problem. It was on my end, had a DNS issue.

Now I get a different error.

"Method requires authentication"

What does that mean?


irperez
· 1
irperez
helpful
0
not helpful

When I changed the exe.config and set the UserWindowsAuthentication to false it works.

But my system is setup for WindowsAuthentication. What can I do to make this right?


irperez
· 1
irperez
helpful
0
not helpful

Can you please make sure that you have the "allow anonymous access" unticked in the directory security for the Gemini site in IIS?


Saar Cohen
· 5000
Saar Cohen