• View Communities
    • Citrix Developer Network
      The place for unfiltered straight talk on Citrix products. Blogs, code downloads, best practices, APIs, and more can all be found here.
    • Citrix Ready Community Verified
      Does it work with Citrix? Application compatibility questions are a thing of the past with the new Citrix Community Verified site.
    • Blogs
      Learn the latest from the Citrix employees who are building application delivery infrastructure technologies.
    • Blogosphere
      The Citrix Blogosphere is a window into the thousands of conversations taking place about Citrix and Application Delivery.
  • Sign In
Link to http://www.citrix.com Link to http://community.citrix.com
XenApp Developer Network

XenApp Community > Citrix Developer Network (CDN) Forums > XenApp Developer Network > Password Manager Provisioning SDK > SDK sample does not compile

Thread: SDK sample does not compile

This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 21 - Pages: 2 [ 1 2 | Next ] - Last Post: Aug 7, 2008 8:04 PM Last Post By: Warren Simondson
Warren Simondson

Posts: 46
SDK sample does not compile
Posted: Jul 14, 2008 9:18 AM
 
  Click to reply to this thread Reply
This message was useful 0 users found this post useful
I hope these post are read, but I am having issues compiling the SDK sample. I'm using Visual Studio .NET 2003 and I have installed and operationsal PM 4.6 with the provisioning module on the same server. When I load and then build the sample from the SDK I get 3 errors:

Error 1:
Source file 'C:\Documents and Settings\%username%\My Documents\Visual Studio Projects\SampleCode\Web References\ProvisionServices\Reference.cs' could not be opened ('The system cannot find the file specified. ')

Error 2:
The referenced component 'Citrix.PasswordManager.Service.WSAuth.Entities' could not be found.

Error 3:

The referenced component 'Citrix.PasswordManager.Service.WSAuth.Utils' could not be found.

Has anyone ever tried to compile this SDK? IF anyone can help, I will be able to offer a lot of free tools to the community if I can compile this sample.
Vishal Ganeriw...

Posts: 266
Re: SDK sample does not compile
Posted: Jul 18, 2008 7:22 PM   in response to: Warren  Simondson in response to: Warren Simondson
 
  Click to reply to this thread Reply
This message was useful 0 users found this post useful
Hi Warren
Apologies for the delayed response. I am surprised the sample examples does not work for you. I will try to compile them on my end today. I will also have someone from engineering team reply back to you.
Vishal
Vishal Ganeriw...

Posts: 266
Re: SDK sample does not compile
Posted: Jul 21, 2008 12:58 PM   in response to: Vishal  Ganeriw... in response to: Vishal Ganeriw...
 
  Click to reply to this thread Reply
This message was useful 0 users found this post useful
Other experts in Citrix have confirmed that they encountered this same problem before and it is VS 2003 specific, VS 2005/2008 does not exhibit this problem.

Vishal
Warren Simondson

Posts: 46
Re: SDK sample does not compile
Posted: Jul 21, 2008 5:14 PM   in response to: Vishal  Ganeriw... in response to: Vishal Ganeriw...
 
  Click to reply to this thread Reply
This message was useful 0 users found this post useful
So why does the Provisioning_SDK_readme.htm say "To build and execute the sample code you must have Microsoft Visual Studio .NET 2003 installed."

I also comipled the code in VS 2005 originally and it also failed, this is why I when back to VS 2003.

Any other thoughts? What's the value in supplying an SDK that doesn't compile.
Warren Simondson

Posts: 46
Re: SDK sample does not compile
Posted: Jul 23, 2008 9:23 AM   in response to: Vishal  Ganeriw... in response to: Vishal Ganeriw...
 
  Click to reply to this thread Reply
This message was useful 0 users found this post useful
Ok. I have gone back to VS 2005 and I still cannot compile the sample code. I get 6 warnings and 2 errors:

Points 5 and 6 are errors. Let's face it, this code is really not a true SDK if the sample soes not compile.

1. c:\SampleCode\BatchRequestBuilder.cs(80,5): warning CS0618: 'System.Xml.XmlValidatingReader' is obsolete: 'Use XmlReader created by XmlReader.Create() method using appropriate XmlReaderSettings instead. http://go.microsoft.com/fwlink/?linkid=14202'

2. c:\SampleCode\BatchRequestBuilder.cs(80,38): warning CS0618: 'System.Xml.XmlValidatingReader' is obsolete: 'Use XmlReader created by XmlReader.Create() method using appropriate XmlReaderSettings instead. http://go.microsoft.com/fwlink/?linkid=14202'

3. c:\SampleCode\BatchRequestBuilder.cs(106,17): warning CS0618: 'System.Xml.Xsl.XslTransform' is obsolete: 'This class has been deprecated. Please use System.Xml.Xsl.XslCompiledTransform instead. http://go.microsoft.com/fwlink/?linkid=14202'

4. c:\SampleCode\BatchRequestBuilder.cs(106,41): warning CS0618: 'System.Xml.Xsl.XslTransform' is obsolete: 'This class has been deprecated. Please use System.Xml.Xsl.XslCompiledTransform instead. http://go.microsoft.com/fwlink/?linkid=14202'

5. c:\SampleCode\FormTestHarness.cs(803,31): error CS1502: The best overloaded method match for 'TestHarness.ServiceHelper.Convert2CredentialData(TestHarness.ProvisionServices.PSOType[])' has some invalid arguments

6. c:\SampleCode\FormTestHarness.cs(803,61): error CS1503: Argument '1': cannot convert from 'TestHarness.ProvisionServices.PSOType' to 'TestHarness.ProvisionServices.PSOType[]'

7. c:\SampleCode\FormTestHarness.cs(1251,18): warning CS0618: 'System.Configuration.ConfigurationSettings.AppSettings' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings'

8. c:\SampleCode\FormTestHarness.cs(1294,24): warning CS0618: 'System.Configuration.ConfigurationSettings.AppSettings' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings'
Warren Simondson

Posts: 46
Re: SDK sample does not compile
Posted: Jul 28, 2008 8:55 AM   in response to: Vishal  Ganeriw... in response to: Vishal Ganeriw...
 
  Click to reply to this thread Reply
This message was useful 0 users found this post useful
Well, I watched the video "Video - Getting started with Password Manager Provisioning SDK" and saw 'how easy' it was to compile the SDK in VS2008. So after failing in VS2003, then moving to VS2005 and still failing to comiple the code with no response from Citrix, I took one last shot and prepared a brand new VM with VS2008, and the PM SDK with the provisioning module installed. Guess what!!! It failed to compile again with the following error:

error CS1504: Source file 'C:\pm_sdk\SampleCode\Web References\ProvisionServices\Reference.cs' could not be opened ('Unspecified error ')

Compile complete -- 1 errors, 0 warnings
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

So I watch the 'must see' video again, and again, and again to see where I went wrong, but of course the video just says load the project and build the project and there you have it.

By now I'm sounding very sarcastic because I have some great ideas to help make Password Manager better and it is important that I see how the sample code operates before moving on to the hard coding of my solutions, which as I always have, would share with the community.

So Vishal, I'm sure everyone liked the video, but lets get to the bottom of why the SDK does not compile, so others can also build some additional utilities to help make Password Manager even better.
Vishal Ganeriw...

Posts: 266
Re: SDK sample does not compile
Posted: Jul 28, 2008 10:13 AM   in response to: Warren  Simondson in response to: Warren Simondson
 
  Click to reply to this thread Reply
This message was useful 0 users found this post useful
Hi Warren
I know how frustrating it can be not able to even compile the VS project. I am not sure why you are seeing that problem but I promise to work with you on getting it fixed.

Let me talk to few Password Manager gurus I know and get back to you.
Vishal G
Vishal Ganeriw...

Posts: 266
Re: SDK sample does not compile
Posted: Jul 28, 2008 2:35 PM   in response to: Vishal  Ganeriw... in response to: Vishal Ganeriw...
 
  Click to reply to this thread Reply
This message was useful 0 users found this post useful
Can you try the following.

1.Install CPM Service locally on dev machine with Provisioning enabled
a.This will resolve the 2 dependencies on the Entities and Utils dll (installed by the Service) – I don’t think these are required and can be deleted after deleting the corresponding references in the code

2.Point the Web Services to the Service URL and update web references
a.Will create the necessary objects.
Vishal Ganeriw...

Posts: 266
Re: SDK sample does not compile
Posted: Jul 28, 2008 3:48 PM   in response to: Warren  Simondson in response to: Warren Simondson
 
  Click to reply to this thread Reply
This message was useful 0 users found this post useful
I have updated the test harness sample and verified that it compiles on my machine with VS2005.

http://community.citrix.com/download/attachments/1245391/password_manager_4.1_sdk.zip?version=2

I want to thank you for your persistence and bringing this in notice to the community.

If you do develop cool samples based on Password Manager SDK please feel free to share them with the community at

http://community.citrix.com/cdn/script-exchange/

Feel free to contact me at via forums.

Vishal Ganeriwala

Warren Simondson

Posts: 46
Re: SDK sample does not compile
Posted: Jul 30, 2008 3:12 AM   in response to: Vishal  Ganeriw... in response to: Vishal Ganeriw...
 
  Click to reply to this thread Reply
This message was useful 0 users found this post useful
The sample code still does not compile in VS 2005 even after a fresh install of all required components. The same errors appear:

5. c:\SampleCode\FormTestHarness.cs(803,31): error CS1502: The best overloaded method match for 'TestHarness.ServiceHelper.Convert2CredentialData(TestHarness.ProvisionServices.PSOType[])' has some invalid arguments

6. c:\SampleCode\FormTestHarness.cs(803,61): error CS1503: Argument '1': cannot convert from 'TestHarness.ProvisionServices.PSOType' to 'TestHarness.ProvisionServices.PSOType[]'

The error refers to this line of code:

Credential[] credentials = helper.Convert2CredentialData(response.pso);

This has now happen on every occasion of compiling the code and is clearly a syntax issue. Can you please resolve this issue.
Vishal Ganeriw...

Posts: 266
Re: SDK sample does not compile
Posted: Jul 30, 2008 12:27 PM   in response to: Warren  Simondson in response to: Warren Simondson
 
  Click to reply to this thread Reply
This message was useful 0 users found this post useful
Ok I uploaded all the files again to make sure I did not do a mistake and made this small video to prove it works

http://screencast.com/t/pV6taCzPW

Thanks for your patience.
Warren Simondson

Posts: 46
Re: SDK sample does not compile
Posted: Jul 30, 2008 5:10 PM   in response to: Vishal  Ganeriw... in response to: Vishal Ganeriw...
 
  Click to reply to this thread Reply
This message was useful 0 users found this post useful
Vishal, this video proves nothing. Your video just opens the code and you build it! That's it. Start with a fresh install of windows 2003 on a VM, PM 4.6 with provisioning, and VS 2005. Then download the SDK. The first thing you would have to do is to convert the code to VS2005. Your video did not show this. Did it occur to you that you may have other dependencies loaded on your machine? Think about the end user, start with a completely fresh machine and try and compile it. I have had several other people from the programming community try and compile this code and everyone is getting exactly the same failure as me. Please just don't send a video that proves nothing. As I said, if you truely just opened the SDK from the download site, then you would have has the VS2005 asking to convert it on open. The qay to finalise this thread is to do what we have to do and install it from scratch.
Vishal Ganeriw...

Posts: 266
Re: SDK sample does not compile
Posted: Jul 30, 2008 5:22 PM   in response to: Warren  Simondson in response to: Warren Simondson
 
  Click to reply to this thread Reply
This message was useful 0 users found this post useful
Hi Warren
I have uploaded new build for the sample yesterday which is native to VS 2005. I did not have to go through any conversion process. I understand your anger but I would really appreciate that you first try and download the new sample code and try to compile it through VS 2005.

http://community.citrix.com/download/attachments/1245391/password_manager_4.1_sdk.zip?version=4

I have shown you all the steps in video. I have not removed any parts in it.

Vishal
Warren Simondson

Posts: 46
Re: SDK sample does not compile
Posted: Jul 30, 2008 5:43 PM   in response to: Vishal  Ganeriw... in response to: Vishal Ganeriw...
 
  Click to reply to this thread Reply
This message was useful 0 users found this post useful
Hi Vishal

We have a winner!!!! This SDK compiles perfectly. Thankyou for your help. You can understand the frustration of the sample code not compiling as the CDN use these samples to understand how the syntax of a component should be used. The WFAPI is a great example of this, as it was the sample code from this SDK that allowed my compnay, Ctrl-Alt-Del IT consultancy, to creat all the free tools listed on our web site. http://www.ctrl-alt-del.com.au/CAD_TSUtils.htm

So once again thankyou and I hope that the CDN community can now use the PM SDK to create some dynamic utilities.

Watch this space for my future releases.
Vishal Ganeriw...

Posts: 266
Re: SDK sample does not compile
Posted: Jul 30, 2008 5:46 PM   in response to: Warren  Simondson in response to: Warren Simondson
 
  Click to reply to this thread Reply
This message was useful 0 users found this post useful
Hi Warren
I am glad I could help you. Can you tell me what samples do you have in your mind.
Vishal
 
  • Legend

    • Genius
      4000 + pts
      Virtuoso
      2000 - 3999 pts
      Master
      750 - 1999 pts
      Scholar
      250 - 749 pts
      Aficionado
      100 - 249 pts
      Enthusiast
      10 - 99 pts
      Citrite
      Helpful Answer
      Worth 2 points
      Correct Answer
      Worth 6 points