Thanks for responsing. The full message is:
System.Security.SecurityException
Security error.
at
Absence_Request_Trusted.Absence_Request_Trusted.OnLoad(DocReturnEvent
e)
at
Microsoft.Office.Interop.InfoPath.SemiTrust._XDocumentEventSink2_SinkHelper.OnLoad(DocReturnEvent
pEvent)
I could make the form fully trusted since all the users are internal to
our project and there are not that many users. Can I run RegForm with
an InfoPath form that uses Managed Code? The form itself doesn't seem
to be in the Visual Studio Project/Absence Request etc... folder as i
expected (I'm new to this, probably a stupid question)
the other complication is that I want to ultimately store the form on
SharePoint. I've read that RegForm forms can be used w/ SharePoint,
and I've also read the opposite.
thanks again
steve
> What is the full security error message? I suspect you may be having a code
> access security issue and may have to give your form full trust for it to
[quoted text clipped - 50 lines]
> > domainRoot.Dispose()
> > rootDse.Dispose()
steve@verizon.net - 11 Dec 2006 16:36 GMT
> Thanks for responsing. The full message is:
>
[quoted text clipped - 75 lines]
> > > domainRoot.Dispose()
> > > rootDse.Dispose()
I see the form now - it's in the BIN/DEBUG folder......... (weird) -
should i run RegForm against that, and then publish the result to
SharePoint?
S.Y.M. Wong-A-Ton - 12 Dec 2006 04:57 GMT
This does not look like a code access security permission error, so giving
your form full trust might not solve the problem. Perhaps the user account
being used to access Active Directory does not have permission to do so?
There are 2 ways to give your form full trust: 1. Install it using regform
or 2. sign it with a digital certificate. I meant the latter. Since the form
template will be published to SharePoint, it is best to use the second option.
---
S.Y.M. Wong-A-Ton
> Thanks for responsing. The full message is:
>
[quoted text clipped - 75 lines]
> > > domainRoot.Dispose()
> > > rootDse.Dispose()