Search code examples
c#redmineredmine-api

Redmine C# programm with Redmine API


I'm writing a program in C# with the Redmine Api and I only can login through

var manager = new RedmineManager("http://srvredmine/login", username, password);

and if I use simple task like

var user = manager.GetCurrentUser();
Console.WriteLine(user);

I get a NotFoundException occurred in redmine-net45-api.dll


I changed to RedmineWebClient because it works better for me. For example I want to download a Wiki page then I use MessageBox.Show(manager.DownloadString("http://srvredmine/projects/sports").ToString()); And for login I use

NetworkCredential credentials = new NetworkCredential(username, password, "http://srvredmine/login/"); RedmineWebClient manager = new RedmineWebClient(); manager.BaseAddress = "http://srvredmine/"; manager.Credentials = credentials;

But in the messageBox i only get the string of the login page.


Solution

  • Just asked a developer. The Redmine Version is too old to use RedmineManager and RedmineWebClient is not that useful for me.