Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

ASP.NET Deployment for Membership Role Management WebSite Database Errors

Avatar of ChiBella
ChiBella asked on
Microsoft SQL ServerMicrosoft IIS Web Server
4 Comments1 Solution543 ViewsLast Modified:
Hi,

I have a website using Membership/Role Management that works well in VS2008 but deployed within IIS, generating sql database connection errors.

The first after login was...
Cannot open database "dbasename" requested by the login. The login failed.
Login failed for user 'computername\ASPNET'.

I then added the computername to permissions within the database...
C:\>osql -E -S
1> exec sp_grantlogin 'computername\ASPNET'
2> GO
1> USE databasename
2> GO
1> EXEC SP_GRANTDBACCESS 'computername\ASPNET'
2> GO
1> EXIT

and now I'm getting this error:

EXECUTE permission denied on object 'aspnet_CheckSchemaVersion', database 'databasename', schema 'dbo'.

Can someone tell me what I need to do to get aspnet access to the database within IIS?

Thanks!

ASKER CERTIFIED SOLUTION
Avatar of jorge_toriz
jorge_torizFlag of Mexico imageResearch & Development Manager

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answers