Weird semitrust/security error - InfoPath Dev
in

InfoPath Dev

Weird semitrust/security error

Last post 02-27-2007 09:43 AM by Shiraz Cupala. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 02-13-2007 02:06 PM

    • DuneBug
    • Not Ranked
    • Joined on 12-14-2006
    • USA
    • Posts 6

    Weird semitrust/security error

    i have an infopath form load up forms from 2 different templates.. Using the line:
    thisApplication.XDocuments.NewFromSolution(path)

    path is a variable containing the URI.

    The error is this:
    System.Runtime.InteropServices.COMException
    InfoPath cannot create a new, blank form.
    InfoPath cannot load this form. The signature on this form is not from a trusted publisher.
    Microsoft.Office.Interop.InfoPath.SemiTrust.XDocumentsCollectionWrapper.NewFromSolution(Object varURI)

    Here is the 'weird' part: This error is not thrown every time.

    My source form we'll call S. My two templates we'll call T1 and T2.

    I click a button on S to load T1. It works.
    I do it again, it works.
    I click a button on S to load T2. IT fails.
    Click a button on S to load T1. It fails.
    (mind you, this is somewhat random... sometimes things work perfectly)

    If the path were the problem the form would never load and i shouldn't be getting a signature error.
    Also - I am a trusted publisher.
    If i manually load up T1 or T2 without going through S, it will work without throwing any security errors. And those forms have calls which require full trust.

    I guess what i'd like to know is what types of things can cause that error which could also be changing just from me running a form from a template?

    note: Our IT guys were messing around with the group profiles, and when they were done i had to resign and install my security certs but they still worked. I'm 95% sure that has something to do with it, as everything was working fine before that.
  • 02-13-2007 05:24 PM In reply to

    Re: Weird semitrust/security error

    Hi DuneBug,
    Does the form have code in it? Sounds like it has a COM ActiveX control in the form that is not trusted or something.
    65537!
    Patrick Halstead
    Project Manager at Qdabra
  • 02-16-2007 11:56 AM In reply to

    • DuneBug
    • Not Ranked
    • Joined on 12-14-2006
    • USA
    • Posts 6

    Re: Weird semitrust/security error

    yes there's plenty of code in both forms.

    We think it's a problem with security certificates and my status as a trusted publisher.

    But if that's so, I still don't understand why it would work sometimes and not work others. It's the same path of execution each time with nearly the same parameters.

  • 02-27-2007 09:43 AM In reply to

    Re: Weird semitrust/security error

    Definitely sounds like a certificate issue. Especially if it was working before your certs were redone.

    Shiraz Cupala / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.