Windows Develop Bookmark and Share   
 index > Windows Forms Sample Applications > Unable to locate the localhost database
 

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.

MigrationUser 1  Monday, February 17, 2003 3:40 PM
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
MigrationUser 1  Friday, February 21, 2003 3:44 PM
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
MigrationUser 1  Friday, February 21, 2003 4:06 PM
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
MigrationUser 1  Friday, February 21, 2003 4:19 PM
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 
MigrationUser 1  Friday, February 21, 2003 4:44 PM
Thanks for the tip!  I'll give that a shot!
MigrationUser 1  Friday, February 21, 2003 5:00 PM
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â€?nbsp;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â€?nbsp;This will create the sql TaskVision database to your (local) sql sever. 
4. Type â€œOSQL -S %COMPUTERNAME% -E /I SqlServer_TaskVision_DataLoad.sqlâ€?nbsp;

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â€?nbsp;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â€?nbsp;sqlconnection control, go to "Properties" and change the "Connection string" to the â€œTaskVisionâ€?nbsp;sql database you created in step C3. above. 
4. The easiest way is to select <New Connectionâ€?gt; 
5. (local) for server name. Tick â€œUse WIN NT Integrated securityâ€? "TaskVisionâ€?nbsp;for the database 

G. Run TaskVision. 
MigrationUser 1  Friday, October 17, 2003 8:57 PM
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
MigrationUser 1  Saturday, December 27, 2003 2:50 AM

You can use google to search for other answers

Custom Search

More Threads

• Another question
• display sequential images on a window form
• TaskVision Source lite now available
• Movement angle and speed.
• Right Click Events
• TaskVisionWS DataSet(xxx).vb
• How to Determine my Eyesight Radius
• Sea
• I don't know this is an easy thing to answer but how do you save it as a dll?
• DIfficulty with Running Server on Local Machine