473,698 Members | 2,635 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Permission denied: 'GetObject'

CJM
I'm building an ASP app that uses Windows Authentication (IWA).

I have an authentication routine that assesses if & how the user can use the
application (see code snippet below). Users of a particular group have full
permissions (configured via IIS) and all other users have read/execute
permissions.

When I call the authentication page from the server on my own PC, everything
seems to work, but I guess this is not a respresentative test. So I
installed the page on my development server and called it again from my own
PC. This time a got an error: Permission denied: 'GetObject' .

The error occurs on the second GetObject call. It seems to point to a
permissions issue, but I'm not sure where to look.

Any ideas?

Cheers

Chris

Code Snippet:

Sub AuthUser()
Dim oGroup, oUser, aUID

If Session("UID") = "" or 1 Then 'remove "or 1" from live system
aUID = Split(Request(" LOGON_USER"), "\")
Response.Write aUID(0) & " " & aUID(1)

'Check if aUID(1) holds a value
If UBound(aUID) > 0 Then
Set oGroup = GetObject("WinN T://" & "HEXADEX" & "/" &
"Teconnex_Scope _Users" & ",group")
Set oUser = GetObject("WinN T://" & "HEXADEX" & "/" & aUID(1) & ",user")
<======== Error line.

If oGroup.IsMember (oUser.ADsPath) Then
'User authenticated
Session("UID") = aUID(1)
Session("Name") = oUser.Fullname
Session("Auth") = 1
Else
'Signed in as Guest
Session("UID") = "Guest"
Session("Name") = oUser.Fullname
Session("Auth") = 0
End If
Else
'Other problen so sign in as Guest
Session("UID") = "Guest"
Session("Auth") = 0
End If
End If
End Sub
Jul 19 '05 #1
2 6001
Sounds similar to a problem I had with this. If i remember correctly it was
down to user permissions on the active directory container, we had read
only access to everyone and that worked but it was taken off and we just got
the same error as you.
What we did was to change the user in IIS with a user which had domain admin
rights (or atleast read rights to the active directory).
Might not be the best way round it but it was an internal project and
security of this didnt cause us a problem.
Hope this helps.

Cheers,
Rob

"CJM" <cj*******@news groups.nospam> wrote in message
news:uI******** ******@tk2msftn gp13.phx.gbl...
I'm building an ASP app that uses Windows Authentication (IWA).

I have an authentication routine that assesses if & how the user can use
the
application (see code snippet below). Users of a particular group have
full
permissions (configured via IIS) and all other users have read/execute
permissions.

When I call the authentication page from the server on my own PC,
everything
seems to work, but I guess this is not a respresentative test. So I
installed the page on my development server and called it again from my
own
PC. This time a got an error: Permission denied: 'GetObject' .

The error occurs on the second GetObject call. It seems to point to a
permissions issue, but I'm not sure where to look.

Any ideas?

Cheers

Chris

Code Snippet:

Sub AuthUser()
Dim oGroup, oUser, aUID

If Session("UID") = "" or 1 Then 'remove "or 1" from live system
aUID = Split(Request(" LOGON_USER"), "\")
Response.Write aUID(0) & " " & aUID(1)

'Check if aUID(1) holds a value
If UBound(aUID) > 0 Then
Set oGroup = GetObject("WinN T://" & "HEXADEX" & "/" &
"Teconnex_Scope _Users" & ",group")
Set oUser = GetObject("WinN T://" & "HEXADEX" & "/" & aUID(1) & ",user")
<======== Error line.

If oGroup.IsMember (oUser.ADsPath) Then
'User authenticated
Session("UID") = aUID(1)
Session("Name") = oUser.Fullname
Session("Auth") = 1
Else
'Signed in as Guest
Session("UID") = "Guest"
Session("Name") = oUser.Fullname
Session("Auth") = 0
End If
Else
'Other problen so sign in as Guest
Session("UID") = "Guest"
Session("Auth") = 0
End If
End If
End Sub

Jul 19 '05 #2
Hi CJM,

I'm viewing this post and find that this is a duplicated one with another
thread in the
microsoft.publi c.inetserver.ii s

newsgroup, another member of MSFT has replied you there. You may have a
look. In addition, if you feel
it convenient that we continue to discuss in that thread, please feel free
to post there. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Jul 19 '05 #3

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

Similar topics

3
19160
by: Yitzhak | last post by:
I am having "Permission denied" error while calling LogEvent method of WScript.Shell component. Basically, ASP page calls Windows Script Host Shell component to log events to the OS Application Event log. My environment: Windows Server 2003, IIS 6, WSH, Classic ASP, Vbscript Below is the code and the error: Code:
1
4324
by: Mark E. Hamilton | last post by:
Sorry, I probably should have re-stated the problem: We're using Python 2.3.5 on AIX 5.2, and get the follow error messages from some of our code. I haven't yet tracked down exactly where it's coming from: sem_trywait: Permission denied sem_wait: Permission denied sem_post: Permission denied
10
4613
by: Florian G. Pflug | last post by:
Hi I installed a postgres-application (which was developed on debian woody) on red hat 9 today, using the postgres 7.3 rpms from redhad. One of my the triggers uses the pg_settings table (more precisely, it updates that table to change the search_path temporarily). With the postgres 7.3 (and 7.4 too) installed on my debian development system, this worked fine. On redhat 9, however, I get an "pg_settings: permission denied" error when my...
2
3681
by: Taishi | last post by:
New user of SQL Everything is on the same machine My error is close to the bottom After reading it today, I can see there is a problem with 2 dbases 'PUBS' and 'Master' There are also some comments from the group: ---microsoft.public.sqlserver.odbc-- subject: Permission Denied -- Thanks for help guys I was able to find a trial version of the Enterprise Manager.
1
4168
by: joe | last post by:
We just moved a legacy asp application to a Win2003 server. The following line of code: set objUser = GetObject("WinNT://" & strDomain & "/" & strUserName & ",user") Raises the following error: Microsoft VBScript runtime error '800a0046' Permission denied: 'GetObject'
0
3200
by: debug03 | last post by:
I am executing a DTS package on a Windows 2000 sp4 server running SQL Server 2000 and IBM DB2 V7 client. The DTS package source data(SQL Server) is selected from SQL server table and inserts data to the destination table(DB2). I get the following error when the package is executed: The execution of the following DTS Package succeeded: Package Name: PEX2-CopyQualDatatoDB2-UAT Package Description: (null) Package ID:...
0
3401
by: private.anders | last post by:
Hi David! Really need assistance since I have been struggling with a problem long time now. I am running a web application on a Win 2003 Std (Active Directory). Everything works fine. I have installed same application on another server Win 2003 R2 Std (No Active Directory). On that server I get “Permission denied” using the following code (used to zip folder content).
0
1219
by: private.anders | last post by:
Really need your assistance since I have been struggling with a problem long time now. I am running a web application on a Win 2003 Std (Active Directory). Everything works fine. I have installed same application on another server Win 2003 R2 Std (No Active Directory). On that server I get “Permission denied” using the following code (used to zip folder content). set WshShell = server.createobject("wscript.shell")
4
2666
by: xzzy | last post by:
I have a v1.1 web app that works on my local computer. However, running it at the host computer, the following breaks: when a viewer selects a different country, the State dropdown should repopulate with the new country's state/proviences. Running on the host, the dropdown does not repopulate and says 'Permission Denied', I take this to mean that at the host, a viewer does not have permission to put new items in the State dropdown.
0
8683
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8610
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
9170
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
9031
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
6528
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4623
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
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
3
2007
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.