Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / February 2006

Tip: Looking for answers? Try searching our database.

Strong Naming InfoPath Managed Assemblies

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JohnD - 01 Feb 2006 02:51 GMT
Hi there

I'm developing a .NET (C#) codebehind for an InfoPath form, using InfoPath
2003 SP1 and Visual Studio 2003 EntArch.

Due to various reasons (mostly because I'm wanting to use Isolated Storage -
long story!) I need to add a strong name to the DLL file assembly that Visual
Studio generates. I'm just using the AssemblyKeyFile attribute in
AssemblyInfo.cs. This, however, doesn't seem to be liked by InfoPath, which
throws an error saying:

InfoPath cannot open the selected form because of an error in the form's code.
Request failed.

whenever I load the form in preview mode.

I suspect I need to update the manifest.xsf file inside the published XSN to
point to the right assembly version, but I'm not sure whether this is
correct, and if so, how to do this.

Has anyone else managed to strong name a managed InfoPath assembly?

Thanks!

- John
JohnD - 02 Feb 2006 00:16 GMT
Hi

We managed to resolve the issue - it's a pretty simple one actually. Adding
the assembly attribute System.Security.AllowPartiallyTrustedCallersAttribute
made it work fine.

Hope this helps someone else out there.

- John

> Hi there
>
[quoted text clipped - 21 lines]
>
> - John
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.