all groups > dotnet web services > november 2006 >
You're in the

dotnet web services

group:

Argument Exception : Value does not fall within the expected range


Argument Exception : Value does not fall within the expected range Nandkumar
11/24/2006 12:29:01 AM
dotnet web services: Currently I am working on Azman. I am using Windows XP professional, I have
installed AzMan (Windows 2003 Service Pack-1). I have defined operations,
tasks roles in AzMan. Now I want to do access check for the operations. I
have written following code,

AzAuthorizationStore store = new AzAuthorizationStoreClass();
store.Initialize(0, @"msxml://C:\nan\AzManStore.xml", null);

This code is working fine when I have created a test application (standalone
executable)in Microsoft VS2005 and accessing the AzMAn.
But when I have placed this code in the Windows Service i is giving me error
at the AzMan initialization step.
Argument Exceptopm : Value does not fall within the expected range.


Thanks in advance

Nandkumar
RE: Argument Exception : Value does not fall within the expected range Vlad Bezden
2/22/2007 11:01:40 PM

[quoted text, click to view]

You might have this problem if you are running it under 'Local System' account. Unfortunately this is the problem in XP. It should run fine on Win2K3.

Change service account to the domain account user who has access to that file. Such as Admin of the AzMan Policy store, it should resolve your problem.

Also make sure that under security tab of the AzMan's Policy store you add the same account that you assigned to the Windows Service.

Vlad.

BizTalk Utilities - Frustration free BizTalk Adapters
AddThis Social Bookmark Button