At that time, some of the issues encountered when the SPS OM was developed under the Web Application, making a record for future reference. Question 1: Tip: "An Attempt Was Made to Perform An Unauthorized Registry Operation." Or: The database requested in the login 'SPS01_CONFIG_DB' is not available. Login failed. User 'NT Authority / Network Service' failed. Description: Execute an unprocessed exception during the current web request. Check the stack tracking information to learn more about the error and the code caused in the code. Exception Details: System.Data.sqlClient.sqlexception: The database that is requested in the login 'SPS01_CONFIG_DB' cannot be opened. Login failed. User 'NT Authority / Network Service' failed. Source error:
Row 40: String Strurl = http: // fHQ-ITD-PC196: 8088; Row 41: TopologyManager TM = New TopologyManager ("FHQ-ITD-PC196", "SPS01_Config_DB"); line 42: Portalsite PS = Tm.Portalsites [ NEW URI (Strurl)]; line 43: TRY line 44: {Source file: f: / wwwroot / share point webapplication / webform3.aspx.cs line: 42 Stack Track:
[SQLEXCEPTION: Unable to open the database requested in 'SPS01_CONFIG_DB'. Login failed. User 'NT Authority / Network Service' failed. ] Microsoft.SharePoint.Portal.Data.ac () Microsoft.SharePoint.Portal.Data.ac () Microsoft.SharePoint.Portal.Data.aa (SqlCommand A_0, CommandBehavior A_1, Boolean A_2) Microsoft.SharePoint.Portal.Data. aa (SqlCommand A_0, CommandBehavior A_1, Boolean A_2) Microsoft.SharePoint.Portal.Data.aa (SqlCommand A_0, CommandBehavior A_1) Microsoft.SharePoint.Portal.Data.aa (SqlCommand A_0, CommandBehavior A_1) Microsoft.SharePoint.Portal.Topology .PortalSiteCollection.get_Item (Uri siteUrl) Share_Point_WebApplication.WebForm3.UserProfileSample () in f: / wwwroot / share point webapplication / webform3.aspx.cs: 42 Share_Point_WebApplication.WebForm3.Page_Load (Object sender, EventArgs e) in f: / wwwroot / share point webapplication / webform3.aspx.cs: 29 System.Web.UI.Control.OnLoad (EventArgs e) 67 System.Web.UI.Control.LoadRecursive () 35 System.Web.UI.Page.ProcessRequestMain () 750 Solve: When the application uses the SPS object model, you need to use the same application pool as the SPS, ie "MssharePointportalappup". Question 2: ADMINISTRATOR problem in SPS development
When UserProfileManager in SPS is used through OM, the UserProfile is overlooked, if not the SPS, the Administrator will have such a tip: "Access Denied: Only An Administrator May Enumerate Through All User Profiles".
Related information link:
http://www.bluedoglimited.com/sharepointthoughtrs/viewPost.aspx?id=7