Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Accessing data from another web application throws an SQLInvalidException

$
0
0

Hi guys, 

The scenario is:

  1. A MySiteHost site collection (example name: MY SITE). Web application's application pool account isspmysite.
  2. A TeamSite site collection (example name: TEAM SITE). Web application's application pool account isspteamsite
  3. A webpart at MY SITE is retrieving data from TEAM SITE; specifically it's trying to retrieve SPGroups.
  4. Hitting the following SQL Exception during data retrieval that MY SITE's application pool account could not login toTEAM SITE's content DB.

Tried:

  1. Changing MY SITE's application pool account to be the same asTEAM SITE's (spteamsite). Data retrieval successful! But we have a requirement that different web applications must have different application pool accounts. :(
  2. Changing MY SITE's application pool account to the farm account (ex:spfarm). Data retrieval successful! But we have a requirement that we should not be using the farm account.
  3. In TEAM SITE's content DB, granted SPDataAccess or DBOwner role tospmysite. Unsuccessful. Side effect is in accessing MY SITE, it's hitting the "This website is not shared to you" error page (Cannot make sense).

We're pretty sure it's more of a configuration problem.

Appreciate your time and help.


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>