Standard File Version

Dear Apple,
How hard would it be to keep the same version number standard? how can you go from using 4 numbers '7.4.x.x' to using 2 '7.4' Back to 4 '7.4.5.67. Then you decided to go back to using 2 numbers + parentheses'7.5 (861)'. what is the point of ordering your version numbers if you can't even standardize them. Please decide to be a real company sometime soon!!!
Message was edited by: superdelen

Dear Apple,
You've posted in a user to user troubleshooting forum, so there's no guarantee that anyone from Apple will see your complaints. See:
What is Apple Discussions?
If you want to guarantee that someone from Apple sees what you have to say about QuickTime, the QuickTime product feedback form would be a better bet. here's a link through to that:
QuickTime Feedback

Similar Messages

  • Wrong CAP file version error message

    I'm trying to write a loader application that will send a CAP file into JavaCard, and then install it automatically.
    I have developed my JavaCard Applet by using Eclipse3.1.0 and JCOP30.
    After running my JavaCard Applet by Eclipse, I got its CAP file in folder [b\bin\FVSCardPkg\javacard\[/b]
    But when I run my loader application with this CAP file, the error message will display:
    EX: msg Wrong CAP file version, class class com.ibm.jc.JCException
    Wrong CAP file version
         at com.ibm.jc.CapFile.parseHeader(Unknown Source)
         at com.ibm.jc.CapFile.readCapFile(Unknown Source)
         at com.ibm.jc.CapFile.<init>(Unknown Source)
         at LoaderPkg.loader.load(loader.java:35)
         at LoaderPkg.loader.main(loader.java:20)
    This is my loader application source code:
    import java.io.*;
    import com.ibm.jc.*;
    import com.ibm.jc.terminal.*;
    *  Sample /**
    *  Sample loader. Demonstrates how to use the offcard API to download
    *  a cap-file on a JCOP41V22 Engineering sample card and listing of applets loaded will
    * follow.
    public class loader{
         private final static String termName = "pcsc:4"; // Real card
    //     private final static String termName = "Remote"; // Simulator
         protected static final byte[] JCOP_CARD_MANAGER_AID = { (byte) 0xa0, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00};
         protected static final byte defaultInstallParam[] = { -55, 0 };
         static String[] capFileName={"D:/MyCardPkg.cap"};
         public static void main(String[] args){
              try{
                   loader l = new loader();
                   l.load();
              }catch(Exception e){
                   System.err.println("EX: msg " + e.getMessage() + ", class " + e.getClass());
                   e.printStackTrace(System.err);
              System.exit(0);
              //Likewise for simulation, be patient the port takes time to close.
              //Use command line "netstate" to check the disapperance of the port before
              // activating JCShell command to read the simulated card.
         private loader(){}
         private void load() throws Exception{
              CapFile capFile = new CapFile(capFileName[0], null);
              System.out.println("Package name: " + capFile.pkg);
              byte[][] applets = capFile.aids;
              if ((applets == null) || (applets.length == 0)){
                   throw new RuntimeException("no applets in cap file");
              // Get connection to terminal, take note that jcop.exe is required to be activated
              // in simulation mode.
              System.out.println("Open terminal ...");
              //Make sure that the simulator jcop.exe is activated before unmarking this satement
              //Remember to delete the downloaded applet before running otherwise error is
              //expected if the simulator finds the existence of the applet with the
              //same pakage name ID and AID
              //Issue /close command at "cm" prompt if the card is in use,, ie it should
              //have "-" prompt. Be patient that the port takes time to close. Use command line
              //"netstate" to check the disapperance of the port before running.
              // pcsc:4=Card Terminal  Or  Remote=LocalHost Terminal
              JCTerminal term = JCTerminal.getInstance(termName, null);
              //For real JCOP41V22 card, please unmark this statement and delete the downloaded
              //applet before running. Error expected if the card finds the existence of the applet
              //with the same pakage name ID and AID
              //Issue /close command at "cm" prompt if the card is in use,, ie it should
              //have "-" prompt.
              term.open();
              // Add in this statement for real card which requires some response time
              term.waitForCard(5000);
              // Create a logging terminal spitting out the APDUs on standard out
              TraceJCTerminal _term = new TraceJCTerminal();
              _term.setLog(new PrintWriter(System.out));
              _term.init(term);
              term = _term;
              // Get JavaCard representative, passing NULL resets card and returns ATR
              System.out.println("Get card ...");
              JCard card = new JCard(term, null, 2000);
              // Get the off-card representative for the card manager and use it to
              // select the on-card CardManager
              System.out.println("Select card manager ...");
              CardManager cardManager = new CardManager(card, CardManager.daid);
              cardManager.select();
              // For downloading something, we have to be authenticated to card manager.
              // For this, the keys must be set. The keys to use should of course
              // be configurable as well.
              byte[] dfltKey = c2b("404142434445464748494a4b4c4d4e4f");
              cardManager.setKey(new OPKey(255, 1, OPKey.DES_ECB, dfltKey));
              cardManager.setKey(new OPKey(255, 2, OPKey.DES_ECB, dfltKey));
              cardManager.setKey(new OPKey(255, 3, OPKey.DES_ECB, dfltKey));
              cardManager.setKey(new OPKey(1, 1, OPKey.DES_ECB, c2b("707172737475767778797a7b7c7d7e7f")));
              cardManager.setKey(new OPKey(1, 2, OPKey.DES_ECB, c2b("606162636465666768696a6b6c6d6e6f")));
              cardManager.setKey(new OPKey(1, 3, OPKey.DES_ECB, c2b("505152535455565758595a5b5c5d5e5f")));
              System.out.println("init Update ...");
              cardManager.initializeUpdate(255,0);
              System.out.println("Authenticate to card manager ...");
              cardManager.externalAuthenticate(OPApplet.APDU_CLR);
              // And load the cap-file, do not forget to call installForLoad
              System.out.println("Loading cap-file ...");
              byte[] cardManagerAid = cardManager.getAID();
              cardManager.installForLoad(capFile.pkgId,0, capFile.pkgId.length, cardManagerAid, 0, cardManagerAid.length, null, 0, null, 0, 0, null, 0);
              cardManager.load(capFile, null, CardManager.LOAD_ALL, null, cardManager.getMaxBlockLen());
              byte[] capaid = capFile.aids[0];
              System.out.println("Finished loading !");
              // Install applet, we try to install the first applet given in the
              // cap file, and try to instantiate it under the same AID as given for its
              // representation in the cap file. No installation data is passed.
              System.out.println("Installing applet ...");
              cardManager.installForInstallAndMakeSelectable(capFile.pkgId, 0, capFile.pkgId.length, capaid,0, capaid.length, capaid, 0, capaid.length, 0, defaultInstallParam, 0, defaultInstallParam.length, null, 0);
              System.out.println("Install succeeded!");
              // synchronize state with on-card card manager
              System.out.println("Update!");
              cardManager.update();
              // Print information regarding card manager, applets and packages on-card
              JCInfo info = JCInfo.INFO;
              System.out.println("\nCardManager AID : " + JCInfo.dataToString(cardManager.getAID()));
              System.out.println("CardManager state : " + info.toString("card.status", (byte) cardManager.getState()) + "\n");
              //Echountered error 6A 86 with this statement:Object[] app = cardManager.getApplets(CardManager.GET_APPLETS,
              //CardManager.CVM_FORMAT_HEX, true);
              //Solved the bug by playing the integers in arg0 and arg1.
              Object[] app = cardManager.getApplets(1, true);
              if (app == null) {
                   System.out.println("No applets installed on-card");
              } else {
                   System.out.println("Applets:");
                   for (int i = 0; i < app.length; i++) {
                        System.out.println(info.toString("applet.status", (byte) ((OPApplet) app).getState()) + " " + JCInfo.dataToString(((OPApplet) app[i]).getAID()));
              // List packages on card
              // Encountered error with this statement:Object[] lf = cardManager.getLoadFiles(CardManager.CVM_FORMAT_HEX, true);
              // Solved the bug by setting arg0 = 0,
              Object[] lf = cardManager.getLoadFiles(true);
              if (lf == null) {
                   System.out.println("No packages installed on-card");
              } else {
                   System.out.println("Packages:");
                   for (int i = 0; i < lf.length; i++) {
                        System.out.println(info.toString("loadfile.status", (byte)((LoadFile) lf[i]).getState()) + " " + JCInfo.dataToString(((LoadFile) lf[i]).getAID()));
              term.close();
         static String numbers = "0123456789abcdef";
         private byte[] c2b(String s) {
              if (s == null) return null;
              if (s.length() % 2 != 0) throw new RuntimeException("invalid length");
              byte[] result = new byte[s.length() / 2];
              for (int i = 0; i < s.length(); i += 2) {
                   int i1 = numbers.indexOf(s.charAt(i));
                   if (i1 == -1) throw new RuntimeException("invalid number");
                   int i2 = numbers.indexOf(s.charAt(i + 1));
                   if (i2 == -1) throw new RuntimeException("invalid number");
                   result[i / 2] = (byte) ((i1 << 4) | i2);
              return result;
    How to solve this problem?
    Thank you in advance.

    I'm not understanding if your cap file is in "b\bin\FVSCardPkg\javacard\", then why are you loading "D:/MyCardPkg.cap"?
    The issue isn't with your off card application, but the cap file version. Look at the cap file components in JCVM specification. I believe it's the Header component. The major, minor should match your card but not greater. In other words, your can't load a 2.2 on a 2.1 card, but a 2.1 can load on a 2.2

  • Transfer Acrobat 8 standard italian version in a new workstation

    I need to transfer Acrobat 8 standard italian version in a new workstation. I have my serial number, but I loose the installation cd. Where can I download the installation files?

    Download Acrobat products | 9, 8
    Mylenium

  • How can/should I handle file versioning during a TFS Continuous Integration Build?

    Hi all,
    First, I've gone through many docs, links, etc to get a test Build Server up and running along with a successful first Build Definition using both the default and a customized template.  I say this because the question(s) I'm about to ask may have been
    buried in all that information that is now swirling around my head.
    First it might be advantageous to quickly look at what we do now.  In our script we have Major, Minor, Build, and Revision variables that are manipulated both manually and in code.  Let's say we are creating a version 10 of our product.  I
    will go in and edit the Major (10), Minor (0) and Build (0) numbers manually before that versions first script run.  The Revision number is bumped by 1 with each subsequent build.  So, build one of v10 will be 10.0.0.1, then 10.0.0.2, etc.
    This 4 segment version is then used to set the PRODUCT version of the compiled files.
    Later in the build script, we do a dance to get three position version number for our Windows Installer packages since Microsoft only utilizes #.#.# in that realm.  It's basically Build# * 256 + Revision# or something to that effect.  This
    is then passed in to the package.  I guess this part of it could or will need to be handled with an external script and InvokeProcess, which is fine.
    My main concern deals with how versioning works within the confines of a TFS Builds.  I believe I read something about tokens that may be the answer.  What I would like to happen is that all FILE versions are bumped automatically with each build. 
    I don't know if there is a setting that can be utilized within each solution/project that could handle that or not.  Then I'm hoping I can somehow get the Major, Minor, Build and Revision numbers for script use, etc.
    Is there a canned way of going about this or should all of this be scripted in some way with maybe  Pre MSBuild/compile script set up in the Build Definition.
    Any help/guidance with this would be greatly appreciated!
    THANKS IN ADVANCE!!!

    Hi NitLions, 
    Thanks for your post.
    Do you mean that you want to custom assembly file version in each CI build? As far as I know there’s no an standard way of changing the assembly version as part of each build, you can refer to the solution in this article:
    http://tfsbuildextensions.codeplex.com/wikipage?title=Build%20and%20Assembly%20versioning%20%28alternate%20to%20above%20using%20SDC%20Tasks%29.
    Or the information in this article:
    https://tfsversioning.codeplex.com/documentation.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Accidently closed a Acrobat X Standard file without saving it, autosave is on, set for 5 minutes, but where do I find it?

    Accidently closed a Acrobat X Standard file without saving it, autosave is on, set for 5 minutes, but where do I find it?

    Hi Michael,
    That is not how the autosave feature works. Autosave helps in situations where program crashes/freezes or power goes out (basically, in situations where user have no control over the system). Closing the file without saving is not considered as unexpected interruption; it is intentional for most of the users.
    When you close, save manually, or revert to the last-saved version of a file, the autosave file is deleted. Adobe Acrobat X Pro * Saving PDFs

  • Can Creative Suite 6 Design Standard beta version be transferred?

    I tried to transfer a Create Suite 6 Standard beta version (Didn't know it is a beta version when I deactivated on the laptop) from my laptop to another computer.  After I entered the serial number, it says "The serial number you entered is invalid. Please try again. If the problem persists, contact customer support". Then I contacted the customer support, they told me they don't support beta version.  So I wonder who can help me transfer the software? Is the beta version not transferable?

    Fjczxx the beta license is no longer valid.  It was only designed for an evaluation of the software prior to it's release.  You can verify if the serial number is a beta serial number or not by checking under your account at http://www.adobe.com/.  You can find more details on how to locate your serial number at Find your serial number quickly - http://helpx.adobe.com/x-productkb/global/find-serial-number.html.
    If you are able to register your serial number and it is not a beta version then it may be possible that the error can be due to the migration/copy process.  Which operating system are you using?  Did you migrate or transfer any files over to this new laptop?

  • Director Player Error "The file version is too new"

    Short Question:
    When I try to run a projector built with D12 on WinXP, I get a Director Player Error warning dialog that contains the text "Movie C:\Program Files\...\MyProjector.exe cannot be loaded.  The file version is too new."  What could be causing this error?
    Long Explaination:
    I am trying to get an old Director 8.5 project to compile into a Director 12 projector with the least amount of work.
    This project was built as a D8.5 projector for the client around 2005 for use on Win2000 and WinXP and now they want it to run on Win7.  It uses 3D, several 3rd party Xtras and one custom Xtra build originally with Visual Studio 6.  My client has a team of programmers bringing the custom Xtra up to Visual Studio 2010 standards while I try to get the Director projector to build with D12.
    The client wants the application to look and run exactly as it did before.  The only changes we want to make are a few aesthetic logo updates, but that will come later after we get it to run as is under Win7.
    The projector uses a lot of externally referenced files including SWF, W3D, WAV, 6 external cast files (CCT) and 3 external movies (DCR files).  All of the ActionScript scripts are compiled into the projector but most everything else is loaded at runtime.  Most of the scripts compiled fine under D12 and those that didn't only needed "scriptExecutionStyle = 9" added to them in strategic locations.  During the projector build I am also rebuilding the 6 external cast files, but I am trying to use all the other external assets untouched.  Unfortunately, this also includes the 3 external DCR files because the source DIR files have been lost over time.
    While the other team works on the custom Xtra, I am trying to test my Director updates by substituting my new projector (EXE) and cast files (CST) into a fully functional WinXP installation of the application.  All other files are the old versions.
    This seemed like a good testing approach, but when I try to run the projector, I get a Director Player Error warning dialog that contains the text "Movie C:\Program Files\...\MyProjector.exe cannot be loaded.  The file version is too new."  This doesn't make any sense to me since I thought the projector would embed all of the D12 runtime libraries it needed to run. 
    The first thing the projector does is load and play a splash movie that happens to be one of the old DCR files that I cannot rebuild.  Could this be the source of the problem or is this whole idea of testing by overlaying on a WinXP install flawed?
    Any help would be greatly appreciated!

    grafixchip wrote:
    When I try to run a projector built with D12 on WinXP, I get a Director Player Error warning dialog that contains the text "Movie C:\Program Files\...\MyProjector.exe cannot be loaded.  The file version is too new."  What could be causing this error?
    This project was built as a D8.5 projector for the client around 2005 for use on Win2000 and WinXP and now they want it to run on Win7.
    It uses 3D, several 3rd party Xtras and one custom Xtra build originally with Visual Studio 6. 
    That's the problem.
    You need to update (D12 compatible) or to get rid of those xtras.
    I know, it's not an easy task.
    cheers

  • File Versioning in Leopard

    Im building a new company and we've already standardized on Macbooks and we're loving it. We're now considering getting an Xserve.
    One of our requirements is file versioning. It looks like with time machine, this will be available on the client side when leopard comes out. Can anyone advise if there will be a similar feature on network stores?
    If not, then our next best hope is that a tool like alfresco will build integration into Spotlight server! I'll have to ask those guys if that is in the works.
    Thanks for any advice you can give. We dont want to invest in the wrong infrastructure!
    MacBook Pro 2.0ghz Mac OS X (10.4.6)

    For a non-authoritative answer to the "Time Machine" question, see http://www.computerworld.com/action/article.do?command=viewArticleBasic&articleI d=9005730&pageNumber=2
    XServe   Mac OS X (10.4.8)  

  • File Versioning/PLM?

    The online documentation concerning the actual capabilities of iFS file versioning appears non-existent ( unless you download and install the product and look at the Help ).
    Could someone give me a lowdown on the capabilities in 10g?
    1. Does it allow for A,B,C..H,J...N,P, AA, AB type "version ids" automatically applied? ( skipping I, O, etc ), rather than just numeric sequences?
    2. More complicated, when attaching these documents to other objects ( ECO's, parts, etc ) can it be identified to always use the "latest released" version.. or always use the version active at time of attachment?
    3. Does it have the ability to implement "sequences" or sub-versions. Example, document MyDocument, Version B, Sequence 3? Where there may be sequential sequences within a Version of a Document?
    4. Are there APIs available from the Workflow ( or built-ins ) to "promote" files attached to an Engineering Change Order ( ECO ) to "released" when the ECO gets approved?
    Thanks in Advance
    Karl

    Hi Karl,
    I assume you are referring to capabilities in Content Services 10g.
    Response to Question 1:
    The versioning model in Content Services 10g 10.1.2 is a serial versioning model with automatic labelling capabilities. However, we provide an extensive set of APIs (via Web Services) that can allow you to manually set your own version label. The automatic labelling capabilities at this stage cannot be extended. Thus, if you elect to utilize automatic labelling, you must choose one of out-of-box label types:
    VERSION_LABELING_DECIMAL
    VERSION_LABELING_TRIVIAL
    VERSION_LABELING_LOWERCASE
    VERSION_LABELING_UPPERCASE
    VERSION_LABELING_ROMAN
    We also maintain a version number for each version of a document.
    At this stage custom version labelling can only be performed through Web Services, or via the UI. We have not exposed the mechaism that allows you to plug-in your own custom automatic labelling algorithm. This however may be exposed in 10.2.
    Response to Question 2:
    Content Services supports a link object that can point to a specific version of a document, or can be configured to always point to the latest version of a document (this is an addition to standard documents/folders etc which a link can also point).
    Thus, if you were to send a user the URL to a content services link item, depending on how the link is configured, it could return either a specific version of a document, or the latest version. The link item and the associated destination item to which the link point can have completely different security associated with them. Thus, it is possible for a user to be able to locate the link, but not have access to the document/folder etc to which it points.
    Response to Question 3:
    Content Services at this stage does not provide automatic branched version support (whereby a single document could have x number of branches associated each maintaining a specific series of versions). However, depending on how you are accessing Content Services (e.g. via web services exclusively), you could potentially implement your own business logic layer on top to achieve this.
    Response to Question 4:
    Content Services integrates with Oracle BPEL via Oracle Advanced Queueing. Certain events in content services can be configured via folder policies to automatically trigger a workflow process. Events include on "document read", "upload", "check in", "check out", "user request" etc. The BPEL business process associated with the particular event then has the option of connecting back in to content services via the Web Services layer to automatically perform some particular operation. Thus, you could implement a custom business process that gets fired when a certain event in content services is activated which could connect back in to the repository and updates the status of a particular set of documents (for example, updates a category instance associated with a document).
    thanks,
    Matt.

  • The new updated version of iMovie 10 won't let me open my previous files I created before the update today. I have a wedding that I'm trying to finish and deliver and now I can't because that file version won't open. I keep getting an error message

    Hello,
    Please help me figure this out. I'm very unhappy at the moment. I'm fustrated and don't have any idea how to revert to the original version before the update was done on iMovie 10. I NEVER hated APPLE until NOW!! I love APPLE products and apps so please help me stay in that mindset. So I worked on some movie projects when I got my macbook pro 6 months ago. I update reguarly. I saw the update prompt and honestly, I did not think I would have ANY issuess with opening my previous files that I created only a few months ago with this updated version.The new updated version of iMovie 10 won't let me open my previous files I created before the update today. I have a wedding that I'm trying to finish and deliver and now I can't because that file version won't open. I keep getting an error message and the iMovie app closes. Last night I saw the file and tried to open it but no luck. Error message came up again. I reboot and turned off my laptop for the evening and tried again just now but nothing!! I need that video. My job depends on it! I worked so hard on this wedding video and now it's lost and won't open. I work another job and don't have much time. I really don't want to start all over again. Please help me. Thanks so much for your assistance.
    Fustrated APPLE customer
    Jolly A. Rupp

    I also have Jolly's problem. I found the iMovie 9.0.9 folder and tried to launch the older version of iMove. It would not launch. I removed all of the iMovie preferences from the Preferences folder, removed iMove 10 from the applications folder, and restarted my Mac. iMove 9.0.9 still won't launch and I can't access my videos created with the older version of iMovie. Is there a way to uninstall iMovie 10 and reinstall iMovie 9.0.9?
    I am running Yosemitie on a  iMac.
    Paul

  • How to download a file version from office 365 using csom

    I need to download an older file version from office 365 and get the data into a byte array. I have no trouble downloading the latest version with File.OpenBinaryStream() and I have no trouble loading the previous file versions with File.Versions. But now
    I need to actually download an older version of the file and it seems the only way is to use File.OpenBinaryDirect. So I am creating a client context using my oAuth access token and providing the correct path, but I am getting a (401) Unauthorized
    error. Looking with Fiddler I can see that the call to OpenBinaryDirect is somehow trying to post to my file URL and the server is responding with 401.
    context = TokenHelper.GetClientContextWithAccessToken(SPHostUrl, AccessToken);
    FileInformation info = File.OpenBinaryDirect(context, "/" + _fileVersion.Url);  //throws 401
    //leading slash required otherwise ArgumentOutOfRangeException
    I have to be able to access the older file versions with my c# code -- I don't have a viable app without that ability -- any help urgently needed and greatly appreciated!

    Thank you SO much (Can't wait for the next release)!
    For anyone else who lands here, here's the code I ended up using:
    // VersionAccessUser and VersionAccessPassword are stored in web.config
    // web.Url is loaded via the clientContext
    // myVersion is the FileVersion I got from the file's Versions.GetById() method
    // probably a lot of ways to get hostUrl, it just needs to be https://yourdomain.sharepoint.com/
    // - I'm running my app from a subweb
    // I had trouble following the links to get the full MsOnlineClaimsHelper code
    // (the one on msdn.com was missing RequestBodyWriter, WSTrustFeb2005ContractClient,
    // and IWSTrustFeb2005Contract
    // so I've included the code I used here.
    string myVersionFullUrl = string.Format("{0}/{1}", web.Url, myVersion.Url);
    string userName = WebConfigurationManager.AppSettings.Get("VersionAccessUser");
    string strPassword = WebConfigurationManager.AppSettings.Get("VersionAccessPassword");
    string hostUrl = Regex.Replace(web.Url, "([^/]+//[^/]+/).*", "$1");
    MsOnlineClaimsHelper claimsHelper = new MsOnlineClaimsHelper(hostUrl, userName, strPassword);
    var client = new WebClient();
    client.Headers["Accept"] = "/";
    client.Headers.Add(HttpRequestHeader.UserAgent, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)");
    client.Headers.Add(HttpRequestHeader.Cookie, claimsHelper.CookieContainer.GetCookieHeader(new Uri(hostUrl)));
    var document = client.DownloadString(myVersionFullUrl);
    // These classes are needed to download old versions of files (see: http://social.msdn.microsoft.com/Forums/en-US/7746d857-d351-49cc-b2f0-496663239e02/how-to-download-a-file-version-from-office-365-using-csom?forum=sharepointdevelopment)
    // I cobbled this file from http://social.technet.microsoft.com/Forums/msonline/en-US/4e304493-7ddd-4721-8f46-cb7875078f8b/problem-logging-in-to-office-365-sharepoint-online-from-webole-hosted-in-the-cloud?forum=onlineservicessharepoint
    // and http://fredericloud.com/2011/01/11/connecting-to-sharepoint-with-claims-authentication/
    using Microsoft.IdentityModel.Protocols.WSTrust;
    using Microsoft.SharePoint.Client;
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using System.Net;
    using System.Net.Security;
    using System.ServiceModel;
    using System.ServiceModel.Channels;
    using System.Text;
    using System.Web;
    using System.Xml;
    using System.Xml.Linq;
    namespace DPSiDoxAppWeb.Helpers
    /// <summary>
    /// Create a new contract to use for issue claims for the SharePoint requests
    /// </summary>
    [ServiceContract]
    public interface IWSTrustFeb2005Contract
    [OperationContract(ProtectionLevel = ProtectionLevel.EncryptAndSign,
    Action = "http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue",
    ReplyAction = "http://schemas.xmlsoap.org/ws/2005/02/trust/RSTR/Issue",
    AsyncPattern = true)]
    IAsyncResult BeginIssue(Message request, AsyncCallback callback, object state);
    Message EndIssue(IAsyncResult asyncResult);
    /// <summary>
    /// Implement the client contract for the new type
    /// </summary>
    public class WSTrustFeb2005ContractClient : ClientBase<IWSTrustFeb2005Contract>, IWSTrustFeb2005Contract
    public WSTrustFeb2005ContractClient(Binding binding, EndpointAddress remoteAddress)
    : base(binding, remoteAddress)
    public IAsyncResult BeginIssue(Message request, AsyncCallback callback, object state)
    return Channel.BeginIssue(request, callback, state);
    public Message EndIssue(IAsyncResult asyncResult)
    return Channel.EndIssue(asyncResult);
    /// <summary>
    /// Create a class that will serialize the token into the request
    /// </summary>
    class RequestBodyWriter : BodyWriter
    readonly WSTrustRequestSerializer _serializer;
    readonly RequestSecurityToken _rst;
    /// <summary>
    /// Constructs the Body Writer.
    /// </summary>
    /// <param name="serializer">Serializer to use for serializing the rst.</param>
    /// <param name="rst">The RequestSecurityToken object to be serialized to the outgoing Message.</param>
    public RequestBodyWriter(WSTrustRequestSerializer serializer, RequestSecurityToken rst)
    : base(false)
    if (serializer == null)
    throw new ArgumentNullException("serializer");
    _serializer = serializer;
    _rst = rst;
    /// <summary>
    /// Override of the base class method. Serializes the rst to the outgoing stream.
    /// </summary>
    /// <param name="writer">Writer to which the rst should be written.</param>
    protected override void OnWriteBodyContents(XmlDictionaryWriter writer)
    _serializer.WriteXml(_rst, writer, new WSTrustSerializationContext());
    public class MsOnlineClaimsHelper
    #region Properties
    readonly string _username;
    readonly string _password;
    readonly bool _useRtfa;
    readonly Uri _host;
    CookieContainer _cachedCookieContainer = null;
    DateTime _expires = DateTime.MinValue;
    #endregion
    #region Constructors
    public MsOnlineClaimsHelper(string host, string username, string password)
    : this(new Uri(host), username, password)
    public MsOnlineClaimsHelper(Uri host, string username, string password)
    _host = host;
    _username = username;
    _password = password;
    _useRtfa = true;
    public MsOnlineClaimsHelper(Uri host, string username, string password, bool useRtfa)
    _host = host;
    _username = username;
    _password = password;
    _useRtfa = useRtfa;
    #endregion
    #region Constants
    public const string office365STS = "https://login.microsoftonline.com/extSTS.srf";
    public const string office365Login = "https://login.microsoftonline.com/login.srf";
    public const string office365Metadata = "https://nexus.microsoftonline-p.com/federationmetadata/2007-06/federationmetadata.xml";
    public const string wsse = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
    public const string wsu = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
    private const string userAgent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)";
    #endregion
    class MsoCookies
    public string FedAuth { get; set; }
    public string rtFa { get; set; }
    public DateTime Expires { get; set; }
    public Uri Host { get; set; }
    // Method used to add cookies to CSOM
    public void clientContext_ExecutingWebRequest(object sender, WebRequestEventArgs e)
    e.WebRequestExecutor.WebRequest.CookieContainer = getCookieContainer();
    //e.WebRequestExecutor.WebRequest.UserAgent = userAgent;
    // Creates or loads cached cookie container
    CookieContainer getCookieContainer()
    if (_cachedCookieContainer == null || DateTime.Now > _expires)
    // Get the SAML tokens from SPO STS (via MSO STS) using fed auth passive approach
    MsoCookies cookies = getSamlToken();
    if (cookies != null && !string.IsNullOrEmpty(cookies.FedAuth))
    // Create cookie collection with the SAML token
    _expires = cookies.Expires;
    CookieContainer cc = new CookieContainer();
    // Set the FedAuth cookie
    Cookie samlAuth = new Cookie("FedAuth", cookies.FedAuth)
    Expires = cookies.Expires,
    Path = "/",
    Secure = cookies.Host.Scheme == "https",
    HttpOnly = true,
    Domain = cookies.Host.Host
    cc.Add(samlAuth);
    if (_useRtfa)
    // Set the rtFA (sign-out) cookie, added march 2011
    Cookie rtFa = new Cookie("rtFA", cookies.rtFa)
    Expires = cookies.Expires,
    Path = "/",
    Secure = cookies.Host.Scheme == "https",
    HttpOnly = true,
    Domain = cookies.Host.Host
    cc.Add(rtFa);
    _cachedCookieContainer = cc;
    return cc;
    return null;
    return _cachedCookieContainer;
    public CookieContainer CookieContainer
    get
    if (_cachedCookieContainer == null || DateTime.Now > _expires)
    return getCookieContainer();
    return _cachedCookieContainer;
    private MsoCookies getSamlToken()
    MsoCookies ret = new MsoCookies();
    try
    var sharepointSite = new
    Wctx = office365Login,
    Wreply = _host.GetLeftPart(UriPartial.Authority) + "/_forms/default.aspx?wa=wsignin1.0"
    //get token from STS
    string stsResponse = getResponse(office365STS, sharepointSite.Wreply);
    // parse the token response
    XDocument doc = XDocument.Parse(stsResponse);
    // get the security token
    var crypt = from result in doc.Descendants()
    where result.Name == XName.Get("BinarySecurityToken", wsse)
    select result;
    // get the token expiration
    var expires = from result in doc.Descendants()
    where result.Name == XName.Get("Expires", wsu)
    select result;
    ret.Expires = Convert.ToDateTime(expires.First().Value);
    HttpWebRequest request = createRequest(sharepointSite.Wreply);
    byte[] data = Encoding.UTF8.GetBytes(crypt.FirstOrDefault().Value);
    using (Stream stream = request.GetRequestStream())
    stream.Write(data, 0, data.Length);
    stream.Close();
    using (HttpWebResponse webResponse = request.GetResponse() as HttpWebResponse)
    // Handle redirect, added may 2011 for P-subscriptions
    if (webResponse.StatusCode == HttpStatusCode.MovedPermanently)
    HttpWebRequest request2 = createRequest(webResponse.Headers["Location"]);
    using (Stream stream2 = request2.GetRequestStream())
    stream2.Write(data, 0, data.Length);
    stream2.Close();
    using (HttpWebResponse webResponse2 = request2.GetResponse() as HttpWebResponse)
    ret.FedAuth = webResponse2.Cookies["FedAuth"].Value;
    ret.rtFa = webResponse2.Cookies["rtFa"].Value;
    ret.Host = request2.RequestUri;
    else
    ret.FedAuth = webResponse.Cookies["FedAuth"].Value;
    ret.rtFa = webResponse.Cookies["rtFa"].Value;
    ret.Host = request.RequestUri;
    catch (Exception ex)
    return null;
    return ret;
    static HttpWebRequest createRequest(string url)
    HttpWebRequest request = HttpWebRequest.Create(url) as HttpWebRequest;
    request.Method = "POST";
    request.ContentType = "application/x-www-form-urlencoded";
    request.CookieContainer = new CookieContainer();
    request.AllowAutoRedirect = false; // Do NOT automatically redirect
    request.UserAgent = userAgent;
    return request;
    private string getResponse(string stsUrl, string realm)
    RequestSecurityToken rst = new RequestSecurityToken
    RequestType = WSTrustFeb2005Constants.RequestTypes.Issue,
    AppliesTo = new EndpointAddress(realm),
    KeyType = WSTrustFeb2005Constants.KeyTypes.Bearer,
    TokenType = Microsoft.IdentityModel.Tokens.SecurityTokenTypes.Saml11TokenProfile11
    WSTrustFeb2005RequestSerializer trustSerializer = new WSTrustFeb2005RequestSerializer();
    WSHttpBinding binding = new WSHttpBinding();
    binding.Security.Mode = SecurityMode.TransportWithMessageCredential;
    binding.Security.Message.ClientCredentialType = MessageCredentialType.UserName;
    binding.Security.Message.EstablishSecurityContext = false;
    binding.Security.Message.NegotiateServiceCredential = false;
    binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.None;
    EndpointAddress address = new EndpointAddress(stsUrl);
    using (WSTrustFeb2005ContractClient trustClient = new WSTrustFeb2005ContractClient(binding, address))
    trustClient.ClientCredentials.UserName.UserName = _username;
    trustClient.ClientCredentials.UserName.Password = _password;
    Message response = trustClient.EndIssue(
    trustClient.BeginIssue(
    Message.CreateMessage(
    MessageVersion.Default,
    WSTrustFeb2005Constants.Actions.Issue,
    new RequestBodyWriter(trustSerializer, rst)
    null,
    null));
    trustClient.Close();
    using (XmlDictionaryReader reader = response.GetReaderAtBodyContents())
    return reader.ReadOuterXml();

  • How to convert java class file version without decompiling

    Hi,
    Oracle R12.1.3 i am having illegal access error while try to access the class file version Java 1.3 uses major version 47,So how to convert the class file version without using decompiling.
    Current java version is 1.6.0_07
    Is there any tool or API for converting class file version?
    Thanks,
    Selvapandian T

    Beside this I wonder where you get your error from since AFAIK 12c comes with java 1.6.
    Well wonder no more!
    OP isn't using Oracle 12c database.
    They are using Oracle R12.1.3 - which is the E- Business Suite.

  • Command to find File versions in Linux

    Will any one tell me the command to find the file versions of the following files:
    - POXVDCKB.pls
    - POXWPA9B.pls
    I am new to Financials app. Thanks in advance
    Regards,
    BMP

    oa.jsp is helpful in determining the version of Self Service Framework you are using. To check that out, use the table listed below:
      OA.jsp Version    Framework Version   Patch Number
         115.61           11.5.10.5RUP         5473858
         115.60           11.5.10.4RUP         4676589
         115.58           11.5.10.3RUP         4334965 / 5125546
         115.56           11.5.10H             3262919
         115.39           11.5.10G             3516965
         115.36           5.7H                 2771817 (11.5.9)
         115.27           5.6E                 2278688 (11.5.8)
         115.26           5.5.2E               2227335
         115.20           5.5.2C               2085104
         115.19           5.5.2B               2041847
         115.11           5.5.1E
         115.10           5.5.1B
         115.9            5.5.1A
         115.8            5.5.0E
         115.7            5.5.0D
         115.6            5.5.0C
         115.5            5.2.3D
         115.4            5.2.3C You can also check the version of OA Framework you currently have installed by logging in to your 11i instance and navigate to OAInfo.jsp using the following:
    http://hostname.domainname:port/OA_HTML/OAInfo.jsp

  • File by File picking with Standard File Adapter with NFS Protocal !!

    Hi Folks,
    How to pick file by file with little gap in a file directory by Standard File Adapter. One interface, one communication channle.
    Ex: XML_XXXXX_XXXX1.xml
          XML_XXXXX_XXXX2.xml
          XML_XXXXX_XXXX3.xml
    First I need to pick one file XM_XXXXX_XXXX1.xml then wait for 2 minutes and pick another one in ascending order.
    I have tried with Advance option "File size" and "Msec to wait before modification check" with 1200000 MS, but no use.
    Please folks any one can help in this, which is very big help?
    Kind Regards
    Many Thanks in advance
    San

    Hi
    My BPM steps are as follows:
    1. Receive step -- Asynch
    2. Transformation -- split the message 
    3. Switch step -- Condition "ID != ' ' from transform message'
    4. In side Switch Branch 1 -- Receiver determination - Receive acknowledgment - Application
    5. Send 1 -- with Application Transport, Queue Name - 'XXX'
          This XXX queue I have configured on ID with EOIO Service
    6. block step - Send multiple messages to same receiver on top
        I have send 2 different message to one receiver, the first message is only one , second message are multiple. I am splitting    with transformation step
    7. Sender -2  no acknowledgement active
    8. stop
    Can you please tell me where I am gonna wrong!!
    I will apprecite for your efforts
    Regards
    San

  • Upgrade Error when starting the DB   ora-00201 control file version

    Hi Experts,
    While Upgrading R12.1.1 Vision database version from 11.1.0.7 to 11gR2on RHEL 6 64bit Plateform the following patches 've been applied successfully on apps tier
    According to note ID: 1058763.1
    Patch 7303030 , 9062910 , 8919489 - Oracle E-Business Suite Techstack 12.1.3 Product Release Update Pack ANd 9868229 - 10163753 - 11071569 -
    9738085 - 9852070 - 12686610 - 6400501 Applied without any Issue.
    On DB tier i.e 11.1.0.7 these patches are applied successfully According to metalink Note *[ID 1058763.1]*
    Oracle Database Upgrade Guide 11g Release 2 (11.2) And Complete Checklist for Manual Upgrades to 11gR2 *[ID 837570.1]*
    *7695070 - Change In The Timezone File Format*, And 13417321 -14112098 DST Changes For DSTV18 -7695070
    Than we 've. Downloaded the 11.2.0.3 x86_64 software (of patch 10404530) Installed 11.2.0.3 on this Location /u01/oracle/VIS/db/tech_st/11.2.0.3
    the Old ORACLE_HOME is /u01/oracle/VIS/db/tech_st/11.1.0.7
    AND after that
    On 11.2.0.3 home, applied these additional 11.2.0.3 RDBMS patches successfully according to metalink Nots Mentioned above :
    *4247037 , 9858539, 3) 12942119 ,12960302 ,12985184 ,13001379,13004894 ,13258936 , 13366268,*
    Now Need to Run utlu112i.sql on existing 11.1.0.7 oracle database.. for that started the listener But when i tried
    to startup DB from sqlplus prompt. got this ora-00201 control file version error,
    We Unable to start the Database in order to run the utlu112i.sql on existing 11.1.0.7 oracle database..
    Please advise. we are doing manual upgrade.
    Thanks
    Priya

    Please verify the value of COMPATIBLE initialization parameter.
    Troubleshooting ORA-201 ORA-202 [ID 948710.1]
    OERR: ORA 201 control file version <num> incompatible with Oracle version <nu [ID 18286.1]
    Thanks,
    Hussein

Maybe you are looking for

  • Octroi is not calculating on Freight value

    Hello, We are maintained  all the conditions in PO conditions tab. Inclucding of Frieght conditions. here Octroi is not calculating on Freight value. If suppose the frieght vendor is different then it is ok to calculted Octri without frieght, If supp

  • How to add crystal enterprise server in portal?

    Hello, I am not familiar with SAP Portal, I am a little bit confused with the following direction from point 5. I don't know how to add the system in the landscape. I don't see the Edit list. The netweaver version is 2004. To configure the BusinessOb

  • Can't change my telephone number!

    Please help. I have changed my phone number that was linked to my Skype account. I have changed in settings and te old number doesn't appear anymore but when I sen a text message the person who receives responds to that message and it automatically s

  • Elememnts and Windows 7 64bit

    Will Elements 5 and/or 6 run properly on Windows 7 64 bit please

  • How to change script time limits in FlashBuilder 4/ error #1502

    Hy guys i have a seriusly problem, and i hope that any one to help me. I'm a developer GIS, and i develop a Web Mapping Application with FlexViewer ArcGIS. I have a widget that call a model that i published in REST. When i run the widget i have error