473,396 Members | 1,877 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,396 software developers and data experts.

A required privilege is not held by the client

Sigh. I had a working ASPNET application yesterday (using Framework 3.5, running on Server 2003). Today I have the dreaded "a
required privilege is not held by the client" error. This occurs whenever I try to debug the app within VS2008.

Here's what I did between yesterday and today:

1) Both the debug and the release version of my website use the same SqlServer 2005 server. I was using a trusted connection to
develop and debug the website.

2) When I deployed the release version to the server I ran into a sqlserver security problem because the ASPNET user doesn't have
access rights to the sqlserver database. I played around with user impersonation in the release Web.config file, which worked, but I
don't like having my primary user account credentials embedded in Web.config files (this site runs on an intranet).

3) I created a new sqlserver login, gave it read/write (but not dbo) rights to the database, and configured the release Web.config
file to use those login credentials. That worked fine.

4) Now the debug/development process fails with the required privilege error (I'm running Vista Ultimate as my development OS).

5) Removing the login I created in #3 doesn't solve the problem.

I don't know that the problem is related to what I did, but it's the only thing I can think of.

Suggestions?

- Mark

p.s. has anyone else noticed that the primary effect of the way Microsoft has tightened security across its products is to make life
miserable for developers? At the very least they need to upgrade their error messages so they might actually help point one to a
solution.
Jan 7 '08 #1
1 5712
Okay, I'm posting the "solution" here to keep others from tearing their hair out.

I created the new login (#3 below) while I had the website open in VS2008. Exiting and restarting VS2008 appears to have solved the
problem.

- Mark

On Mon, 07 Jan 2008 10:07:21 -0800, Mark Olbert <Ch*********@newsgroups.nospamwrote:
>Sigh. I had a working ASPNET application yesterday (using Framework 3.5, running on Server 2003). Today I have the dreaded "a
required privilege is not held by the client" error. This occurs whenever I try to debug the app within VS2008.

Here's what I did between yesterday and today:

1) Both the debug and the release version of my website use the same SqlServer 2005 server. I was using a trusted connection to
develop and debug the website.

2) When I deployed the release version to the server I ran into a sqlserver security problem because the ASPNET user doesn't have
access rights to the sqlserver database. I played around with user impersonation in the release Web.config file, which worked, but I
don't like having my primary user account credentials embedded in Web.config files (this site runs on an intranet).

3) I created a new sqlserver login, gave it read/write (but not dbo) rights to the database, and configured the release Web.config
file to use those login credentials. That worked fine.

4) Now the debug/development process fails with the required privilege error (I'm running Vista Ultimate as my development OS).

5) Removing the login I created in #3 doesn't solve the problem.

I don't know that the problem is related to what I did, but it's the only thing I can think of.

Suggestions?

- Mark

p.s. has anyone else noticed that the primary effect of the way Microsoft has tightened security across its products is to make life
miserable for developers? At the very least they need to upgrade their error messages so they might actually help point one to a
solution.
Jan 7 '08 #2

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

Similar topics

9
by: Ping | last post by:
Hello, Have a wonderful new year! I have oracle 9.2 on XP. There is a table T1 created by user U1 in U1's schema, a synonym S1 created also by U1 to point to T1 in U1's schema, U1 granted...
0
by: Chris Callahan | last post by:
Greetings: Long time reader, first time poster. Here we go: ==Specific question: Does there exist in MySQL a privilege configuration which will allow an account to issue `SHOW MASTER...
0
by: Fei Peng | last post by:
>Description: High Resolution Science Imaging experiment(HiRISE) project for one of important instrument on MRO spacecraft which will be launched to MAR in 2005 are using MySQL server 4.0.13 as...
2
by: Ken Varn | last post by:
I need to pragmatically add events to the Win2K Event Viewer from my ASP.NET web application. What user rights are required for this? I have tried to assign "act as part of the operating system",...
0
by: EoRaptor013 | last post by:
I'm using our dev ID to set up peer-to-peer replication among three SQL Server 2005 servers. The dev ID essentially has sa rights to the server and databases. Per the BOL, I explicitly gave the...
7
by: Parv | last post by:
I am impersoanting a user to an other domain. But while doing so i am getting A required privilege is not held by the client exception. I have tried with aal possible usernames and passwords...
1
by: Parv | last post by:
I am trying to impersonate user to some other system using userName,domainName,password in C#. My Code is working fine if i am working on Windows 2000 professional after assigning current user "Act...
1
by: jatinder.saundh | last post by:
Hi, How do I give create database privielege to a specific user/group at a particular db2 instance ? I read about various authorities like SYSCTRL etc. but I am interested in giving only Create...
0
by: itmanager | last post by:
We have an ASP.NET (1.1) app running on a Windows 2003 server using IIS 6. Part of the application accesses printer resources on the server using a service application written in VB.NET and C++. ...
0
AnuSumesh
by: AnuSumesh | last post by:
Hi I am using WMI for these opeartions. The setup for .net application is as follows: we have deployed .net application in IIS with Privilege Identity as "Local System" and Authentication...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
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...
0
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,...

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.