EXECUTE permission denied on object 'aspnet_CheckSchemaVersion'

Topics: Developer Discussion, Help
Jul 16, 2007 at 3:36 AM
I'm still working on my local box, not in a hosting environment, but I'm trying to switch to sql server login/password rather than windows security.

I created an admin account with dbo owner role. I also checked off all the aspnet_ roles in the "schemas owned by this user" and "darabase role membership" sections.

I don't see what else i'm supposed to be granting. Any tips?
Jul 16, 2007 at 3:56 AM
You shouldn't be added ANY users on the database directly. You need to register on the site and then assign the membership role with the ASP.NET Website Administration tool (Website --> ASP.NET Configuration). There isn't really a need to worry about permissions.
Jul 16, 2007 at 4:06 AM
I just don't understand why, I guess. In a corporate Cold Fusion environment, we were always given a user and login that the web could use. Why does this not work the same way? One would think that granting super high access would allow it to work. Sorry. I'm having a tough time wrapping my head around it.

Is this where the full verses partial trust issue comes in with web hosting? I think I'm going to use a local webhost, but I can't tell if it's what I need...

Jul 16, 2007 at 4:27 AM
You could do it, but there are predefined foreign table relationships that you will most likely disrupt. Using the member/register.aspx page does all the heavy lifting for you. If you were to just plug data into the database, somthing is bound to happen.

Full trust vs medium trust is a difference of what your web application can execute and where... it doesn't really have anything to do with the database.
Jul 16, 2007 at 4:49 AM
Ah. I see now that I wasn't clear. I meant I'm creating an acct in sql server that the clubsitedb can use in webconfig. I need a user and password since I'm using sql server 2005 instead of express. I've been using the "use windows security" option.

Sorry for the disconnect.
Jul 16, 2007 at 6:07 AM
Wait so you need to build your connection string? If so, try this site: http://www.connectionstrings.com/
Jul 16, 2007 at 6:22 PM
The connection string was fine. It was a sql server permissions issue. I found the answer here:

Basically, you need to grant exec permissions to your database user on all stored procs. The sp in the above link helps you to easily accomplish that task.