EXECUTE permission denied on object 'stored procedure name', database 'mydbname', schema 'dbo'.

I checked my stored procedure and gave the domain account which is running sql agent, etc. that I have designated to run all my SQL 2005 processes execute privilages to my stored procedure but still get that error when my aspx page loads.

My web.config

  <connectionStrings>
    <add name="DashboardConn"
         connectionString="Data Source=myservername;Initial Catalog=mydbname; integrated security=SSPI;persist security info=False; Trusted_Connection=Yes"
         providerName="System.Data.SqlClient" />
  </connectionStrings>
LVL 1
dba123Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Carl TawnSystems and Integration DeveloperCommented:
If your site is running using Anonymous Access then it will be the ASPNET account that does not have Execute persmissions on the SP. Its the user accessing the SP not the account under which the service is running that needs permissions.

If you are not using Anonymous Access, then it will be your Windows user account who needs permissions.
0
dba123Author Commented:
It's running Integrated Windows authentification just like all my other sites.
0
dba123Author Commented:
My windows user account does have access to that stored procedure.
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

dba123Author Commented:
My other sites don't have this problem and are setup the same way.  I checked the stored procedures on those also, and I setup these just like those.
0
dba123Author Commented:
ahh, here we go, I put the public database role in the permissions.  Now it's working.
0
GranModCommented:
Closed, 500 points refunded.
GranMod
The Experts Exchange
Community Support Moderator of all Ages
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.