Access to Project Server

Aug 21, 2007 at 5:11 PM
Edited Aug 22, 2007 at 7:02 PM
Hi,

i've uninstalled my Project connector V1.0 and reinstalled it with the new version V1.1 . After this i get the following error event on the connector machine:

Timestamp: 8/21/2007 4:08:33 PM
Message: HandlingInstanceID: e990a5a6-6d9d-46ed-a72c-42e9510cdfca
An exception of type 'System.ArgumentException' occurred and was caught.
------------------------------------------------------------------------
08/21/2007 18:08:33
Type : System.ArgumentException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Login failed. Please ensure that the server and authentication mechanisms are configured properly.
Source : Microsoft.Vsts.Ranger.Connector.PS2007ServiceAgents
Help link :
ParamName :
Data : System.Collections.ListDictionaryInternal
TargetSite : Void CheckAuthentication()
Stack Trace : at Microsoft.Vsts.Ranger.Connector.PS2007ServiceAgents.EnterpriseProjectServiceAgent.CheckAuthentication()
at Microsoft.Vsts.Ranger.Connector.PS2007ServiceAgents.EnterpriseProjectServiceAgent.GetProjectStatus(Guid projectId, DataStoreEnum dataStore, Int32 projectType)
at Microsoft.Vsts.Ranger.Connector.PS2007ServiceAgents.EnterpriseProjectServiceAgent.GetProjectStatus(Guid projectId)
at Microsoft.Vsts.Ranger.Connector.PS2007ServiceAgents.EnterpriseProjectServiceAgent.ListPublishedProjects()
at Microsoft.Vsts.Ranger.Connector.WebServices.PS2007ProviderAdministration.GetPublishedPSProjects()

Additional Info:

MachineName : TFSRTM
TimeStamp : 8/21/2007 4:08:33 PM
FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
AppDomainName : /LM/W3SVC/3/Root/Connector Web Service-3-128321856680759174
ThreadIdentity : TFSRTM\team-server
WindowsIdentity : TFSRTM\team-server

Category: General
Priority: 0
EventId: 100
Severity: Error
Title:Enterprise Library Exception Handling
Machine: TFSRTM
Application Domain: /LM/W3SVC/3/Root/Connector Web Service-3-128321856680759174
Process Id: 1356
Process Name: c:\windows\system32\inetsrv\w3wp.exe
Win32 Thread Id: 3660
Thread Name:
Extended Properties:

and the second event:

Timestamp: 21.08.2007 16:08:33
Message: HandlingInstanceID: 3730335b-d7f4-4e63-9527-3a6d1633430b
An exception of type 'System.Web.HttpUnhandledException' occurred and was caught.
---------------------------------------------------------------------------------
08/21/2007 18:08:33
Type : System.Web.HttpUnhandledException, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Message : Exception of type 'System.Web.HttpUnhandledException' was thrown.
Source : System.Web
Help link :
ErrorCode : -2147467259
Data : System.Collections.ListDictionaryInternal
TargetSite : Boolean HandleError(System.Exception)
Stack Trace : at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.projectlistaspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\connector web site\7c9ef732\51720a40\AppWeb_yjuktlmv.2.cs:line 0
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Additional Info:

MachineName : TFSRTM
TimeStamp : 21.08.2007 16:08:33
FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
AppDomainName : /LM/W3SVC/3/Root/Connector Web Site-1-128321855868799730
ThreadIdentity : TFSRTM\ThomasG
WindowsIdentity : TFSRTM\team-server
Inner Exception
---------------
Type : System.Reflection.TargetInvocationException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Exception has been thrown by the target of an invocation.
Source : mscorlib
Help link :
Data : System.Collections.ListDictionaryInternal
TargetSite : System.Object _InvokeMethodFast(System.Object, System.Object[], System.SignatureStruct ByRef, System.Reflection.MethodAttributes, System.RuntimeTypeHandle)
Stack Trace : at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance)
at System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments)
at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()
at System.Web.UI.WebControls.GridView.DataBind()
at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound()
at System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Inner Exception
---------------
Type : System.Web.Services.Protocols.SoapException, System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Message : Microsoft.Vsts.Ranger.Connector.WebServices.ExceptionHandling.ConnectorWebServiceException: This operation could not be successfully performed. Please contact the administrator and refer to HandlingInstanceID: e990a5a6-6d9d-46ed-a72c-42e9510cdfca
at Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicyEntry.IntentionalRethrow(Exception chainException, Exception originalException)
at Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicyEntry.RethrowRecommended(Exception chainException, Exception originalException)
at Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicyEntry.Handle(Exception exceptionToHandle)
at Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicyImpl.HandleException(Exception exceptionToHandle)
at Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicy.HandleException(Exception exceptionToHandle, String policyName)
at Microsoft.Vsts.Ranger.Connector.WebServices.ExceptionHandling.ExceptionHandler.HandleException(Exception exception)
at Microsoft.Vsts.Ranger.Connector.WebServices.PS2007ProviderAdministration.GetPublishedPSProjects()
Source : System.Web.Services
Help link :
Actor :
Code : http://schemas.xmlsoap.org/soap/envelope/:Server
Detail : System.Xml.XmlElement
Lang :
Node :
Role :
SubCode :
Data : System.Collections.ListDictionaryInternal
TargetSite : System.Object[] ReadResponse(System.Web.Services.Protocols.SoapClientMessage, System.Net.WebResponse, System.IO.Stream, Boolean)
Stack Trace : at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at PS2007ProviderAdministration.GetPublishedPSProjects()
at Microsoft.Vsts.Ranger.Connector.WebUI.BLL.ProjectsManager.GetDetailedProjectAssociations()


Category: General
Priority: 0
EventId: 100
Severity: Error
Title:Enterprise Library Exception Handling
Machine: TFSRTM
Application Domain: /LM/W3SVC/3/Root/Connector Web Site-1-128321855868799730
Process Id: 1356
Process Name: c:\windows\system32\inetsrv\w3wp.exe
Win32 Thread Id: 3908
Thread Name:
Extended Properties:

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

Could any body help me ?

Bye
Tom
Aug 22, 2007 at 7:04 PM
Edited Aug 22, 2007 at 10:20 PM
A reason for this problem is the second project 2007 server instance. I try to connect to the the other one and it works fine. I' don't know what the reason is ....
Coordinator
Aug 23, 2007 at 3:34 PM
So, you're okay with this now. Right?
Aug 23, 2007 at 4:00 PM
Edited Aug 23, 2007 at 6:41 PM
No, the problem is not sloved. But I could test again after I worked with the first project instance on the server.

I belive this is a problem on the project server installation, because I write a small application with the following
code segment:

LoginWindows login = new LoginWindows();
login.Url = @"http://myservername/pwa/vtibin/psi/loginwindows.asmx";

login.Credentials = CredentialCache.DefaultNetworkCredentials;
bool permission = login.Login();

The permission variable has every time the value false. Although the User which run the application is an administrator
in projects and he could login over the pwa.
Coordinator
Aug 24, 2007 at 1:56 PM
I agree that this definitely sounds like an issue with Project Server. Have you looked at the ProjTool that is part of the Project Server 2007 SDK? It is very useful when trying to ddiagnose issues much like the way you have above. And you dont have to roll your own :-)
Aug 27, 2007 at 8:07 AM
Hi Lenny,

the weekend is over - time to return to my connector challenge :-) . I try to access with the ProjTool from the SDK my second instance which did not work with the connector. I read the project list succesfully and view any details. After successfully access I debug the ProjTool. I was very suprised that the "loginwindows.asmx" with the login method was not called. In the connector code you call the webservice with the method. Could you explain that?

Tom
Coordinator
Aug 27, 2007 at 2:40 PM
There's actually two different methods for logging into Project using the ProjTool -- Forms auth and Windows auth. Forms auth uses loginforms.asmx; windows auth uses loginwindows.asmx. This version of the Connector only fomrally supports Windows auth.
Jun 16, 2009 at 6:45 AM

First method using the code  (Loginwindows.login () returns false)

I'm also having the problem of invoking the PSI webservice directly in the code. In my custom workflow i need to create a MS Project automatically .For that i need to programmatically loging the server using the loginwindows.asmx. So i create a sampe application (sequnrtial workflow 2007 template)

In that i'm trying to login in the if else activity. But while calling the loginwindow.login () retuns false. So I used that PSI webservice in a windows application but there it is returning true and therafter msp project is created sucessfully as per our requirement. So our doubt is why it is not working in the workflow template.

Second method using the invoke webservice activity

We also came to know that we can use the invoke webservice activity but there i find error occured. In that we are not using the activity (invoke webservice ) for calling the login method of the loginwindows.login(). I've used directly the queuecreateproject (by setting the method proeprty) of the project webservice. So that three other properties will populate automatically.. dataset,validate only and guid. in that i tried both using the validate only as true or false but same result "Error Occured" .. Please help me ...