EXECUTE permission denied on object 'aspnet_CheckSchemaVersion', database '695746_default', schema 'dbo'

Last post 11-08-2009 6:01 AM by Nossie. 12 replies.

Sort Posts:

  • EXECUTE permission denied on object 'aspnet_CheckSchemaVersion', database '695746_default', schema 'dbo'

    06-25-2006, 9:36 PM
    • Member
      227 point Member
    • przemeklach
    • Member since 06-23-2006, 4:45 PM
    • Posts 119
    Hi,
    I have followed Sue's tutorial on how to upload and configure my website. I am still having an issue when I try to configure permissions/roles using the ASP. Net configuration tool.
    I am able to start it but when I click Security I get the error below. Also below is my web.conf file. I am hosting with gate.com, incase someone is with them as well and has had a similar experience.
    If someone has maybe they can explain to me what some of those xml values mean. I can follow a tutorial but I am poor at troubleshooting because I don't know what all those valuse mean; provider, rolemanager etc.. Thank you.
    ERROR:
    ***************************************************************************
    There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store.

    The following message may help in diagnosing the problem:
    EXECUTE permission denied on object 'aspnet_CheckSchemaVersion', database '695746_default', schema 'dbo'.
    *****************************************************************************

    WEB.CONFIG
    *****************************************************************************

     
    1    
    2    <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
    3      <connectionStrings>
    4        <add name="Personal" connectionString="Data Source=sql002.whp.server-hosting.com;Initial Catalog=695746_default;Persist Security Info=True;UID=****;PWD=****" providerName="System.Data.SqlClient" />
    5      </connectionStrings>
    6      <system.web>
    7        <pages styleSheetTheme="Black"/>
    8    		<customErrors mode="RemoteOnly"/>
    9    		<compilation debug="true"/>
    10   		<authentication mode="Forms">
    11   			<forms loginUrl="Default.aspx" protection="Validation" timeout="300"/>
    12   		</authentication>
    13   		<authorization>
    14   			<allow users="*"/>
    15   		</authorization>
    16   		<globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
    17   		<!--<roleManager enabled="true"/>-->
    18       <membership>
    19         <providers>
    20           <remove name="AspNetSqlMembershipProvider" />
    21           <add name="AspNetSqlMembershipProvider"
    22           type="System.Web.Security.SqlMembershipProvider,System.Web, Version=2.0.0.0, Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a"
    23           connectionStringName="Personal"
    24           enablePasswordRetrieval="false"
    25           enablePasswordReset="true"
    26           requiresQuestionAndAnswer="true"
    27           applicationName="/"
    28           requiresUniqueEmail="false"
    29           passwordFormat="Hashed"
    30           maxInvalidPasswordAttempts="5"
    31           minRequiredPasswordLength="7"
    32           minRequiredNonalphanumericCharacters="1"
    33           passwordAttemptWindow="10"
    34           passwordStrengthRegularExpression="" />
    35         </providers>
    36       </membership>
    37       <profile>
    38         <providers>
    39           <remove name="AspNetSqlProfileProvider" />
    40           <add name="AspNetSqlProfileProvider"
    41           connectionStringName="Personal"
    42           applicationName="/"
    43           type="System.Web.Profile.SqlProfileProvider,System.Web, Version=2.0.0.0, Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a" />
    44         </providers>
    45       </profile>
    46       <!--<roleManager enabled="true">
    47         <providers>
    48           <remove name="AspNetSqlRoleProvider" />
    49           <add name="AspNetSqlRoleProvider"
    50           connectionStringName="Personal"
    51           applicationName="/"
    52           type="System.Web.Security.SqlRoleProvider,System.Web, Version=2.0.0.0, Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a" />
    53         </providers>
    54       </roleManager>-->
    55   		<siteMap defaultProvider="XmlSiteMapProvider" enabled="true">
    56   			<providers>
    57   				<add name="XmlSiteMapProvider" description="SiteMap provider which reads in .sitemap XML files." type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" siteMapFile="web.sitemap" securityTrimmingEnabled="true"/>
    58   			</providers>
    59   		</siteMap>
    60   	</system.web>
    61   	<location path="Admin">
    62   		<system.web>
    63   			<authorization>
    64   				<allow roles="Administrators"/>
    65   				<deny users="*"/>
    66   			</authorization>
    67   		</system.web>
    68   	</location>
    69   </configuration>
    70   
    
     
  • Re: EXECUTE permission denied on object 'aspnet_CheckSchemaVersion', database '695746_default', schema 'dbo'

    06-26-2006, 12:29 AM
    • Member
      227 point Member
    • przemeklach
    • Member since 06-23-2006, 4:45 PM
    • Posts 119
    Got it fixed, kind of
    I went into the database on the server and gave explicity permissions for each of the stored procedures, including the one above, for the user I was trying to login with the ASP configuration.
    I hope this was the right way. Maybe this is something that I was supposed to configure in the web.config file.
    If someone knows, can they let me know if I did this correctly.
    Thanks.
  • Re: EXECUTE permission denied on object 'aspnet_CheckSchemaVersion', database '695746_default', schema 'dbo'

    06-26-2006, 1:17 AM
    • Member
      227 point Member
    • przemeklach
    • Member since 06-23-2006, 4:45 PM
    • Posts 119
    So it appears to be working. I've been trying to setup the permissions/roles and I'm a little confused. Is it possible to set permissions on individual files: for example if I only want certain users to access resume.aspx how do I set it?
    Secondly, for some reason Allow for all user/roles is enabled and I cannot delete it. How do I disable this so that no one except for the users I specify have access?
    Thanks.
  • Re: EXECUTE permission denied on object 'aspnet_CheckSchemaVersion', database '695746_default', schema 'dbo'

    06-28-2006, 8:54 AM
    • Member
      62 point Member
    • John Murphy
    • Member since 06-15-2006, 9:12 AM
    • Posts 13

    If you put the resume.aspx in the admin folder or in a seperate folder you can then control who has access through their role in the configuration tool

    On the seocnd part, do you mean access to the site or to an individual page?

    JM
    http://www.avandale.org
  • Re: EXECUTE permission denied on object 'aspnet_CheckSchemaVersion', database '695746_default', schema 'dbo'

    10-16-2007, 3:43 PM
    Answer

    Please check your database user roles.
    It's necessary the database user to be owner.
    Only it.

  • Re: EXECUTE permission denied on object 'aspnet_CheckSchemaVersion', database '695746_default', schema 'dbo'

    07-10-2008, 5:42 PM
    • Member
      43 point Member
    • switter65
    • Member since 08-23-2005, 9:17 PM
    • Posts 56

    I fixed this by adding the following role memberships to the users:

    aspnet_Membership_BasicAccess

    aspnet_Membership_FullAccess

    aspnet_Membership_ReportingAccess

  • Re: EXECUTE permission denied on object 'aspnet_CheckSchemaVersion', database '695746_default', schema 'dbo'

    08-12-2008, 7:37 PM
    • Member
      85 point Member
    • BNDIT
    • Member since 05-10-2008, 11:28 PM
    • Posts 94

    Please kindly advise detailed steps of what you have done. Thanks.

  • Re: EXECUTE permission denied on object 'aspnet_CheckSchemaVersion', database '695746_default', schema 'dbo'

    08-25-2008, 5:54 PM
    Answer
    • Member
      219 point Member
    • umbyersw
    • Member since 10-26-2007, 10:08 PM
    • Edmonton, AB, Canada
    • Posts 41

     

    ViniciusCamara:

    Please check your database user roles.
    It's necessary the database user to be owner.
    Only it.

    Assigning db_owner to your user will give them more access than they need.

    What you should instead do, is grant the user the following Roles:

    • aspnet_Membership_FullAccess
    • aspnet_Roles_FullAccess
    • etc. depending on what features you have enabled/installed into this database

    Do this by using Microsoft SQL Server Management Studio or Microsoft SQL Server Management Studio Express
    1. Connect to the database you are working with
    2. Open Databases
    3. Open the database you are working with
    4. Open Security
    5. Open Users
    6. Double-click the user who is accessing the database
    7. In the list of Owned Schemas, check off the roles indicated above
    Wes
    www.umbyersw.com
  • Re: EXECUTE permission denied on object 'aspnet_CheckSchemaVersion', database '695746_default', schema 'dbo'

    11-26-2008, 2:31 PM
    • All-Star
      19,834 point All-Star
    • raghav_khunger
    • Member since 08-18-2008, 8:25 AM
    • Delhi, India
    • Posts 3,599
    • TrustedFriends-MVPs

    Hi,

    I was Also Facing Same Problem

    I got the solution

    By executing this queries in Query Analyzer

     

    GRANT EXECUTE ON dbo.aspnet_CheckSchemaVersion TO "myUserName"

    GRANT EXECUTE ON dbo.aspnet_Membership_CreateUser TO "myUserName"

    GRANT EXECUTE ON dbo.aspnet_Membership_GetPasswordWithFormat TO "myUserName"

     

     

     Thanks

    Raghav CodeASP.NET Community | My Blog | jQuery Intellisense in Visual Studio 2008




    "Success doesn't come to you…you go to it."--Marva Collins

    "Failure is success if we learn from it." Malcolm Forbes

    "Success does not come to those who wait . . . and it does not wait for anyone to come to it." Anonymous


  • Re: EXECUTE permission denied on object 'aspnet_CheckSchemaVersion', database '695746_default', schema 'dbo'

    11-26-2008, 2:33 PM
    • All-Star
      19,834 point All-Star
    • raghav_khunger
    • Member since 08-18-2008, 8:25 AM
    • Delhi, India
    • Posts 3,599
    • TrustedFriends-MVPs

    Hi,

    I was Also Facing Same Problem

    I got the solution

    By executing this queries in Query Analyzer

     

    GRANT EXECUTE ON dbo.aspnet_CheckSchemaVersion TO "myUserName"

    GRANT EXECUTE ON dbo.aspnet_Membership_CreateUser TO "myUserName"

    GRANT EXECUTE ON dbo.aspnet_Membership_GetPasswordWithFormat TO "myUserName"

     

     

     Thanks

    Raghav CodeASP.NET Community | My Blog | jQuery Intellisense in Visual Studio 2008




    "Success doesn't come to you…you go to it."--Marva Collins

    "Failure is success if we learn from it." Malcolm Forbes

    "Success does not come to those who wait . . . and it does not wait for anyone to come to it." Anonymous


  • Re: EXECUTE permission denied on object 'aspnet_CheckSchemaVersion', database '695746_default', schema 'dbo'

    06-30-2009, 11:50 AM

    I tried everything above which is working fine when its in local system. but not for development server where we dont have permission for the database user.

    finally i have got solution its very simple.

    in SQL Server>
       Database>
            <My database Name>
                    Security
                           Schemas

    Select dbo Schemas > properties > Select Permission >
    In that users and role section
    Add your login User Name [given user name for your database in development server]

    It works fine.

  • Re: EXECUTE permission denied on object 'aspnet_CheckSchemaVersion', database '695746_default', schema 'dbo'

    06-30-2009, 11:51 AM

    I tried everything above which is working fine when its in local system. but not for development server where we dont have permission for the database user.

    finally i have got solution its very simple.

    in SQL Server  
       Database
            My database Name
                    Security
                           Schemas

    Select dbo Schemas - properties - Select Permission
    In that users and role section
    Add your login User Name [given user name for your database in development server]

    It works fine.

  • Re: EXECUTE permission denied on object 'aspnet_CheckSchemaVersion', database '695746_default', schema 'dbo'

    11-08-2009, 6:01 AM
    • Member
      147 point Member
    • Nossie
    • Member since 12-23-2004, 3:15 AM
    • Dublin, Ireland.
    • Posts 48

    Thank you for the time you took to write this.

     

    umbyersw:
    Do this by using Microsoft SQL Server Management Studio or Microsoft SQL Server Management Studio Express
    1. Connect to the database you are working with
    2. Open Databases
    3. Open the database you are working with
    4. Open Security
    5. Open Users
    6. Double-click the user who is accessing the database
    7. In the list of Owned Schemas, check off the roles indicated above

Page 1 of 1 (13 items)