SQL Server does not exist or access denied.
Installed manually on a Windows 2000 Server box and pointing to SQL Server 2000 sp4 on another machine. I've updated web.config to change the connection string, and with that connection string I can connect through query analyzer. However I'm getting the following error through the web, is there any way to do additional diagnostics?
Server Error in '/' Application.
SQL Server does not exist or access denied.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.Data.SqlClient.SqlException: SQL Server does not exist or access denied.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SqlException: SQL Server does not exist or access denied.]
CounterSoft.GeminiLib.GeminiHelper.GetImageData(String sql) +307
CounterSoft.GeminiLib.GeminiHelper.GetIssuePriorityImages() +11
Gemini.PageUtil.FillCache(HttpContext c) +1213
Gemini.PageUtil.GetCachedItem(HttpContext c, String key) +105
Gemini.LogoHeader.Page_Load(Object sender, EventArgs e) +555
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Page.ProcessRequestMain() +731
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
jeffrey.schoolcraft
· 1 |
|
Friday, February 10, 2006, 12:57:11 PM |
0
|
Please share with us your connection string (not including the password). Are you running a named instance of SQL? Are you using the default SQL port (1433)? |
||||
|
0
|
<!-- The SQL Server database connection string --> |
||||
|
0
|
Gemini does not have to be on the local SQL server box. Can your web server (where Gemini is installed) connect to the SQL server using the connection details supplied to Gemini? |
||||
|
0
|
Yes, the web server where Gemini is installed can connect to SQL server using the connection details supplied to Gemini through web config.
|
||||
|
0
|
What if you try a Trusted connection? Does it work? |
||||
|
0
|
No, trusted connections aren't working. I added the machine to logins and granted access, I haven't tried impersonation yet. I've got Gemini installed on my local machine and it is using named logins in the connection string and works fine. |
||||
|
0
|
My version information: C:\>osql -S sl0979 -U bugUser -P PASSWORD -q "select @@version" ----- (1 row affected) |
||||
|
0
|
Jeffrey, Did you run OSQL from your web server? Also, please confirm if you connected from web server to database server using Query Analyser. |
||||
|
0
|
Yes I was running the OSQL command from the web server where Gemini is installed. I connected to the database from the web server using FoxySQLFree as I didn't have QA installed on that box. |
||||
|
0
|
I have the same issue. My database used to be on the same server as the web site. I migrated the data over to another server. When the data was on the same server everything worked correctly, but after moving I get the exact same error you do. I've tried many different ways of connecting but cannot. I tried conneted by command line, and got the same results as you did. It's been a almost a month since the last reply in this thread, I'm just wondering if you resolved this issue? |
||||
|
0
|
I ended up installing sql server on this machine and ran the database locally, everything worked fine. As far as I know there is no resolution to this issue, that being have the database seperate from your web server. |
||||
|
0
|
Thanks for the reply. I'll set this all on one machine again. |
||||
|