473,735 Members | 2,082 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cluster Automation Server: Access Denied for [NT AUTHORITY\SYSTE M]

Hi All,

I'm hoping someone will have some words of wisdom for me regarding MS
Clustering on Windows 2003.

I have a service that runs on a cluster. During invocation it's
supposed to determine from the cluster which node is active (this is a
active/standby configuration) and either proceed or sleep depending on
the status. The interface to the cluster is that advertised by the
standard interop layer built by Visual Studio for the Microsoft Cluster
Service Automation Classes (MSClusterLib)

The problem is that when the service runs under the Local System
context the call to the open the cluster object fails with an Access
Denied exception being reported from the underlying COM interface.

System.Unauthor izedAccessExcep tion: Access is denied. (Exception from
HRESULT: 0x80070005 (E_ACCESSDENIED )) at
MSClusterLib.Cl usterClass.Open (String bstrClusterName )

Strangely, when running under a domain account (granted, one that is a
member of the local administators group) it works fine (either as a
service, or from a console based app that invokes the same clustering
wrapper that I wrote). A low privileged, local account account also
fails. According to the cluster adminstator application, SYSTEM has
Full Control granted for the cluster. I've also verified that I am
actually running under the correct context after setting
AppDomain.Curre ntDomain.SetSec urityPrincipal( PrincipalPolicy .WindowsPrincip al)

I guess what I'm looking for are some ideas of where to start looking.
The infuriating this is that this *has* worked previously, and the fact
that I can get success when executing under my own account context at
least proves that the code is not fundamentally flawed.

Hopefully someone has some thoughts that they'd care to share. I'm
enclosing a sample (vb rather than C#) so you can see what I'm talking
about (and how there's not a lot that I can actually mess up here)

Public Sub New(ByVal cluster As String)
clusterToQuery = cluster
clusterIntf = New MSClusterLib.Cl uster
Try
If Not clusterIntf Is Nothing Then
clusterIntf.Ope n(cluster) <------ the
exception is raised here.
Else
Throw New ClusterOpenFail Exception(clust er, "Cannot
open cluster")
End If
Catch ex As System.Runtime. InteropServices .COMException
Throw New ClusterOpenFail NoRPC("Cluster" , ex)
Catch ex As Exception
Throw New ClusterOpenFail Exception(clust er, "Cannot
open cluster", ex)
End Try
End Sub

Regards

Simon

Dec 7 '06 #1
3 5426
"Simon" <si**********@g mail.comwrote in message
news:11******** *************@7 3g2000cwn.googl egroups.com...
Hi All,

I'm hoping someone will have some words of wisdom for me regarding MS
Clustering on Windows 2003.

I have a service that runs on a cluster. During invocation it's
supposed to determine from the cluster which node is active (this is a
active/standby configuration) and either proceed or sleep depending on
the status. The interface to the cluster is that advertised by the
standard interop layer built by Visual Studio for the Microsoft Cluster
Service Automation Classes (MSClusterLib)

The problem is that when the service runs under the Local System
context the call to the open the cluster object fails with an Access
Denied exception being reported from the underlying COM interface.

System.Unauthor izedAccessExcep tion: Access is denied. (Exception from
HRESULT: 0x80070005 (E_ACCESSDENIED )) at
MSClusterLib.Cl usterClass.Open (String bstrClusterName )

Strangely, when running under a domain account (granted, one that is a
member of the local administators group) it works fine (either as a
service, or from a console based app that invokes the same clustering
wrapper that I wrote). A low privileged, local account account also
fails. According to the cluster adminstator application, SYSTEM has
Full Control granted for the cluster. I've also verified that I am
actually running under the correct context after setting
AppDomain.Curre ntDomain.SetSec urityPrincipal( PrincipalPolicy .WindowsPrincip al)

I guess what I'm looking for are some ideas of where to start looking.
The infuriating this is that this *has* worked previously, and the fact
that I can get success when executing under my own account context at
least proves that the code is not fundamentally flawed.

Hopefully someone has some thoughts that they'd care to share. I'm
enclosing a sample (vb rather than C#) so you can see what I'm talking
about (and how there's not a lot that I can actually mess up here)

Public Sub New(ByVal cluster As String)
clusterToQuery = cluster
clusterIntf = New MSClusterLib.Cl uster
Try
If Not clusterIntf Is Nothing Then
clusterIntf.Ope n(cluster) <------ the
exception is raised here.
Else
Throw New ClusterOpenFail Exception(clust er, "Cannot
open cluster")
End If
Catch ex As System.Runtime. InteropServices .COMException
Throw New ClusterOpenFail NoRPC("Cluster" , ex)
Catch ex As Exception
Throw New ClusterOpenFail Exception(clust er, "Cannot
open cluster", ex)
End Try
End Sub

Regards

Simon


Please (cross)post the the appropriate NG, VB is not Csharp. That said, IMO you are using
"localsytem " account to open a remote cluster server, this is simply not possible, you have
to run your code in an account that has administrative privileges on the (remote) cluster.

Willy.

Dec 7 '06 #2
I was sure I'd posted a response to this, but it looks like it never
showed up.

It's not obvious from my posting, but this code is executing directly
on the cluster servers rather than from a remote workstation or server.
The end application is performing audits against SQL Server instances
and the idea is for it to determine if the hosting server is clustered
and if so to query the cluster and only execute on the node that is
owning the sql server resource but for to sleep on the standby members
(so I don't have extra audits originating from standby cluster members)

My example was just to show that I was essentially calling the open
method of the interop assembly that VS2005 produces and IMO there's
likely to be more experience with clustering here than in the vb groups
as more places *seem* to use c# for this type of enterprise stuff. I'm
looking for people with a bit of experience with clustering under .NET
rather than for a specific language resolution as I suspect that this
is a COM/Clustering issue. Hope that clarifies things a bit.

Cheers

On Dec 7, 8:43 pm, "Willy Denoyette [MVP]"
<willy.denoye.. .@telenet.bewro te:
"Simon" <simon.dev...@g mail.comwrote in messagenews:11* *************** *****@73g2000cw n.googlegroups. com...


Hi All,
I'm hoping someone will have some words of wisdom for me regarding MS
Clustering on Windows 2003.
I have a service that runs on a cluster. During invocation it's
supposed to determine from the cluster which node is active (this is a
active/standby configuration) and either proceed or sleep depending on
the status. The interface to the cluster is that advertised by the
standard interop layer built by Visual Studio for the Microsoft Cluster
Service Automation Classes (MSClusterLib)
The problem is that when the service runs under the Local System
context the call to the open the cluster object fails with an Access
Denied exception being reported from the underlying COM interface.
System.Unauthor izedAccessExcep tion: Access is denied. (Exception from
HRESULT: 0x80070005 (E_ACCESSDENIED )) at
MSClusterLib.Cl usterClass.Open (String bstrClusterName )
Strangely, when running under a domain account (granted, one that is a
member of the local administators group) it works fine (either as a
service, or from a console based app that invokes the same clustering
wrapper that I wrote). A low privileged, local account account also
fails. According to the cluster adminstator application, SYSTEM has
Full Control granted for the cluster. I've also verified that I am
actually running under the correct context after setting
AppDomain.Curre ntDomain.SetSec urityPrincipal( PrincipalPolicy .WindowsPrincip *al)
I guess what I'm looking for are some ideas of where to start looking.
The infuriating this is that this *has* worked previously, and the fact
that I can get success when executing under my own account context at
least proves that the code is not fundamentally flawed.
Hopefully someone has some thoughts that they'd care to share. I'm
enclosing a sample (vb rather than C#) so you can see what I'm talking
about (and how there's not a lot that I can actually mess up here)
Public Sub New(ByVal cluster As String)
clusterToQuery = cluster
clusterIntf = New MSClusterLib.Cl uster
Try
If Not clusterIntf Is Nothing Then
clusterIntf.Ope n(cluster) <------ the
exception is raised here.
Else
Throw New ClusterOpenFail Exception(clust er, "Cannot
open cluster")
End If
Catch ex As System.Runtime. InteropServices .COMException
Throw New ClusterOpenFail NoRPC("Cluster" , ex)
Catch ex As Exception
Throw New ClusterOpenFail Exception(clust er, "Cannot
open cluster", ex)
End Try
End Sub
Regards
SimonPlease (cross)post the the appropriate NG, VB is not Csharp. That said, IMO you are using
"localsytem " account to open a remote cluster server, this is simply not possible, you have
to run your code in an account that has administrative privileges on the (remote) cluster.

Willy.- Hide quoted text -- Show quoted text -
Dec 12 '06 #3
"Simon" <si**********@g mail.comwrote in message
news:11******** **************@ n67g2000cwd.goo glegroups.com.. .
I was sure I'd posted a response to this, but it looks like it never
showed up.

It's not obvious from my posting, but this code is executing directly
on the cluster servers rather than from a remote workstation or server.
The end application is performing audits against SQL Server instances
and the idea is for it to determine if the hosting server is clustered
and if so to query the cluster and only execute on the node that is
owning the sql server resource but for to sleep on the standby members
(so I don't have extra audits originating from standby cluster members)

My example was just to show that I was essentially calling the open
method of the interop assembly that VS2005 produces and IMO there's
likely to be more experience with clustering here than in the vb groups
as more places *seem* to use c# for this type of enterprise stuff. I'm
looking for people with a bit of experience with clustering under .NET
rather than for a specific language resolution as I suspect that this
is a COM/Clustering issue. Hope that clarifies things a bit.

Cheers

You are running this as a service in the "localsyste m" account, this account is a LOCAL
account which has not network access privilege, that is, the service cannot access a "remote
"resource and that's exactly what *MSClusterLib.C lusterClass.Ope n(String bstrClusterName )*
is trying to do. The argument bstrClusterName denotes a "network resource", the COM client
doesn't care whether it's actually pointing to a local or remote resource, the client's
token has no network access privileges, result Access Denied for [NT AUTHORITY\SYSTE M]. Your
only option is to run this in the "cluster administrator account" (a domain account).

Willy.

Dec 12 '06 #4

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

Similar topics

0
1682
by: Jon Rista | last post by:
Hello. I'm trying to automate Excel in a C# Windows Service. This windows service has to be able to access files on network shares, so it uses a domain account on a WinNT 4.0 domain server, rather than the Local Service or Network Service, or System account. I'm running into a problem, though, with trying to instantiate Excel. When I execute the following: using Excel = Microsoft.Office.Interop.Excel; using Microsoft.Office.Core; //...
17
25502
by: Peter Ericsson | last post by:
Does anyone know if Microsoft plans to implement an C# (.net) API for MS Cluster like the one in C++? Or has someone else written a C# wrapper for the C++ API?
2
3124
by: Kosic | last post by:
i wrote this js function in HTML: function OpenWord() { var a = new ActiveXObject("Word.Application"); a.Visible = true; a.WindowState = 1; window.blur(); a.Activate(); } if the it runs at localhost, it is OK, but it fail to create object when running at other client. ( The same Office suite was installed in server &
4
276
by: Andy | last post by:
I am trying to do the following from an ASP.NET Web Application (C#). User fills out a form. The program takes those answers and merges them with a WORD document. I have tried the few examples of launching word from my app and get ACCESS DENIED when the Word attempts to start. Once the merge is complete, the document gets saved and sent to the user to open and further edit if necessary. The initial merge part doesn't have to
1
1915
by: Ron | last post by:
Hi there, We have a web application written in C# that need to deal with MS word 2003. it works fine on developer's machine but when we deployed it on web server, we got error msg says "Access is denied". So i guess the code is OK but web server configuraion has to be changed. I got .Net framework 1.1 installed on webserver and deployed the webapplication. Then i installed Office 2003. and set DCOM(word) permission and web folder...
2
1964
by: Ron | last post by:
Hi there, We have a web application written in C# that need to deal with MS word 2003. it works fine on developer's machine but when I deployed it on web server, we got error msg says "Access is denied". So i guess the code is OK but web server configuraion has to be changed. I got .Net framework 1.1 installed on webserver and deployed the webapplication. Then i installed Office 2003. and set DCOM(word) permission and web folder...
1
1944
by: Ron | last post by:
Hi there, We have a web application written in C# that need to deal with MS word 2003. it works fine on developer's machine but when I deployed it on web server, we got error msg says "Access is denied". So i guess the code is OK but web server configuraion has to be changed. I got .Net framework 1.1 installed on webserver and deployed the webapplication. Then i installed Office 2003. and set DCOM(word) permission and web folder...
0
1401
by: abdellatif | last post by:
hi all i have installed a 2 nodes cluster (active/passive)win2003 sp1 containing an exchange2003 virtual server and sqlserver2000(sp3) virtual server. everything work well, after 1 month the cluster fails because the password of the cluster service account(and also sqlagent and sqlserver services) had expired, so i have midified the account to "password never expire" at that moment node1 was active and the cluster work again except the...
3
5735
by: Bruno LIVERNAIS | last post by:
Hi, We are currently installing a DB2 V9 ESE on a Linux server (RHEL4U4-x86_64). Installation runs successfully on each node. Database user environment is OK and the instance is well created. To be sure, we've started the database with db2start =successfull. And then shut it down again successfully too. The tricks appears when we switch the hp MC/ServiceGuard (A.11.16 for Linux) package to the other node... the database does not want...
0
8784
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9462
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9326
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9248
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8199
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4558
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3270
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2738
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2187
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.