O
Oslo
Hi All,
I have a real simple .Net based website (IIS) using C#.
I just kind of got started to develop using .Net I have a
real simple .Net (.aspx extension). In the page load I am
trying to populate the select item from the database.Code
is real simple something like
SqlConnection conn = new SqlConnection(
ConfigurationSettings.AppSettings["sDataConn1"]
);
try
{
conn.Open();
...
conn.Close();
}
catch ( Exception E )
{
Console.WriteLine( E.Message );
}
It gives an exception saying
"SQL server doesnot exist or access denied"
BTW the same application works on another machine, also I
used a simple console application it works just fine on
both the machines, so I am definite its something of a
environment problem with my website. Any pointers will be
highly appreciated.
I am newbee, please get me started
Oslo
I have a real simple .Net based website (IIS) using C#.
I just kind of got started to develop using .Net I have a
real simple .Net (.aspx extension). In the page load I am
trying to populate the select item from the database.Code
is real simple something like
SqlConnection conn = new SqlConnection(
ConfigurationSettings.AppSettings["sDataConn1"]
);
try
{
conn.Open();
...
conn.Close();
}
catch ( Exception E )
{
Console.WriteLine( E.Message );
}
It gives an exception saying
"SQL server doesnot exist or access denied"
BTW the same application works on another machine, also I
used a simple console application it works just fine on
both the machines, so I am definite its something of a
environment problem with my website. Any pointers will be
highly appreciated.
I am newbee, please get me started
Oslo