473,387 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Argument Exception : Value does not fall within the expected range

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

Nov 24 '06 #1
1 16572
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
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
http://www.topxml.com/biztalkutilities
Feb 22 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: Glenn Venzke | last post by:
I'm writing a class with a method that will accept 1 of 3 items listed in an enum. Is it possible to pass the item name without the enum name in your calling statement? EXAMPLE: public enum...
4
by: Todd Perkins | last post by:
Hello all, surprisingly enough, this is my first newsgroup post, I usually rely on google. So I hope I have enough info contained. Thank you in advance for any help! Problem: I am getting...
9
by: subdhar | last post by:
I'm getting following error in asp.net application.I search the web and couldn't find error like this can any one help me in trouble with this error Specified argument was out of the range of...
0
by: anamika | last post by:
Hi I've created a fresh Crystal Report in Visual Studio .NET 2003. I'm aware of the problem that Crystal Reports .NET have by default. I'm trying to pass a string parameter to my report. If my...
5
by: pcnerd | last post by:
I'm trying to create a program that plots randomly colored pixels on a bitmap & then displays the bitmap. When I run the program, I see the pixels being plotted down the left side of the form. When...
2
by: Suresh | last post by:
Hello All, Can anyone help me with this error? I have developed an application using VB Express Edition. The backend being Oracle XE. The application is been published on the server, installation...
10
by: Immortalist | last post by:
Various aquisition devices that guide learning along particular pathways towards human biases. And as E.O. Wilson might say mental development appears to be genetically constrained. (1) Language...
2
by: Nathan Sokalski | last post by:
I have a DataList in which the ItemTemplate contains two Button controls that use EventBubbling. When I click either of them I receive the following error: Server Error in '/' Application....
8
by: Lambda | last post by:
When I call the standard strncpy function, I provide it a negative argument, such as: strncpy(s, ct, -1) I compile the code with gcc, when I run, it says "Segmentation fault". Do you think...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.