Click here to Skip to main content
15,913,610 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: C# HyperLink Control on Web Form Pin
Not Active14-Jan-09 12:33
mentorNot Active14-Jan-09 12:33 
GeneralRe: C# HyperLink Control on Web Form Pin
AndieDu14-Jan-09 12:44
AndieDu14-Jan-09 12:44 
GeneralRe: C# HyperLink Control on Web Form Pin
Not Active14-Jan-09 15:26
mentorNot Active14-Jan-09 15:26 
AnswerRe: C# HyperLink Control on Web Form Pin
N a v a n e e t h14-Jan-09 15:56
N a v a n e e t h14-Jan-09 15:56 
GeneralRe: C# HyperLink Control on Web Form Pin
AndieDu14-Jan-09 17:22
AndieDu14-Jan-09 17:22 
QuestionLoginStatus Dynamic Visiblity not working Pin
Albert8314-Jan-09 7:58
Albert8314-Jan-09 7:58 
AnswerRe: LoginStatus Dynamic Visiblity not working Pin
saberbladez14-Jan-09 17:25
saberbladez14-Jan-09 17:25 
QuestionsqlConnection object Sql Server setup Pin
dwolver14-Jan-09 7:13
dwolver14-Jan-09 7:13 
Being fairly new to web development, i have an example project that runs against the adventureworks db. I have the db installed, can open it up with sql server (2005 developers edition) and can even test a connection using visualstudio server Explorer

In my projects code however I get access denied error message when the asp.net app tries to access the database. I am not using IIS for this, just the webserver that runs in Vstudio IDE when developing.
I suspect i don't have something setup for the database. I checked and Remote Connections are allowed

Here is ex.message
ex.Message "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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)" string


The connection string looks like this
strConn =
get{return "Data Source=DALEHP\SQLDEVELOPER;Initial Catalog=AdventureWorks;Integrated Security=True";}


The connection section looks like this:

public static DataSet GetProducts(String strConn)
{
DataSet ds = null;
SqlConnection conn = null;

try
{
conn = ConnectionInfo.CreateConnection(strConn, true);
SqlCommand cmd = new SqlCommand("SELECT * FROM PRODUCTION.PRODUCT", conn);
SqlDataAdapter sqlDA = new SqlDataAdapter(cmd);
ds = new DataSet("Products_Set");
sqlDA.Fill(ds);
}
catch(SqlException ex)
{
System.Diagnostics.Debug.WriteLine(ex.Message);
throw ex;
}
finally
{
ConnectionInfo.CloseConnection(conn);
}
return ds;
}
AnswerRe: sqlConnection object Sql Server setup Pin
ToddHileHoffer14-Jan-09 7:24
ToddHileHoffer14-Jan-09 7:24 
Questionhow to View text file Pin
netJP12L14-Jan-09 6:15
netJP12L14-Jan-09 6:15 
AnswerRe: how to View text file Pin
ToddHileHoffer14-Jan-09 7:11
ToddHileHoffer14-Jan-09 7:11 
GeneralRe: how to View text file Pin
netJP12L14-Jan-09 7:30
netJP12L14-Jan-09 7:30 
GeneralRe: how to View text file Pin
ToddHileHoffer14-Jan-09 7:44
ToddHileHoffer14-Jan-09 7:44 
GeneralRe: how to View text file Pin
N a v a n e e t h14-Jan-09 15:59
N a v a n e e t h14-Jan-09 15:59 
AnswerRe: how to View text file Pin
MitchellBaldwin14-Jan-09 7:18
MitchellBaldwin14-Jan-09 7:18 
QuestionReading Excel Data Pin
Bharathy Sadagopan14-Jan-09 5:53
Bharathy Sadagopan14-Jan-09 5:53 
AnswerRe: Reading Excel Data Pin
pmarfleet14-Jan-09 11:10
pmarfleet14-Jan-09 11:10 
GeneralRe: Reading Excel Data Pin
Bharathy Sadagopan15-Jan-09 5:08
Bharathy Sadagopan15-Jan-09 5:08 
QuestionASP.NET Dynamic Data Pin
gantww14-Jan-09 5:42
gantww14-Jan-09 5:42 
QuestionDispose a datatable Pin
Member 236391614-Jan-09 4:48
Member 236391614-Jan-09 4:48 
AnswerRe: Dispose a datatable Pin
Aman Bhullar14-Jan-09 4:54
Aman Bhullar14-Jan-09 4:54 
GeneralRe: Dispose a datatable Pin
Christian Graus14-Jan-09 5:12
protectorChristian Graus14-Jan-09 5:12 
QuestionHow to use group by in datatable in c#? Pin
Member 236391614-Jan-09 3:04
Member 236391614-Jan-09 3:04 
QuestionAccess to bin folder denied because of forms authentication Pin
oceanexplorer8214-Jan-09 2:40
oceanexplorer8214-Jan-09 2:40 
Questionradio button binding Pin
cooltoad12314-Jan-09 2:26
cooltoad12314-Jan-09 2:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.