Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Permission denied: 'GetObject'

Posted on 2003-11-20
2
Medium Priority
?
632 Views
Last Modified: 2012-05-04
Hi Experts,

I am using given below code to get clients Full name but i am getting error permission denied.
How can i solve this problem.

thanks


Dim sUserId, objUser

sUserId = Trim(Request.ServerVariables("LOGON_USER"))

Set objUser = GetObject("WinNT://" & Replace(sUserId, "\", "/"))

Response.Write objUser.FullName

Set objUser = nothing
0
Comment
Question by:mohsinnazir
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 21

Expert Comment

by:ap_sajith
ID: 9788653
http://www-tcsn.experts-exchange.com/Web/Web_Languages/ASP/Q_20765826.html

Dim sUserId, objUser

sUserId = Trim(Request.ServerVariables("LOGON_USER"))
strUserArr=split(sUserId ,"\")
Set objUser = GetObject("WinNT://" & strUserArr(0)  & "/" & strUserArr(1))

Response.Write objUser.FullName

Set objUser = nothing



Cheers!!
0
 
LVL 21

Accepted Solution

by:
ap_sajith earned 750 total points
ID: 10243531
Hi,
Any Updates?. Do you need any further assistance with this?. Please close this question if no further assistance is needed.
If you need help closing this question, please refer to http://oldlook.experts-exchange.com/help/closing.jsp on how to close a question.

Cheers!!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question