Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




SQL Problems

web-app

Hi All,

I have a problem with my installation of gemini.
Firstly I have the following system setup:
* Windows XP SP2 --firwall turned off
* SQL Server 8 (2000.80.194.0)
* MS .Net Framework 1.1
* IIS that comes with XP SP2.

I have created a database called gemini, with the user gemini and pass gemini.
Now I have installed everything, and when I bring up the default page I get the following error:
"SQL Server does not exist or access is denied"

From the command line I can OSQL it, and not have a problem. I have absolutely 0 clue as to where I am lost, does anyone have any suggetions?
Thanks greatly.
Jonathon


batesy67
· 1
batesy67
Replies (12)
helpful
0
not helpful

Did you update the connection string setting in the web.config file?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

I'm having a similar problem.  I've updated the connection string in web.config and I can connect through query analyzer and like tools to the database in question.  I'm getting the same error message (is there a way to get more diagnostic information?):    

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.Global.Application_Start(Object sender, EventArgs e) +12

Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573


jeffrey.schoolcraft
· 1
jeffrey.schoolcraft
helpful
0
not helpful

Hi,

Are you using named instances of SQL?

Are you using a non standard port number (not 1433)?

Please paste your web.config connection string setting eher and we will look at it.


Harvey Kandola
· 212
Harvey Kandola
helpful
0
not helpful

<!-- The SQL Server database connection string -->
  <add key="hibernate.connection.connection_string" value="data source=sl0979;initial catalog=devbugsGemini;user id=bugUser;password=PASSWORD" />   Will Gemini only work on (local)?


jeffrey.schoolcraft
· 1
jeffrey.schoolcraft
helpful
0
not helpful

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?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Yes, the web server where Gemini is installed can connect to SQL server using the connection details supplied to Gemini through web config.  
C:\>osql -S sl0979 -d devbugsGemini -U bugUser -P PASSWORD -Q "select top 1 issue
Id from issues"
 issueId
 ------------
            1   (1 row affected)   C:\>


jeffrey.schoolcraft
· 1
jeffrey.schoolcraft
helpful
0
not helpful

What if you try a Trusted connection?


Harvey Kandola
· 212
Harvey Kandola
helpful
0
not helpful

instead of duplicating this in two threads like I have been doing, lets just stick with my original: http://community.countersoft.com/forums/thread/351.aspx


jeffrey.schoolcraft
· 1
jeffrey.schoolcraft
helpful
0
not helpful

Was there ever a resolution to this problem?  We are a brand new install and we are seeing the exact same problem.  Except our error is "Login failed for user".  How do you diagnose this problem?  The other isue is that it is not passing the correct username.  It is passing the machine name rather than the username.f


Lobmeyer
· 1
Lobmeyer
helpful
0
not helpful

Please check your connection string in the web.config file.


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

Hi Saar

I have a question regarding Windows authentication. The application is  not working and the following error was displayed:

Server Error in '/TicketSystem' Application

Login failed for user 'BRENCOURT\NYIISQA$'

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: Login failed for user 'BRENCOURT\NYIISQA$'.

The connection string is "Data Source=WORKSTATION71;Initial Catalog=TicketSystem;Integrated Security=True"

Ticket System is the name of my virtual directory. SQL Server is on the remote machine.

I have set impersonate = true in the web.config file.

I would appreciate your help in this regard. Also, I am not sure how to create a user before turning on the windows authentication.

Thanks

Meg


meg41
· 1
meg41
helpful
0
not helpful

I think you are confusing SQL authentication and Web windows authentication.

Do you want to connect to SQL using a single user name / id?

At the moment, as you have it setup, every user will have to be given permissions on SQL server.

To create a Gemini user before moving to windows authentication in Gemini, the user name must be DOMAIN\User


Mark Wing
· 9108
Mark Wing