Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > SQL Server does not exist error when no network connection

Reply
Thread Tools

SQL Server does not exist error when no network connection

 
 
BobRoyAce
Guest
Posts: n/a
 
      03-03-2005
I have an ASP.NET application set up on my local hard drive with all pages,
dlls, and SQL server on local machine. However, I have discovered that if I
reboot my machine without a network cable plugged in, and then try to run
the application, I get the following:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or
access denied.

If I then plug in the network cable, and wait a minute or so, the
application will then work. If I unplug it again, it stops working again.
What gives here? Is there some kind of driver that gets loaded when the PC
is connected to the network that is important somehow for how the
application connects to SQL Server?



 
Reply With Quote
 
 
 
 
Joey Lee
Guest
Posts: n/a
 
      03-03-2005
Just a wild guess...

Is your connection string is based on IP or computer name?
Maybe because u are not on a network, your DCHP is not configured to the
"correct ip".

"BobRoyAce" <> wrote in message
news:MLudnVoDjcHHELvfRVn-...
>I have an ASP.NET application set up on my local hard drive with all pages,
>dlls, and SQL server on local machine. However, I have discovered that if I
>reboot my machine without a network cable plugged in, and then try to run
>the application, I get the following:
>
> Microsoft OLE DB Provider for ODBC Drivers error '80004005'
>
> [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or
> access denied.
>
> If I then plug in the network cable, and wait a minute or so, the
> application will then work. If I unplug it again, it stops working again.
> What gives here? Is there some kind of driver that gets loaded when the PC
> is connected to the network that is important somehow for how the
> application connects to SQL Server?
>
>
>



 
Reply With Quote
 
 
 
 
BobRoyAce
Guest
Posts: n/a
 
      03-03-2005
The connection string contains an IP...not a computer name.

"Joey Lee" <> wrote in message
news:...
> Just a wild guess...
>
> Is your connection string is based on IP or computer name?
> Maybe because u are not on a network, your DCHP is not configured to the
> "correct ip".
>
> "BobRoyAce" <> wrote in message
> news:MLudnVoDjcHHELvfRVn-...
>>I have an ASP.NET application set up on my local hard drive with all
>>pages, dlls, and SQL server on local machine. However, I have discovered
>>that if I reboot my machine without a network cable plugged in, and then
>>try to run the application, I get the following:
>>
>> Microsoft OLE DB Provider for ODBC Drivers error '80004005'
>>
>> [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or
>> access denied.
>>
>> If I then plug in the network cable, and wait a minute or so, the
>> application will then work. If I unplug it again, it stops working again.
>> What gives here? Is there some kind of driver that gets loaded when the
>> PC is connected to the network that is important somehow for how the
>> application connects to SQL Server?
>>
>>
>>

>
>



 
Reply With Quote
 
Patrick Olurotimi Ige
Guest
Posts: n/a
 
      03-03-2005
BobRoyAce,
Can you give an idea how your connectionstring looks like..
Post it if u can
** But u stated ur SQLServer is installed on ur local PC?
And u didn't give it another IP adrees when u installed it?


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
BobRoyAce
Guest
Posts: n/a
 
      03-03-2005
ConnectionString = "Persist Security Info=False;Initial Catalog=THEDB;Data
Source=127.0.0.1;user=appuser;password=thepassword ;Connect Timeout=120"

NOTE: All works well as long as network cable is plugged in...just doesnt
work if it's not plugged in...so not a connection string problem. I am
wondering if TCP/IP is required to make the connection and if it isn't in
memory if boot up without cable since it detects that there is no network
connection.


 
Reply With Quote
 
Newbie
Guest
Posts: n/a
 
      03-03-2005
try using 'localhost' as your datasource/server identifier.
HTH,
andy

"BobRoyAce" <> wrote in message
news:EpidnWfkWclxPrvfRVn-...
> ConnectionString = "Persist Security Info=False;Initial Catalog=THEDB;Data
> Source=127.0.0.1;user=appuser;password=thepassword ;Connect Timeout=120"
>
> NOTE: All works well as long as network cable is plugged in...just doesnt
> work if it's not plugged in...so not a connection string problem. I am
> wondering if TCP/IP is required to make the connection and if it isn't in
> memory if boot up without cable since it detects that there is no network
> connection.
>
>



 
Reply With Quote
 
BobRoyAce
Guest
Posts: n/a
 
      03-04-2005
That didn't help. Ultimately, solution was to install a Microsoft Loopback
network adapter (not an actual physical device, but can select from list).
Once did this, problem went away.

"Newbie" <> wrote in message
news:...
> try using 'localhost' as your datasource/server identifier.
> HTH,
> andy
>
> "BobRoyAce" <> wrote in message
> news:EpidnWfkWclxPrvfRVn-...
>> ConnectionString = "Persist Security Info=False;Initial
>> Catalog=THEDB;Data
>> Source=127.0.0.1;user=appuser;password=thepassword ;Connect Timeout=120"
>>
>> NOTE: All works well as long as network cable is plugged in...just doesnt
>> work if it's not plugged in...so not a connection string problem. I am
>> wondering if TCP/IP is required to make the connection and if it isn't in
>> memory if boot up without cable since it detects that there is no network
>> connection.
>>
>>

>
>
>



 
Reply With Quote
 
Patrick Olurotimi Ige
Guest
Posts: n/a
 
      03-04-2005
BobRoyAce,
that was why i was asking how u were connecting!!
Cos Microsoft Loopback network adapter is default.
So its better connecting to DataSource = (local) and not 127.0.0.1.
Well good u got it working!
Patrick



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
Juan T. Llibre
Guest
Posts: n/a
 
      03-04-2005
And it's even better connecting to the instance name.

DataSource = SQLServerInstanceName
or
DataSource = SQLServerName\netsdk

and not 127.0.0.1 *or* (local).



Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
Ven, y hablemos de ASP.NET...
======================

"Patrick Olurotimi Ige" <> wrote in message
news:ee3%...
> BobRoyAce,
> that was why i was asking how u were connecting!!
> Cos Microsoft Loopback network adapter is default.
> So its better connecting to DataSource = (local) and not 127.0.0.1.
> Well good u got it working!
> Patrick
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help. Getting a An error has occurred while establishing a connectionto the server. When connecting to SQL Server 2005, this failure may be causedby the fact that under the default settings SQL Server does not allow remote aboutjav.com@gmail.com ASP .Net 0 05-03-2008 12:43 PM
SQL Server does not exist after moving to new Sql Server Geoff ASP .Net 3 01-16-2006 05:54 AM
Error: SQL Server does not exist or access denied in ASP Application Simone ASP .Net 12 02-07-2005 05:07 PM
Error: SQL Server does not exist or access denied Ben ASP .Net 5 08-16-2004 05:17 PM
Run-time error: SQL Server does not exist or access denied Matthew Louden ASP .Net 3 10-11-2003 09:52 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57