Sign in
|
Join
|
Help
in
Blog for Sharepoint Hunter
Community Bloggers
(Entire Site)
SharePoint Blogs
The Best Place for SharePoint-related Blogs
Home / Blogs
Get a blog here!
SharePoint University
Downloads
This Blog
Home
About
Syndication
RSS
Atom
Comments RSS
Recent Posts
Best Practices :: Keeps your MOSS 2007 Environment available and performing well
Technical diagrams and other supplemental documentation
Sharepoint Training Solutions
Microsoft SharePoint Deployment Planning Services
.NET Framework 3.5 and Infopath compatibility issue
Tags
BDC
BDC Infopath
Best Practice
Forms Services
Infopath 2007
Javascript
MOSS
MOSS SP1
SharePoint
Sharepoint Deployment Options
SharePoint Training
SPD
WSS 3.0
Archives
August 2008
(3)
July 2008
(1)
April 2008
(1)
March 2008
(3)
February 2008
(2)
January 2008
(2)
December 2007
(1)
October 2007
(1)
September 2007
(1)
August 2007
(1)
July 2007
(4)
Blog for Sharepoint Hunter
A (un)managed bag of ideas, tricks, gripes about New Emerging Technologies
April 2008 - Posts
.NET Framework 3.5 and Infopath compatibility issue
Itay
has reported this issue and i had same issue with my development environment.
Request failed.
System.Security.SecurityException: Request failed.
at Microsoft.SharePoint.Administration.SPPersistedObject.ToString()
at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, SPUserToken userToken)
http://www.infopathdev.com/forums/p/7535/27677.aspx
The reason why this environment failed is due to Code Access Security. By default a DLL accessing the SharePoint OM will fail on the SharePoint side, unless you modify the given trust levels beyond their scope, create your own, or use the Full trust level. Another way around the problem would be to install the assembly into the GAC (C:\Windows\assembly), which would require strongly naming the DLL. None of these options should be taken lightly, so be sure to dive into CAS before deciding to go with any of these paths. Also, you can look at CAS as it applies to InfoPath here:
http://msdn2.microsoft.com/en-us/library/aa944687(VS.80).aspx
.
Finally, i digged into this problem and resolved by follow the below steps.To allow the form template's business logic to call this member when it is being debugged or previewed, you must set your form template's security level to
Full Trust
as described in the following procedure.
Configuring a Managed Code Form Template that Requires Full Trust
Set your form's security level to Full Trust
If you are working in InfoPath, open the form template in design mode.
If you are working in Visual Studio, open the
InfoPath Form Template
project, and then click the
manifest.xsf [Design]
tab to display the form designer.
On the
Tools
menu, click
Form Options
.
In the
Category
list, click
Security and Trust.
Under
Security Level
, clear
Automatically determine security level
.
Select
Full Trust
, and then click
OK
.
Posted
Apr 22 2008, 10:03 AM
by
LovedJohnySmith
with
1 comment(s)
Filed under:
Infopath 2007
Need
SharePoint Training
? Attend a
SharePoint Bootcamp
!
Posts (c) their respective authors. Everything else (c) 2007 SharePoint Experts