473,785 Members | 2,798 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5743
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*********@ne wsgroups.nospam wrote:
>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
20983
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 S1 to public for select.
0
2104
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 STATUS` and `SHOW SLAVE STATUS`, but will disallow the running of any other commands (such as `KILL`)?
0
1666
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 database management system. we recently encounter a unstable privilege problem.what we do like that: (1) In 8/19, we insert two entry in mysql database: insert into db values('%.lpl.arizona.edu','test','',...
2
2640
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", but I still get permission denied when I try to add events. -- ----------------------------------- Ken Varn Senior Software Engineer Diebold Inc.
0
1497
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 login db_owner rights to both the distributor and publication databases. Nevertheless, the LogReader agent fails with the following error message: Executed as user: mydom\sqldev. A required privilege is not held by the client. The step failed. ...
7
9766
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 but didn't get success. I am getting same error if i am enetring blank user and password. What i am doing wrong ?
1
2464
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 as part of Operating system" permission. But when i tried to do the same on Windows 2000 advanced server after assigning current user i.e. administrator or anyone else "Act as part of Operating system" permission it gives me error "A required...
1
2754
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 database privilege. I also came across GRANT <system privilege statement and it seems I can execute following statement to achieve what I want, GRANT CREATEDBA to <authorization-name>
0
2935
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++. When the service runs under the Local System account, there is no problem with printing, but when we change the Log On account to a domain administrator, we always get the following error: Error 1314: A required privilege is not held by the...
0
1091
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 level as "Windows Authentication" When we are trying to shutdown/reboot the server from remote machine then it is throwing Exception "Privilege not Held". Same Privilege problem with Date/Time settings also. Can anyone help me in this...
1
10093
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
9952
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8976
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...
1
7500
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
6740
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
5381
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
4053
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
3654
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2880
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.