Advertisement

02.18.2008 at 02:30AM PST, ID: 23170957
[x]
Attachment Details

SQL Server Permissions - User, Group, Role settings for ASP.NET 1.1 2003 applications

Asked by bobinorlando in Programming for ASP.NET, MS SQL Server, Microsoft Visual Basic.Net

When debugging ASP.NET 1.1 applications and troubleshooting "permission denied" errors on SQL server views and stored procedures called from asp.net code, would it be useful to check or  verify SQL Server User, Group and Role settings, and if so, which ones and what should they be set to in order to ensure that the app can run the view or SP?

Thanks in advance.

Typical error:

EXECUTE permission denied on object 'procFranceCustomersAsp', database 'Northwind', owner 'dbo'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: EXECUTE permission denied on object 'procFranceCustomersAsp', database 'Northwind', owner 'dbo'.

Source Error:
Line 52:             Dim ds As DataSet = New DataSet
Line 53:     'Fill the dataset
Line 54:             da.Fill(ds, "Customers") '<<<<----  Crashing here
Line 55:     'And bind it to the datagrid
Line 56:             dgResults.DataSource = ds
 
Start Free Trial
[+][-]02.18.2008 at 03:46AM PST, ID: 20919088

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Programming for ASP.NET, MS SQL Server, Microsoft Visual Basic.Net
Sign Up Now!
Solution Provided By: scorpiia
Participating Experts: 1
Solution Grade: B
 
 
[+][-]02.18.2008 at 06:41AM PST, ID: 20920219

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.18.2008 at 09:46AM PST, ID: 20921908

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.18.2008 at 03:24PM PST, ID: 20924471

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628