none
Creating a PSI Extension for Project server 2010? RRS feed

  • Question

  • Hii everone

    i was going through the tutorials of CREATING PSI EXTENSION FOR PROJECT SERVER 2010

    on the following link http://msdn.microsoft.com/en-us/library/ff843379.aspx

    but when i test the PSI extension by opening the http://localhost/pwa/_vti_bin/psi/helloservice.svc

     what i come up is with a blank web site.

    I'll explain what i have done

    1 i have created WCf service library project,(HelloService)

    2 after compling,i have installed the HelloService.dll assembly into GAC(Global assembly cache)

    NOW THIS THE STEP(3) WHERE I AM CONFUSED I HAVE DONE SOMETHING WRONG

    I don't know how to deploy the extension by creating a service activation file (HelloService.svc) in Project Web App ,

    3 what i have done is

    a)open the notepad

    b)paste the following code in it

    <%@ServiceHost language="C#" 
        service="Microsoft.SDK.Project.Samples.HelloService.Hello, HelloService, 
        Version=1.0.0.0, Culture=neutral, PublicKeyToken=82a6a13f99b045eb" 
    %>
    

    c)Name the file as HelloService.svc and have Saved the text file in location

    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI\PSI

    4 AFTER that i have modified the web.config file,which is at  the  same location C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI\PSI

    After this ,IISRESET,

    BUT WHEN I OPEN http://localhost/pwa/_vti_bin/psi/helloservice.svc, only a blank website is opened,

    if anyone has any idea ,plz letme know,any help will be greatly appreciated

    thanks






    • Edited by anuj astro Friday, February 3, 2012 7:32 AM
    Friday, February 3, 2012 7:26 AM

Answers

  • Yes it should be on one line, unchecked the Word Wrap in notepad and make sure its on one line.

     


    Thanks, Kashif
    • Marked as answer by anuj astro Tuesday, February 7, 2012 8:53 AM
    Monday, February 6, 2012 9:36 AM

All replies

  • Hi Anuj,

    The code in your HelloService.svc is on one line?



    Thanks, Kashif
    Monday, February 6, 2012 8:31 AM
  • Hi Kashif,

    the whole code in HelloService.svc is to be in one line or only the service parameters is to be in one line?

     

    Monday, February 6, 2012 9:32 AM
  • Yes it should be on one line, unchecked the Word Wrap in notepad and make sure its on one line.

     


    Thanks, Kashif
    • Marked as answer by anuj astro Tuesday, February 7, 2012 8:53 AM
    Monday, February 6, 2012 9:36 AM
  • thanks kashif,

    i'' try that and let you know

    Monday, February 6, 2012 9:38 AM
  • Hi kashif,

    when i open the Helloservice.svc file with visual studio 2010,it is showing ASP.NET Run time Error:There are Multiple Root Elements

    how to overcome that error? 

    Monday, February 6, 2012 10:03 AM
  • Just open it with notepad
    Thanks, Kashif
    Monday, February 6, 2012 10:17 AM
  • Hi kashif,

    helloservice.svc file is showing a ASP.NET run time error:it is an error use to section registered as allow definition="machine to application "beyond application level.this error can be caused as virtual directory not being configured as an application in IIS

     

    Monday, February 6, 2012 10:42 AM
  • can you show me the url you're using to access?

     


    Thanks, Kashif
    Monday, February 6, 2012 12:02 PM
  • when i type the following url in internet explorer,a blank website is getting opened

    http://devastro/pwa/_vti_bin/PSI/HelloService.svc

    devastro: Server name

    Monday, February 6, 2012 12:26 PM
  • Opens under http://devastro/pwa the Project Web Application? Have you used the correct PublicToken key? What does the IISLOG tell you?
    Jan Cirpka
    Monday, February 6, 2012 8:53 PM
  • hi jan,

    thanx my problem is solved,i was opening web.config file with visual studio and making changes,but it has to be opened through the notepad

    thanks

    Tuesday, February 7, 2012 8:56 AM