Error Calling Resource Webservice with different workflows RRS feed

  • Question

  • I have created a button which pops up a modal dialog and runs an aspx page.  If users go through timesheet link under my work it works fine.  If they select a timesheet via manage timesheets or select a date on a teim sheet it throws an exception.  Here is a line is throws as error:

    myUid = rsc.GetCurrentUserUid();

    This really has me puzzled. All I get from the ULS logs is:

    Microsoft.SharePoint.SPException: Project Server 2010 requires

    at least Microsoft Internet Explorer 7.0.

    at Microsoft.Office.Project.PWA.PJBaseWebPartPage.OnPreInit(EventArgs e)

    at System.Web.UI.Page.PerformPreInit()

    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    Thursday, September 16, 2010 3:36 PM


All replies

  • It appears like all the PSI calls are failings. The line above was just the first PSI call.  Any advice would be greats.



    Thursday, September 16, 2010 5:44 PM
  • Here is a better error from the ULS:

    System.ServiceModel.ProtocolException: The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">  <html xmlns:o="urn:schemas-microsoft-com:office:office" lang="en-us" dir="ltr">  <head><meta name="GENERATOR" content="Microsoft SharePoint" /><meta name="progid" content="SharePoint.WebPartPage.Document" /><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta http-equiv="Expires" content="0" /><meta name="ROBOTS" content="NOHTMLINDEX" /><title>      Error    </title><link rel="stylesheet" type="text/css" href="/_layouts/1033/styles/Themable/corev4.css?rev=iIikGkMuXBs8CWzKDAyjsQ%3D%3D"/> <script type="text/javascript"> // <![CDATA[ document.write('<script type="text/javascript" src="/_layouts/1033/init.js?rev=BJDmyeIV5jS04CPkRq4Ldg%3D%3D"></' + 'script>'); document.write('<script type="text/javascript" src="/ScriptResource.axd?d=0VApWjFeuBvhs_Sj3QgdpB4O_KPKuaeDg35CKTGbGeRChwx-IlCLtHk1oMhqblGOlzwE48gaQbGFYzBuEVhLVu6GwRFkz3OUG5dj8SJgNb41&amp;t=ffffffff8337dcac"></' + 'script>');'.   Server stack trace:    
     at System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory factory, WebException responseException, ChannelBinding channelBinding)   
     at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)   
     at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)   
     at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)   
     at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)   
     at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)   
     at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)    Exception rethrown
     at [0]:    
     at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)   
     at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)   
     at SvcResource.Resource.GetCurrentUserUid()   
     at SvcResource.ResourceClient.GetCurrentUserUid()   
     at CustomizeTimesheet.Layouts.ITSMTimeImport.Page_Load(Object sender, EventArgs e)   
     at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)   
     at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)   
     at System.Web.UI.Control.OnLoad(EventArgs e)   
     at Microsoft.SharePoint.WebControls.UnsecuredLayoutsPageBase.OnLoad(EventArgs e)   
     at Microsoft.SharePoint.WebControls.LayoutsPageBase.OnLoad(EventArgs e)   
     at System.Web.UI.Control.LoadRecursive()   
     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    Thursday, September 16, 2010 5:53 PM
  • Hi Aqil,

    Not sure I fulkly understand where your code is running from, but looks like it might not have the right conext for making the calls it is attempting.  Can you describe more full what you are doing?



    Blog | Facebook | Twitter | Posting is provided "AS IS" with no warranties, and confers no rights.
    Project Server TechCenter | Project Developer Center | Project Server Help | Project Product Page
    • Marked as answer by Aqil Mansuri Friday, September 17, 2010 9:57 PM
    Friday, September 17, 2010 4:58 PM
  • Turns out the code which was written to parse the url for pwa site was ineffective.  The WCF errors were generic but you got me going in the correct direction.


    Friday, September 17, 2010 9:58 PM