PC Review


Reply
Thread Tools Rate Thread

Can someone tell me what is wrong here?

 
 
=?Utf-8?B?QmlnYWw=?=
Guest
Posts: n/a
 
      11th Aug 2005
I just added the SQL connection string to my web.config:

________________________________________
<configuration>

<system.web>
<customErrors mode="Off"/>
compilation debug="true"/>
</system.web>
<appSettings>
<add key="ConnectionString"
value="server=localhost;database=testdb;uid=sa;password=!@#ddi386;"/>
</appSettings>
</configuration>
__________________________________________

Now I am getting a runtime error telling me to turn <customErrors
mode="Off"/>
but I already have that set. The page I am trying to access is in the same
directory my web.config I just post. Can anyone help me out?

Thanks in advance
 
Reply With Quote
 
 
 
 
Kevin Spencer
Guest
Posts: n/a
 
      11th Aug 2005
"localhost" is an alias used by your web server, not by SQL Server. Try
using your machine name, or the local loopback IP address of the machine
(127.0.0.1), or the LAN address of the machine instead.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Everybody picks their nose,
But some people are better at hiding it.

"Bigal" <(E-Mail Removed)> wrote in message
news:846F8CC0-884D-4BC8-9EF7-(E-Mail Removed)...
>I just added the SQL connection string to my web.config:
>
> ________________________________________
> <configuration>
>
> <system.web>
> <customErrors mode="Off"/>
> compilation debug="true"/>
> </system.web>
> <appSettings>
> <add key="ConnectionString"
> value="server=localhost;database=testdb;uid=sa;password=!@#ddi386;"/>
> </appSettings>
> </configuration>
> __________________________________________
>
> Now I am getting a runtime error telling me to turn <customErrors
> mode="Off"/>
> but I already have that set. The page I am trying to access is in the same
> directory my web.config I just post. Can anyone help me out?
>
> Thanks in advance



 
Reply With Quote
 
=?Utf-8?B?QmlnYWw=?=
Guest
Posts: n/a
 
      11th Aug 2005
Thanks for your reply. I changed it to 127.0.0.1 and still same error message

"Kevin Spencer" wrote:

> "localhost" is an alias used by your web server, not by SQL Server. Try
> using your machine name, or the local loopback IP address of the machine
> (127.0.0.1), or the LAN address of the machine instead.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> ..Net Developer
> Everybody picks their nose,
> But some people are better at hiding it.
>
> "Bigal" <(E-Mail Removed)> wrote in message
> news:846F8CC0-884D-4BC8-9EF7-(E-Mail Removed)...
> >I just added the SQL connection string to my web.config:
> >
> > ________________________________________
> > <configuration>
> >
> > <system.web>
> > <customErrors mode="Off"/>
> > compilation debug="true"/>
> > </system.web>
> > <appSettings>
> > <add key="ConnectionString"
> > value="server=localhost;database=testdb;uid=sa;password=!@#ddi386;"/>
> > </appSettings>
> > </configuration>
> > __________________________________________
> >
> > Now I am getting a runtime error telling me to turn <customErrors
> > mode="Off"/>
> > but I already have that set. The page I am trying to access is in the same
> > directory my web.config I just post. Can anyone help me out?
> >
> > Thanks in advance

>
>
>

 
Reply With Quote
 
=?Utf-8?B?QmlnYWw=?=
Guest
Posts: n/a
 
      11th Aug 2005
Thanks for your reply. I changes the ip to 127.0.0.1 and then the lan ip but
still the same error message.

"Kevin Spencer" wrote:

> "localhost" is an alias used by your web server, not by SQL Server. Try
> using your machine name, or the local loopback IP address of the machine
> (127.0.0.1), or the LAN address of the machine instead.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> ..Net Developer
> Everybody picks their nose,
> But some people are better at hiding it.
>
> "Bigal" <(E-Mail Removed)> wrote in message
> news:846F8CC0-884D-4BC8-9EF7-(E-Mail Removed)...
> >I just added the SQL connection string to my web.config:
> >
> > ________________________________________
> > <configuration>
> >
> > <system.web>
> > <customErrors mode="Off"/>
> > compilation debug="true"/>
> > </system.web>
> > <appSettings>
> > <add key="ConnectionString"
> > value="server=localhost;database=testdb;uid=sa;password=!@#ddi386;"/>
> > </appSettings>
> > </configuration>
> > __________________________________________
> >
> > Now I am getting a runtime error telling me to turn <customErrors
> > mode="Off"/>
> > but I already have that set. The page I am trying to access is in the same
> > directory my web.config I just post. Can anyone help me out?
> >
> > Thanks in advance

>
>
>

 
Reply With Quote
 
Ulf Kristian S. Kristiansen
Guest
Posts: n/a
 
      11th Aug 2005
"Bigal" <(E-Mail Removed)> wrote in message
news:846F8CC0-884D-4BC8-9EF7-(E-Mail Removed)...
>I just added the SQL connection string to my web.config:
>
> ________________________________________
> <configuration>
> <system.web>
> <customErrors mode="Off"/>
> compilation debug="true"/>
> </system.web>
> <appSettings>
> <add key="ConnectionString"
> value="server=localhost;database=testdb;uid=sa;password=!@#ddi386;"/>
> </appSettings>
> </configuration>
> __________________________________________
>
> Now I am getting a runtime error telling me to turn <customErrors
> mode="Off"/>
> but I already have that set. The page I am trying to access is in the same
> directory my web.config I just post. Can anyone help me out?



You're missing an "<" on the fourth line. Fourth line in your config should
read:
<compilation debug="true"/>

My guess is that you missed this part as you set customErrors off, the
server is no longer able to read the config and is still going with the
previous config.

--
IT-RÃ¥dgiver Ulf Kristiansen
http://www.it-radgiver.no


 
Reply With Quote
 
Kevin Spencer
Guest
Posts: n/a
 
      11th Aug 2005
Well, you're going to have to give us more information about the error.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Everybody picks their nose,
But some people are better at hiding it.

"Bigal" <(E-Mail Removed)> wrote in message
news:0777EE35-965E-4757-97DD-(E-Mail Removed)...
> Thanks for your reply. I changes the ip to 127.0.0.1 and then the lan ip
> but
> still the same error message.
>
> "Kevin Spencer" wrote:
>
>> "localhost" is an alias used by your web server, not by SQL Server. Try
>> using your machine name, or the local loopback IP address of the machine
>> (127.0.0.1), or the LAN address of the machine instead.
>>
>> --
>> HTH,
>>
>> Kevin Spencer
>> Microsoft MVP
>> ..Net Developer
>> Everybody picks their nose,
>> But some people are better at hiding it.
>>
>> "Bigal" <(E-Mail Removed)> wrote in message
>> news:846F8CC0-884D-4BC8-9EF7-(E-Mail Removed)...
>> >I just added the SQL connection string to my web.config:
>> >
>> > ________________________________________
>> > <configuration>
>> >
>> > <system.web>
>> > <customErrors mode="Off"/>
>> > compilation debug="true"/>
>> > </system.web>
>> > <appSettings>
>> > <add key="ConnectionString"
>> > value="server=localhost;database=testdb;uid=sa;password=!@#ddi386;"/>
>> > </appSettings>
>> > </configuration>
>> > __________________________________________
>> >
>> > Now I am getting a runtime error telling me to turn <customErrors
>> > mode="Off"/>
>> > but I already have that set. The page I am trying to access is in the
>> > same
>> > directory my web.config I just post. Can anyone help me out?
>> >
>> > Thanks in advance

>>
>>
>>



 
Reply With Quote
 
=?Utf-8?B?QmlnYWw=?=
Guest
Posts: n/a
 
      12th Aug 2005
Figured it out. The OS was 2003 server and I didnt have sql service pack
installed. That is a requirement for running sql server 2000 on windows 2003

thanks for everyone time.

AL

"Kevin Spencer" wrote:

> Well, you're going to have to give us more information about the error.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> ..Net Developer
> Everybody picks their nose,
> But some people are better at hiding it.
>
> "Bigal" <(E-Mail Removed)> wrote in message
> news:0777EE35-965E-4757-97DD-(E-Mail Removed)...
> > Thanks for your reply. I changes the ip to 127.0.0.1 and then the lan ip
> > but
> > still the same error message.
> >
> > "Kevin Spencer" wrote:
> >
> >> "localhost" is an alias used by your web server, not by SQL Server. Try
> >> using your machine name, or the local loopback IP address of the machine
> >> (127.0.0.1), or the LAN address of the machine instead.
> >>
> >> --
> >> HTH,
> >>
> >> Kevin Spencer
> >> Microsoft MVP
> >> ..Net Developer
> >> Everybody picks their nose,
> >> But some people are better at hiding it.
> >>
> >> "Bigal" <(E-Mail Removed)> wrote in message
> >> news:846F8CC0-884D-4BC8-9EF7-(E-Mail Removed)...
> >> >I just added the SQL connection string to my web.config:
> >> >
> >> > ________________________________________
> >> > <configuration>
> >> >
> >> > <system.web>
> >> > <customErrors mode="Off"/>
> >> > compilation debug="true"/>
> >> > </system.web>
> >> > <appSettings>
> >> > <add key="ConnectionString"
> >> > value="server=localhost;database=testdb;uid=sa;password=!@#ddi386;"/>
> >> > </appSettings>
> >> > </configuration>
> >> > __________________________________________
> >> >
> >> > Now I am getting a runtime error telling me to turn <customErrors
> >> > mode="Off"/>
> >> > but I already have that set. The page I am trying to access is in the
> >> > same
> >> > directory my web.config I just post. Can anyone help me out?
> >> >
> >> > Thanks in advance
> >>
> >>
> >>

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
What do I do wrong [Excuses pushing the wrong key combination earlier] Vsn Microsoft Excel Programming 6 8th Nov 2009 09:12 PM
Insert Calculated Field (wrong Qty*Price = wrong Amount) =?Utf-8?B?RWRtdW5k?= Microsoft Excel Misc 8 4th Oct 2007 12:13 PM
Provide wrong filter with search query, AD returning wrong err cod =?Utf-8?B?ZGFyc2hp?= Microsoft Windows 2000 Active Directory 1 11th Jun 2007 04:44 PM
Oracle Stored Procedure - Wrong Number of Parms Or Wrong DataTypes =?Utf-8?B?SmltIEhlYXZleQ==?= Microsoft ADO .NET 1 8th Aug 2004 01:37 AM
Windows 2000 reports wrong number of CPUs and wrong speed Rogarr Microsoft Windows 2000 1 8th Sep 2003 04:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:08 AM.