Unable to locate the localhost database

Trying to install TaskVisionSource 1.1.0.0.
(local) database exists. 
Bug could be that I'm only running .NET Fx. 1.1 om this WXP box

But what is a localhost database. Creating a database named "localhost" on my local SQL Server didnt make any difference.



Answer this question

Unable to locate the localhost database

  • CarolChi

    Sort of got it working
    - I was logged in with my work domain account on the laptop at home, getting the problem with no localhost database
    - digging around and I found references to problems with connecting to SQL Server due to security resolution issues wrt domain acccount which don't have domain admin permissions
    - I logged in as administrator on the laptop, rather than my domain account and TaskVision installed fine


    However, this still doesn't give an answer to how to install on a domain account that doesn't have admin permissions

  • ST2B

    Is there an easy way to *make* it available through the TCP connection   I have no qualms about making the IT guy jump a hoop so I can check this software out at its source.

    >:D

    -Tree

  • RohitMehta802003

    I’ve had the same problem, it took me 2 days to work it out. Ofcourse, its pretty simple, once you know how to fix it. 

    A. Firstly, my VS.net configurations, I have the following software installed in order. This is important, particularly with IIS: 
    1. IIS 
    2. Visual Studio.net (VB.net) 
    3. MS SQL Server Desktop Engine (MSDE) 

    B. Copy “taskvisionsource_1.1.0.0.msi” to another directory 
    1. Install taskvisionsource_1.1.0.0.msi 
    2. Get the error msg “Unable to locate the localhost database….”. Don’t close this. 
    3. Go to the directory you selected for installing the source code and copy all in another directory. Then close the error msg and let the setup rollback installation. 

    C. Install database 
    1. Go to the directory you copied the source code to and find the directory “…setup\SQL\”. 
    2. The files SqlServer_TaskVision_Create_DB.sql and SqlServer_TaskVision_DataLoad.sql should be there, ingnore the 3rd file. 
    3. Type “OSQL -S %COMPUTERNAME% -E /I SqlServer_TaskVision_Create_DB.sql” This will create the sql TaskVision database to your (local) sql sever. 
    4. Type “OSQL -S %COMPUTERNAME% -E /I SqlServer_TaskVision_DataLoad.sql” 

    D. Let IIS know that the application is there to use. 
    1. Go to the directory you copied the source code to and locate the directory “TaskVisionUpdates” and directory “TaskVisionWS”. 
    2. Copy these 2 directories (including the files) into c:\Inetpub\wwwroot\ 
    3. Goto Control Panel -> Administrative Tools -> Internet Information Services 
    4. Expand the server node | Web Sites | Default Web Site. 
    5. Locate and click on TaskVisionWS directory. 
    6. Right-click on TaskVisionWS directory and select Properties. A dialog box will appear. 
    7. Select the Directory tab and click on Create button to tell IIS to let you use this application. The icon on the TaskVisionWS directory should change from folder icon to IIS icon. 
    8. Locate TaskVisionUpdates directory. Rick-click, select Properties. Then click the Create button. The folder icon should change to IIS icon. 

    E. Modify the connection in the program to let it know where the databases are. 
    1. Go back to the directory you copied the source code and find the file TaskVision.sln. Then run it. 
    2. Find the TaskVisionWS project and double-click on AuthService.asmx. 
    3. Select “dbConn” sqlconnection control, go to "Properties" and change the "Connection string" to the “TaskVision” sql database you created in step C3. above. 
    4. The easiest way is to select <New Connection…> 
    5. (local) for server name. Tick “Use WIN NT Integrated security”. "TaskVision” for the database 

    G. Run TaskVision. 

  • c4210

    Same problem.  I suspect this is because I have a "named instance" of SQL Server 2000.  The doc's mentioned that your SQL Server must be available via the local TCP connection.

    HTH,

    Chris Brown

  • Richard Hathaway

    There is a work around posted in this forum that worked for me (well, I still don't have the web services working right yet, but this will get you a lot closer!).

    Chris

    http://www.windowsforms.net/Forums/ShowPost.aspx tabIndex=1&tabId=41&PostID=275 

  • ennisb

    I get the same exact error......

    Any word on the solution   I'm not sure (beyond what you've tried) what it means by localhost.......I thought it might be some sort of security issue, but nothing I've changed about my accessibility through Microsoft security has changed anything.  I still can't install either the Server or the Source Code.

    -Tree

  • Roman H

    Thanks for the tip!  I'll give that a shot!
  • Unable to locate the localhost database