I can't get the demos to work

Posts   
 
    
Posts: 1
Joined: 14-Feb-2009
# Posted on: 14-Feb-2009 19:56:10   

I am very new to this tool.

I have a sql server 2005 instance running on vista. I can open a visual studio 2008 project, drag a dataset pointing at my sql db, and populate a datagrid easily. So I know that I can connect via visual studio.

I tried downloading some samples (Example_3rdParty_LLBLGenProCRUDDemo) and keep getting connection errors. I will paste it below. Searching on the web, I found this link http://support.microsoft.com/default.aspx/kb/914277 (How to configure SQL Server 2005 to allow remote connections) and followed the steps. Even thought my other .net app can talk to it easily. I actually got my connection string from that project from the dataset I used. So I think that works. I changed the connection string in the app.config to reflect that.

So my question is, how do I get a sample working? I can connect to my db via visual studio and the same connection string, why can't I with a demo?

connection string: <add key="Northwind.ConnectionString" value="data source=desktop;initial catalog=Northwind;integrated security=SSPI;persist security info=False;packet size=4096"/>

error A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39859
Joined: 17-Aug-2003
# Posted on: 14-Feb-2009 20:07:57   

You're sure the system you want to connect to is called 'desktop' ? If not (e.g. you want to connect to the local system), either specify: (local)
(so with the brackets) or the system name.

be aware that if you specify the system name, it's a remote connection and if you specify (local) it's a local connection.

Frans Bouma | Lead developer LLBLGen Pro