Plugin running under SYSTEM account
-
Thursday, 12 April 2012 4:04 AM
Hi,
CRM Details:
CRM 4.0, SQL 2008, Roll Up 10, Server 2k3.
We back up a DB and restored as different name in different SQL server in same domain & created a new Organization by importing it. Mapping done while importing is - auto map users. Now the issue is with the plug-in, the same plug-in working with the original DB, is not working.
On service.execute throws an exception - server was unable to process the request.
We are getting context.userid as SYSTEM user, which is not visible in CRM, even though we had done
ICrmService service = context.CreateCrmService(true) & in registration tool, it is selected as calling user.
Installation of CRM is done by same logged in user and he is system administrator also in CRM, then also his ID is not coming in context.userid
or initiating user id. One more update, in IIS, the same user which is administrator and used for importing org, when right clicked on CRM website and done Browse - after providing user name and password, it says "Invalid User Authorization - The user authentication passed to the platform is not valid"
Steps followed to resolve the issue-
1. Tried re-import the DB and created new Org.
2. Tried Re-installing CRM on different port
3. Admin user changed to different name and saved and then revert back.
4. Plug-in executed with different account - same GUID of SYSTEM user.
Does anyone know what is causing this?
All Replies
-
Thursday, 12 April 2012 5:56 AMAnswerer
Hi Brikee,
Is your app pool service account set to an account that is also a CRM user?
hth,
Scott
Scott Durow
Read my blog: www.develop1.net/public
If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful" -
Thursday, 12 April 2012 6:58 AMNo, it is set as Network Service for CRM app pool.
Brickee
-
Wednesday, 18 April 2012 11:24 AM
It is resolved after setting the log on user of email router service as a CRM admin user.Brickee
- Marked As Answer by Brickee Wednesday, 18 April 2012 11:37 AM