VersaDev 
VersaDev
VersaDev
VersaDev
Delivering Business Software Solutions
Welcome Guest Search | Active Topics | Members | Log In | Register

Login Failed After Installation Options
Adrian
Posted: Tuesday, August 17, 2010 5:42:28 PM
Rank: Newbie
Groups: Member

Joined: 8/17/2010
Posts: 2
Points: 6
Location: London
Just installed and configured versaSRS but when I tried to connect from Internet Explorer I got the following:

System Error
The following error has occurred:
.Net SqlClient Data Provider - Cannot open database "versasrs" requested by the login. The login failed. Login failed for user 'D002426\ASPNET'.

Tried searching the site for "cannot open database" but did not find anything.

Am sure that this is something trivial so can someone point me in the right direction.

Thanks


Using:

Windows XP Professional
IE 8
SQLServer Express 2008 R2
Visual Studio Express 2008 SP1
Philip@versadev
Posted: Wednesday, August 18, 2010 1:53:43 PM
Rank: Administration
Groups: Administration , Member

Joined: 11/20/2008
Posts: 46
Points: 41
Location: Australia
It seems like a step has been missed or gone wrong during the installation. If you check the permission_output.txt file (C:\Program Files\VersaDev\versaSRS\Setup\SQLScripts) it should show if there was an error.

You can fix this by running the GrantPermissions_ForLocal.sql (C:\Program Files\VersaDev\versaSRS\Setup\SQLScripts) file against the versasrs database. You will need to edit the script to replace the tags to include your machine name (D002426) and the database name (versasrs). See below example (You could in fact copy and paste the below into SQL and run it).


-- ===============================================
-- versaSRS DATABASE
-- Grant permissions for Local DB Install
--
-- Examples:
--
-- <TRUSTEDACCOUNT> = [D002426]\ASPNET
-- <TRUSTEDACCOUNT> = [MACHINENAME]\IWAM_[MACHINENAME]
-- <TRUSTEDACCOUNT> = NT AUTHORITY\NETWORK SERVICE
-- ===============================================

DECLARE @username sysname
SELECT @username = '<TRUSTEDACCOUNT>'

USE master
EXEC sp_grantlogin @username

USE [versasrs]
EXEC sp_grantdbaccess @username
EXEC sp_addrolemember N'db_owner', @username
Adrian
Posted: Wednesday, August 18, 2010 5:43:21 PM
Rank: Newbie
Groups: Member

Joined: 8/17/2010
Posts: 2
Points: 6
Location: London
Brilliant, just what I needed to know.

Application now up and running.

Thanks for the advice Phillip.
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.
This page was generated in 0.076 seconds.